|
@@ -18,6 +18,7 @@ export default {
|
|
|
platform: getPlatform(),
|
|
|
maxCouponFee: 0, // 计算优惠券已选的总金额
|
|
|
remainPrice: 0, // 剩余可用优惠额度
|
|
|
+ extraData: {}
|
|
|
};
|
|
|
},
|
|
|
props:{
|
|
@@ -35,6 +36,8 @@ export default {
|
|
|
maxOneDayDiscountFee: (state) => state.order.maxOneDayDiscountFee, // 深圳单日单次使用上限
|
|
|
usingTotalDiscount: (state) => state.order.usingTotalDiscount, // 当前已使用优惠
|
|
|
availableDiscountFee: (state) => state.order.availableDiscountFee, // 当前已使用优惠
|
|
|
+ lbsId: (state) => state.lbsId, // 楼栋ID
|
|
|
+ groupId: (state) => state.groupId, // 楼盘ID
|
|
|
}),
|
|
|
},
|
|
|
|
|
@@ -46,7 +49,7 @@ export default {
|
|
|
});
|
|
|
if (isInWeixinH5()) {
|
|
|
initWxJsSdkConfig(['checkJsApi', 'chooseImage'], ['wx-open-launch-weapp']);
|
|
|
- // this.launchPathInit();
|
|
|
+ this.launchPathInit();
|
|
|
}
|
|
|
}, 300);
|
|
|
this.pageInit();
|
|
@@ -367,20 +370,26 @@ export default {
|
|
|
type: 'all',
|
|
|
});
|
|
|
this.launchPath = `?trackSourceType=运营位&trackSourceName=功能球&projectId=${projectId}&groupId=${groupId}&mallId=${mallId}&source=tparkingH5`;
|
|
|
+
|
|
|
+ let isLogin = false
|
|
|
+ const member = uni.getStorageSync('member');
|
|
|
+ if (member && JSON.stringify(this.member) !== '{}') {
|
|
|
+ isLogin = true
|
|
|
+ }
|
|
|
+ this.extraData = {
|
|
|
+ brandId: this.groupId,
|
|
|
+ lbsId: this.lbsId,
|
|
|
+ isLogin: isLogin,
|
|
|
+ navigate_time:new Date().getTime()
|
|
|
+ }
|
|
|
},
|
|
|
// 跳转小程序
|
|
|
navigateToMiniProgram() {
|
|
|
if (this.platform === 'miniprogram') {
|
|
|
- // const { projectId } = getAppIdByGroupIdAndMallId({
|
|
|
- // groupId: this.$route.params.groupId,
|
|
|
- // mallId: this.$route.params.mallId,
|
|
|
- // type: 'all',
|
|
|
- // });
|
|
|
- // this.launchPathInit();
|
|
|
window.toWXSendMsg({
|
|
|
type: 'navigateToMiniProgram',
|
|
|
options: {
|
|
|
- launchPath: this.launchPath,
|
|
|
+ retailLbsId: this.lbsId,
|
|
|
},
|
|
|
});
|
|
|
// 订阅微信小程序端的回调
|