From 4b708b830fd8052709d1a608feed752d98955e0a Mon Sep 17 00:00:00 2001
From: huliyong <2783385703@qq.com>
Date: Wed, 25 Sep 2024 19:44:47 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 3 +-
pages/index/index.vue | 1 +
pages/publish/actorDetail.vue | 16 +++-
pages/publish/actorRelease.vue | 107 +++++++++++++++++++-----
pages/publish/publishPost.vue | 50 +++++++++--
pages_mine/mine/promotionRecord.vue | 26 ++++--
pages_mine/mine/releaseRecord.vue | 24 ++++--
pages_mine/mine/sonPage/release/releaseList.vue | 48 ++++++++++-
pages_mine/publish/addWorks.vue | 53 +++++++++++-
pages_mine/publish/competition.vue | 1 +
10 files changed, 276 insertions(+), 53 deletions(-)
diff --git a/pages.json b/pages.json
index e0396d6..9542b4b 100644
--- a/pages.json
+++ b/pages.json
@@ -46,8 +46,7 @@
{
"path": "pages/index/center",
"style": {
- "navigationBarTitleText": "",
- "enablePullDownRefresh" : true
+ "navigationBarTitleText": ""
}
},
{
diff --git a/pages/index/index.vue b/pages/index/index.vue
index b28b581..c026699 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -149,6 +149,7 @@
}
},
onPullDownRefresh(){
+ this.queryParams.pageNo = 1
this.indexGetTrendsPage()
this.getData()
},
diff --git a/pages/publish/actorDetail.vue b/pages/publish/actorDetail.vue
index 0261e61..6e693b0 100644
--- a/pages/publish/actorDetail.vue
+++ b/pages/publish/actorDetail.vue
@@ -66,8 +66,11 @@
+
+ {{ item.details.workName[index] || '' }}
+
@@ -85,7 +88,7 @@
style="width: 150rpx;height: 150rpx;"
mode="">
- 请支付10元,10小时内可查看任意联系方式
+ 请支付{{ item.details.price }}元,10小时内可查看任意联系方式
@@ -147,6 +150,15 @@
}, res => {
uni.stopPullDownRefresh()
if(res.code == 200){
+
+ res.result.details.isImage =
+ res.result.details.isImage ?
+ res.result.details.isImage.split(',') : [],
+
+ res.result.details.workName =
+ res.result.details.workName ?
+ res.result.details.workName.split(',') : []
+
this.item = res.result
}
})
diff --git a/pages/publish/actorRelease.vue b/pages/publish/actorRelease.vue
index ceff2a2..c764e81 100644
--- a/pages/publish/actorRelease.vue
+++ b/pages/publish/actorRelease.vue
@@ -120,6 +120,7 @@
@@ -135,6 +136,7 @@
@@ -164,7 +166,8 @@
-
+
{
+ if (res.code == 200) {
+
+ res.result.details.image.split(',')
+ .forEach(url => {
+ self.fileListImage.push({
+ url
+ })
+ })
+
+ res.result.details.isImage.split(',')
+ .forEach(url => {
+ self.fileList.push({
+ url
+ })
+ })
+
+ res.result.details.workName && res.result.details.workName.split(',')
+ .forEach(title => {
+ self.inputs.push({
+ title
+ })
+ })
+
+ res.result.details.topId = res.result.details.topId || 0
+
+ this.form = res.result.details
+ }
+ })
+ },
// 获取置顶方式
indexTopPayList() {
this.$api('indexTopPayList', res => {
@@ -286,21 +334,33 @@
let self = this
let data = {
- ...this.form,
+ // ...this.form,
+ money: this.form.money,
+ name : this.form.name,
+ phone : this.form.phone,
+ isUser : this.form.isUser,//是否本人发布
+ phonePay : this.form.phonePay,//联系方式是否付费查看
+ photographerContent : this.form.photographerContent,//演员介绍
+ topId : this.form.topId,
+
+ state : 0,
isCard: 'N',
isImage : this.fileList.map((item) => item.url).join(","),//代表作视频列表
image : this.fileListImage.map((item) => item.url).join(","),//封面
- // 字段名称待确认
- titles : this.inputs.map((item) => item.title).join(","),//代表作名称列表
+ workName : this.inputs.map((item) => item.title).join(","),//代表作名称列表
isTop : this.form.topId ? 'Y' : 'N',
}
+
+ if(this.id){
+ data.id = this.id
+ }
this.$api('publishActor', data,
res => {
if (res.code == 200) {
// this.$refs.confirmationPopupUpload.open()
- if(self.form.topId){
+ if(self.form.topId && !this.id){
uni.requestPayment({
provider: 'wxpay', // 服务提提供商
timeStamp: res.result.timeStamp, // 时间戳
@@ -330,6 +390,7 @@
},
submit() {
+
if(this.fileListImage.length == 0){
return uni.showToast({
title: '请上传封面',
@@ -337,6 +398,23 @@
})
}
+
+ if(!this.$utils.verificationPhone(this.form.phone)){
+ return uni.showToast({
+ title: `请输入正确的手机号`,
+ icon : 'none'
+ })
+ }
+
+ if (this.$utils.verificationAll(this.form, {
+ name: '请输入演员名称',
+ photographerContent: '请输入演员介绍',
+ phone: '请输入手机号',
+ money: '请输入价格',
+ })) {
+ return
+ }
+
if(this.fileList.length == 0){
return uni.showToast({
title: '请上传代表作',
@@ -353,17 +431,7 @@
}
}
-
- if (this.$utils.verificationAll(this.form, {
- name: '请输入演员名称',
- photographerContent: '请输入演员介绍',
- phone: '请输入手机号',
- money: '请输入价格',
- })) {
- return
- }
-
- if(this.form.topId){
+ if(this.form.topId && !this.id){
// 选择付费模式
this.$refs.confirmationPopup.open()
}else{
@@ -373,9 +441,10 @@
},
confirm() {
// this.$refs.confirmationPopupUpload.close()
- uni.navigateTo({
- url: "/pages/index/index"
- })
+ // uni.navigateTo({
+ // url: "/pages/index/index"
+ // })
+ uni.navigateBack(-1)
},
}
}
diff --git a/pages/publish/publishPost.vue b/pages/publish/publishPost.vue
index 4c4c6c4..e9f78da 100644
--- a/pages/publish/publishPost.vue
+++ b/pages/publish/publishPost.vue
@@ -46,6 +46,7 @@
@@ -60,6 +61,7 @@
@@ -78,7 +80,7 @@
@submit="submit"
@preview="preview"
@draft="draft"
- submitTitle="发布帖子"
+ :submitTitle="id ? '修改帖子' : '发布帖子'"
/>