|
@@ -116,6 +116,7 @@ export default {
|
|
|
codeTips: '',
|
|
|
isUse:false,
|
|
|
scanCode: '', // pc端扫码登录获取的标志码
|
|
|
+ newUser_sc: '', // 用户扫码进来详情页获取的sc
|
|
|
isBack:false
|
|
|
};
|
|
|
},
|
|
@@ -129,7 +130,9 @@ export default {
|
|
|
// this.scanCode = option.scanCode
|
|
|
// }
|
|
|
// this.from = option.from;
|
|
|
-
|
|
|
+ if (uni.getStorageSync('newUser_sc')) {
|
|
|
+ this.newUser_sc = uni.getStorageSync('newUser_sc')
|
|
|
+ }
|
|
|
},
|
|
|
onShow() {
|
|
|
// 获取code
|
|
@@ -149,7 +152,8 @@ export default {
|
|
|
this.$api.wxLogin({
|
|
|
code: this.code,
|
|
|
encryptedData: e.detail.encryptedData,
|
|
|
- iv: e.detail.iv
|
|
|
+ iv: e.detail.iv,
|
|
|
+ shareCode: this.newUser_sc
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.loginCallback(res, 'wxlogin')
|
|
@@ -351,6 +355,7 @@ export default {
|
|
|
loginCallback(res, types) {
|
|
|
console.log('登录页面:', this.isBack)
|
|
|
// if(res.data.data && res.data.data.full_info){
|
|
|
+ uni.removeStorageSync('newUser_sc')
|
|
|
//信息完善,直接进入页面
|
|
|
uni.setStorageSync('user_account', res.data.data.user_account);
|
|
|
uni.setStorageSync('token', res.data.data.token);
|