修复小程序模式下的一些异常,以及页面跳转错误

pull/17/head
yunlongn 2023-11-21 09:54:26 +08:00
parent d371d016f7
commit 000b73c476
5 changed files with 11 additions and 7 deletions

View File

@ -340,7 +340,7 @@
qrcodeSize: 600, //
promotionCode: '', //
imgTop: '', // base64
errT: '', //
errT: '获取海报失败', //
posters: false, //
weixinStatus: false, //
canvasStatus: false, //
@ -854,7 +854,7 @@
let data = {
pid: this.uid,
id: this.id,
path: 'pages/activity/goods_seckill_details/index'
path: 'pages/activity/goods_combination_details/index'
}
getQrcode(data).then(res=>{
base64src(res.data.code, res => {

View File

@ -869,11 +869,11 @@
});
} else if (activity.type === 2) {
uni.navigateTo({
url: `/pages/activity/goods_bargain_details/index?id=${this.id}&startBargainUid=${this.uid}`
url: `/pages/activity/goods_bargain_details/index?id=${activity.id}&startBargainUid=${this.uid}`
});
} else {
uni.navigateTo({
url: `/pages/activity/goods_combination_details/index?id=${this.id}`
url: `/pages/activity/goods_combination_details/index?id=${activity.id}`
});
}
},

View File

@ -95,7 +95,7 @@
<block v-for="(item,index) in menus" :key="index">
<navigator class="item" :url="item.url" hover-class="none"
v-if="!(item.url ==='/pages/service/index'
|| (item.url === '/pages/users/user_spread_user/index' && brokerageUser && brokerageUser.enabled))">
|| (item.url === '/pages/users/user_spread_user/index' && brokerageUser && !brokerageUser.brokerageEnabled))">
<image :src="item.picUrl"></image>
<text>{{ item.name }}</text>
</navigator>

View File

@ -399,8 +399,8 @@
getCouponList: function() {
CouponApi.getMatchCouponList({
price: this.orderInfoVo.price.payPrice,
spuIds: this.orderInfoVo.items.map(item => item.spuId),
skuIds: this.orderInfoVo.items.map(item => item.skuId),
spuIds: this.orderInfoVo.items.map(item => item.spuId).join(","),
skuIds: this.orderInfoVo.items.map(item => item.skuId).join(","),
categoryIds: this.orderInfoVo.items.map(item => item.categoryId)
}).then(res => {
this.$set(this.coupon, 'list', res.data);

View File

@ -193,6 +193,10 @@
this.$store.commit("LOGIN", {
'token': data.accessToken
});
// opendId
this.$store.commit("OPENID", data.openId);
// userId
this.$store.commit("SETUID", data.userId);
this.getUserInfo();
this.bindBrokerUser();
}).catch(e => {