修复小程序模式下的一些异常,以及页面跳转错误
parent
d371d016f7
commit
000b73c476
|
@ -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 => {
|
||||||
|
|
|
@ -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}`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in New Issue