|
@@ -515,9 +515,12 @@ export default {
|
|
|
isLogin: {
|
|
|
handler: function (newV, oldV) {
|
|
|
if (newV == true) {
|
|
|
- this.getCouponList();
|
|
|
- this.getCartCount();
|
|
|
- this.downloadFilePromotionCode();
|
|
|
+ console.log("受邀码:"+this.$Cache.get('INVITE_CODE_LOGIN'));
|
|
|
+ this.id = this.$Cache.get('GOOD_ID_LOGIN')
|
|
|
+ this.getGoodsDetails();
|
|
|
+ // this.getCouponList();
|
|
|
+ // this.getCartCount();
|
|
|
+ // this.downloadFilePromotionCode();
|
|
|
}
|
|
|
},
|
|
|
deep: true,
|
|
@@ -535,12 +538,15 @@ export default {
|
|
|
immediate: true,
|
|
|
},
|
|
|
},
|
|
|
+
|
|
|
onLoad(options) {
|
|
|
uni.hideShareMenu();
|
|
|
// 判断是否登录
|
|
|
if (!this.isLogin) {
|
|
|
+ console.log("未登录的推荐码:" + options.inviteCode);
|
|
|
if (options.inviteCode) {
|
|
|
- this.$Cache.set('INVITE_CODE', options.inviteCode);
|
|
|
+ this.$Cache.set('INVITE_CODE_LOGIN', options.inviteCode);
|
|
|
+ this.$Cache.set('GOOD_ID_LOGIN', options.id);
|
|
|
}
|
|
|
uni.showToast({
|
|
|
title: "您暂未登录,即将跳登录界面",
|