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 @@ - - - - - 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 @@