From 09f2cb195685fc6c83ae9667df666b24aed98fe3 Mon Sep 17 00:00:00 2001
From: huliyong <2783385703@qq.com>
Date: Sun, 8 Sep 2024 22:20:23 +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
---
api/api.js | 32 +++++---
api/http.js | 1 +
config.js | 2 +-
pages.json | 6 --
pages/order/payOrder.vue | 92 ---------------------
pages/publish/actorDetail.vue | 25 +++---
pages/publish/actorRelease.vue | 181 ++++++++++++++++++++++++++++++-----------
pages/publish/publishPost.vue | 65 ++++++---------
pages_mine/mine/purse.vue | 2 +-
static/image/+.png | Bin 585 -> 0 bytes
10 files changed, 193 insertions(+), 213 deletions(-)
delete mode 100644 pages/order/payOrder.vue
delete mode 100644 static/image/+.png
diff --git a/api/api.js b/api/api.js
index f26c117..65415bc 100644
--- a/api/api.js
+++ b/api/api.js
@@ -23,16 +23,6 @@ const config = {
url: '/api/index/getActorDetail',
method: 'GET'
},
- //发布演员接口
- publishActor: {
- url: '/api/index/releaseActorSet',
- method: 'POST'
- },
- //发布动态接口
- publishDynamicState: {
- url: '/api/index/releaseTrends',
- method: 'POST'
- },
//获取认证演员
indexGetActorList: {
url: '/api/index/getActorList',
@@ -89,8 +79,16 @@ const config = {
//发布动态
infoReleaseTrends: {
url: '/api/info/releaseTrends',
- method: 'GET',
- auth: true
+ method: 'POST',
+ auth: true,
+ limit : 1000,
+ },
+ //发布演员接口
+ publishActor: {
+ url: '/api/info/releaseActorSet',
+ method: 'POST',
+ auth: true,
+ limit : 1000,
},
//获取银行卡列表带分页
infoGetBankCardPage: {
@@ -162,7 +160,7 @@ const config = {
infoSubmitCertification: {
url: '/api/info/submitCertification',
method: 'GET',
- auth: true
+ auth: true,
},
// 企业认证提交
infoSubmitCompanyCertification: {
@@ -182,6 +180,13 @@ const config = {
method: 'POST',
auth: true
},
+ // 获取用户平台数据
+ infoGetInfoMoney: {
+ url: '/api/info/getInfoMoney',
+ method: 'GET',
+ auth: true
+ },
+
//小程序-登录相关接口
@@ -242,6 +247,7 @@ export function api(key, data, callback, loadingTitle) {
let storageKey = 'limit:' + req.url
let storage = uni.getStorageSync(storageKey)
if (storage && new Date().getTime() - parseInt(storage) < req.limit) {
+ console.log(storageKey);
return
}
uni.setStorageSync(storageKey, new Date().getTime())
diff --git a/api/http.js b/api/http.js
index 936af76..ac4fc81 100644
--- a/api/http.js
+++ b/api/http.js
@@ -25,6 +25,7 @@ function http(uri, data, callback, method = 'GET', showLoading, title) {
}
if(res.statusCode == 401 ||
+ res.data.code == 401 ||
res.data.message == '操作失败,token非法无效!'){
uni.removeStorageSync('token')
console.error('登录过期');
diff --git a/config.js b/config.js
index 0c3a700..9a6313c 100644
--- a/config.js
+++ b/config.js
@@ -5,7 +5,7 @@ import utils from './utils/utils.js'
// 当前环境
-const type = 'dev'
+const type = 'prod'
// 环境配置
diff --git a/pages.json b/pages.json
index 1e01c30..88087cb 100644
--- a/pages.json
+++ b/pages.json
@@ -23,12 +23,6 @@
"navigationBarTitleText": ""
}
},
- {
- "path": "pages/order/payOrder",
- "style": {
- "navigationBarTitleText": ""
- }
- },
{
"path": "pages/auth/wxUserInfo",
"style": {
diff --git a/pages/order/payOrder.vue b/pages/order/payOrder.vue
deleted file mode 100644
index 9b2702a..0000000
--- a/pages/order/payOrder.vue
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
-
-
- 金额
-
-
- ¥100
-
-
-
-
- 支付
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/publish/actorDetail.vue b/pages/publish/actorDetail.vue
index c337f90..71dc0eb 100644
--- a/pages/publish/actorDetail.vue
+++ b/pages/publish/actorDetail.vue
@@ -1,6 +1,6 @@
-
+
-
- {{ item.title }}
-
-
+
+
@@ -85,16 +83,19 @@
onLoad(options) {
// this.$route.query的参数
this.getData(options.id)
- this.getList()
+ // this.getList()
},
//滚动到屏幕底部
onReachBottom() {
- if(this.queryParams.pageSize < this.total){
- this.queryParams.pageSize += 10
- this.getList()
- }
+ // if(this.queryParams.pageSize < this.total){
+ // this.queryParams.pageSize += 10
+ // this.getList()
+ // }
},
methods: {
+ leftClick(){
+ uni.navigateBack(-1)
+ },
getData(id){
this.$api('indexGetActorDetail', {
id
@@ -194,7 +195,7 @@
background-color: #999;
width: 100%;
height: 250rpx;
- image{
+ video{
width: 100%;
height: 100%;
}
diff --git a/pages/publish/actorRelease.vue b/pages/publish/actorRelease.vue
index 267aa60..177751c 100644
--- a/pages/publish/actorRelease.vue
+++ b/pages/publish/actorRelease.vue
@@ -1,11 +1,17 @@
-
-
-
-
-
+
+
+
@@ -45,7 +51,7 @@
详情介绍:
-
+
@@ -54,9 +60,15 @@
-
+
-
+
@@ -74,7 +86,7 @@
-
+
-
+
+
+
是否置顶
-
+
-
+
置顶{{ item.day }}天{{ item.money }}元
-
+
- -->
+
@@ -118,6 +137,22 @@
+
+
+
+
+
-
-
- 是否置顶
-
-
-
-
-
-
-
-
-
+
- 确认支付3元,可置顶1天
+ 确认支付{{ topInfo.money }}元,可置顶{{ topInfo.day }}天
@@ -129,7 +118,7 @@
form : {
// image : [],
content : '',
- // upTop : '',
+ // topId : '',
title : '',
},
fileList: [
@@ -139,8 +128,18 @@
],
};
},
+ computed : {
+ topInfo(){
+ for (var i = 0; i < this.upTopList.length; i++) {
+ if(this.upTopList[i].id == this.form.topId){
+ return this.upTopList[i]
+ }
+ }
+ return {}
+ }
+ },
onShow() {
- // this.indexTopPayList()
+ this.indexTopPayList()
},
methods : {
deleteImage(e){
@@ -165,16 +164,11 @@
},
pay(){
- let arr = []
-
- this.fileList.forEach(n => {
- arr.push(n.url)
- })
-
let data = {
...this.form,
isCard : 1,
- image : arr.join(',')
+ image : this.fileList.map((item) => item.url).join(","),
+ isTop : this.form.topId ? 'Y' : 'N',
}
this.$api('infoReleaseTrends', data,
@@ -186,8 +180,6 @@
},
submit(){
- console.log(this.form);
-
if(this.fileList.length == 0){
return uni.showToast({
title: '请上传图片',
@@ -201,19 +193,14 @@
})) {
return
}
- console.log("图片集", this.fileList.map((item) => item.url).join(","))
- this.form.image = this.fileList.map((item) => item.url).join(",")
- this.$api('publishDynamicState', this.form, res => {
- if (res.code == 200) {
- this.$refs.confirmationPopupUpload.open()
- }
- })
- // if(this.form.upTop){
-
- // }else{
- // this.$refs.confirmationPopup.open()
- // }
+ if(this.form.topId){
+ // 选择付费模式
+ this.$refs.confirmationPopup.open()
+ }else{
+ // 没有选择付费
+ this.pay()
+ }
},
preview(){},
draft(){},
@@ -253,7 +240,7 @@
.upTop{
.title{
padding-top: 20rpx;
- padding-left: 30rpx;
+ padding-left: 20rpx;
border-top: 1px solid #00000015;
display: flex;
align-items: center;
diff --git a/pages_mine/mine/purse.vue b/pages_mine/mine/purse.vue
index cbe1092..92b12b0 100644
--- a/pages_mine/mine/purse.vue
+++ b/pages_mine/mine/purse.vue
@@ -36,7 +36,7 @@
-
+
diff --git a/static/image/+.png b/static/image/+.png
deleted file mode 100644
index 253755df6f2d6a3832ec5c3387d54b6a4d68c80b..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 585
zcmV-P0=E5$P)Px#1am@3R0s$N2z&@+hyVZq^GQTOR9J=WnL&?}KorN{JeV$n5^iE+_f)mirkk30
z@DuqlJoqV$pUK3{HnlXSr$sAfFBE0i&M-W5Emq%2y(>a+#HJ;F
zg+-ZawIIOlXQs_`g2&Pc9!sTyaU2igI3844)BOD_f6nJ`Uta+LxUT!Us+#}T68{Za
zFL>}CjN^Eq_nbxwIRgOr_-XZKe|-G->03g`mqX^MrGwk;_TYIA?x5?sVfnP`&OLiF
z>P~TMXuV*if09QJ9=@xx9zex{uIq+X)&uwlmbeo3zeBKm-cDDe~pggs2-&%2m;o$lqLuQW*`=x=LrM=IGaq;
zU7nK<^Z7j~C22}5NfLa2etv(K=R}9-Wd9l>iXwWs*_`Mrfx5&p!I4s?47iDY_k;YO
X3oE=pGT35u00000NkvXXu0mjf9b*W~