fix: 修复bug
parent
4aadcef501
commit
b979f77097
|
@ -219,7 +219,6 @@
|
||||||
// 获取推广员ID
|
// 获取推广员ID
|
||||||
setSpreadId() {
|
setSpreadId() {
|
||||||
const spreadId = this.$route.query.spreadId || ''
|
const spreadId = this.$route.query.spreadId || ''
|
||||||
console.log('spreadId', spreadId)
|
|
||||||
if (spreadId) {
|
if (spreadId) {
|
||||||
this.$store.commit("SET_SPREADID", spreadId);
|
this.$store.commit("SET_SPREADID", spreadId);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,9 +42,9 @@ const unityPay = (options) => {
|
||||||
}
|
}
|
||||||
_options.payInfo.openid = openId
|
_options.payInfo.openid = openId
|
||||||
if (_options.payType === 'WXPAY') {
|
if (_options.payType === 'WXPAY') {
|
||||||
_options.payInfo.payChannel = '微信支付'
|
_options.payInfo.payChannel = 'public'
|
||||||
} else if (_options.payType === 'ALIPAY') {
|
} else if (_options.payType === 'ALIPAY') {
|
||||||
_options.payInfo.payChannel = '支付宝'
|
_options.payInfo.payChannel = 'appAliPay'
|
||||||
}
|
}
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '支付中',
|
title: '支付中',
|
||||||
|
|
|
@ -198,7 +198,6 @@
|
||||||
payType: that.paytype,
|
payType: that.paytype,
|
||||||
createOrderFun: wechatOrderPay,
|
createOrderFun: wechatOrderPay,
|
||||||
payResultHandle: (res) => {
|
payResultHandle: (res) => {
|
||||||
console.log(res)
|
|
||||||
return {
|
return {
|
||||||
jsapiResult: res.jsapiConfig,
|
jsapiResult: res.jsapiConfig,
|
||||||
body: res.body
|
body: res.body
|
||||||
|
|
|
@ -208,7 +208,7 @@
|
||||||
followHid: true,
|
followHid: true,
|
||||||
followCode: false,
|
followCode: false,
|
||||||
logoUrl: "",
|
logoUrl: "",
|
||||||
bannerList: {},
|
bannerList: [],
|
||||||
imgUrls: [],
|
imgUrls: [],
|
||||||
itemNew: [],
|
itemNew: [],
|
||||||
menus: [],
|
menus: [],
|
||||||
|
|
|
@ -26,7 +26,6 @@ function baseRequest(url, method, data, {
|
||||||
if (!noAuth) {
|
if (!noAuth) {
|
||||||
//登录过期自动登录
|
//登录过期自动登录
|
||||||
if (!store.state.app.token && !checkLogin()) {
|
if (!store.state.app.token && !checkLogin()) {
|
||||||
console.log(store.state.app.token,checkLogin(),123123)
|
|
||||||
toLogin();
|
toLogin();
|
||||||
return Promise.reject({
|
return Promise.reject({
|
||||||
msg: '未登录'
|
msg: '未登录'
|
||||||
|
|
Loading…
Reference in New Issue