zhanghui 1 år sedan
förälder
incheckning
2b9433484b
2 ändrade filer med 4 tillägg och 2 borttagningar
  1. 3 1
      pages/groupbuying_details/index.vue
  2. 1 1
      pages/users/wechat_login/index.vue

+ 3 - 1
pages/groupbuying_details/index.vue

@@ -489,7 +489,9 @@ export default {
 		if (this.isLogin){
 			console.log("+++++++++++获取到的推荐人ID:"+options.inviteUserId+"+++++++++++++++")
 			console.log("+++++++++++++++++调用绑定接口bindParentId开始+++++++++++++++++++++++")
-			bindParentId(options.inviteUserId)
+			bindParentId(options.inviteUserId).then(res=>{
+				this.$Cache.clear('INVITE_USER_ID');
+			})
 			console.log("+++++++++++++++++调用绑定接口bindParentId结束+++++++++++++++++++++++")
 		}
 	}

+ 1 - 1
pages/users/wechat_login/index.vue

@@ -239,7 +239,7 @@ export default {
 								console.log("+++++++++INVITE_USER_ID++++++22222222222+++++++",_this.inviteUserId)
 
 								bindParentId(_this.inviteUserId).then(res =>{
-									_this.$Cache.set("INVITE_USER_ID", res.data)
+									_this.$Cache.clear('INVITE_USER_ID');
 								})
 								console.log("+++++++++INVITE_USER_ID++++++3333333333333+++++++",_this.inviteUserId)
 							}