Commit 66b86aba by wenyang

优化1:未登录时购买商品,出现重复登录问题

parent 1eae4255
...@@ -235,7 +235,8 @@ ...@@ -235,7 +235,8 @@
close(val,loginTypeSync) { close(val,loginTypeSync) {
if (val) { if (val) {
this.sharelogin = false this.sharelogin = false
this.userId = val this.userId = val;
this.loginType = loginTypeSync;
uni.setStorageSync('cffp_userId', this.userId); uni.setStorageSync('cffp_userId', this.userId);
this.courseDetail(); this.courseDetail();
if(loginTypeSync == 'codelogin'){ if(loginTypeSync == 'codelogin'){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment