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

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

View File

@ -869,11 +869,11 @@
}); });
} else if (activity.type === 2) { } else if (activity.type === 2) {
uni.navigateTo({ 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 { } else {
uni.navigateTo({ 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"> <block v-for="(item,index) in menus" :key="index">
<navigator class="item" :url="item.url" hover-class="none" <navigator class="item" :url="item.url" hover-class="none"
v-if="!(item.url ==='/pages/service/index' 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> <image :src="item.picUrl"></image>
<text>{{ item.name }}</text> <text>{{ item.name }}</text>
</navigator> </navigator>

View File

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

View File

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