This commit is contained in:
weipengfei 2024-03-26 17:21:22 +08:00
parent f4cf86803e
commit 38d8bb7c81
6 changed files with 38 additions and 41 deletions

29
App.vue
View File

@ -120,26 +120,23 @@
if (option?.referrerInfo?.extraData?.uniMP) { if (option?.referrerInfo?.extraData?.uniMP) {
uni.setStorageSync('uniMP', option.referrerInfo?.extraData?.uniMP); uni.setStorageSync('uniMP', option.referrerInfo?.extraData?.uniMP);
this.$isResolve()
// parseToken({
// token: option.referrerInfo?.extraData?.token
// }).then((res)=>{
// this.$store.commit("LOGIN", {
// 'token': res.data.token,
// 'time': 604800
// });
// this.$isResolve()
// }).catch((err)=>{
// this.$store.commit("LOGIN", { // this.$store.commit("LOGIN", {
// 'token': option.referrerInfo?.extraData?.token, // 'token': option.referrerInfo?.extraData?.token,
// 'time': 604800 // 'time': 604800
// }); // });
parseToken({ // console.log('TOKEN:', err);
token: option.referrerInfo?.extraData?.token // this.$isResolve()
}).then((res)=>{ // })
this.$store.commit("LOGIN", {
'token': res.data.token,
'time': 604800
});
this.$isResolve()
}).catch((err)=>{
this.$store.commit("LOGIN", {
'token': option.referrerInfo?.extraData?.token,
'time': 604800
});
console.log('TOKEN解析错误:', err);
this.$isResolve()
})
}else { }else {
this.$isResolve() this.$isResolve()
} }

View File

@ -1,7 +1,7 @@
import request from "@/utils/request.js"; import request from "@/utils/request.js";
/** /**
* 文章详情 *
* *
*/ */
export function parseToken(data) { export function parseToken(data) {

View File

@ -9,9 +9,9 @@ let httpApiThree
let wsApi let wsApi
// 在打包之前请检查当前环境是否正确 // 在打包之前请检查当前环境是否正确
// const env = 'dev'; // 开发 const env = 'dev'; // 开发
// const env = 'prod'; // 生产 // const env = 'prod'; // 生产
const env = 'prew'; // 预上线 // const env = 'prew'; // 预上线
switch (env) { switch (env) {
case 'prod': case 'prod':

View File

@ -2,8 +2,8 @@
"name" : "惠农商户平台", "name" : "惠农商户平台",
"appid" : "__UNI__1EE148C", "appid" : "__UNI__1EE148C",
"description" : "", "description" : "",
"versionName" : "1.3.9", "versionName" : "1.4.0",
"versionCode" : 139, "versionCode" : 1400,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@ -201,7 +201,7 @@
options.product_type ? uni.setStorageSync("PRODUCT_TYPE", 98) : uni.removeStorageSync("PRODUCT_TYPE"); options.product_type ? uni.setStorageSync("PRODUCT_TYPE", 98) : uni.removeStorageSync("PRODUCT_TYPE");
this.getOrderStatistics(this.mer_id); this.getOrderStatistics(this.mer_id);
this.getList(this.mer_id) this.getList(this.mer_id)
this.purchaseOrderList(this.mer_id) // this.purchaseOrderList(this.mer_id)
}, },
methods: { methods: {
getIndex: function() { getIndex: function() {

View File

@ -551,11 +551,11 @@
// type: 3, // type: 3,
// image: require('@/static/images/index4.png') // image: require('@/static/images/index4.png')
// }, // },
{ // {
name: '扫码付款', // name: '',
type: 18, // type: 18,
image: require('@/static/images/index25.png') // image: require('@/static/images/index25.png')
}, // },
// { // {
// name: '', // name: '',
// type: 4, // type: 4,
@ -652,11 +652,11 @@
type: 2, type: 2,
image: require('@/static/images/index1.png') image: require('@/static/images/index1.png')
}, },
{ // {
name: '扫码付款', // name: '',
type: 18, // type: 18,
image: require('@/static/images/index25.png') // image: require('@/static/images/index25.png')
}, // },
{ {
name: '提现管理', name: '提现管理',
type: 5, type: 5,
@ -761,11 +761,11 @@
type: 23, type: 23,
image: require('@/static/images/index26.png') image: require('@/static/images/index26.png')
}, },
{ // {
name: '扫码付款', // name: '',
type: 18, // type: 18,
image: require('@/static/images/index25.png') // image: require('@/static/images/index25.png')
}, // },
// { // {
// name: '', // name: '',
// type: 4, // type: 4,