|
|
@ -53,10 +53,10 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
this.imagUrl = uni.getStorageSync('userInfo').headImage |
|
|
|
this.nameUser = uni.getStorageSync('userInfo').nickName |
|
|
|
this.phone = uni.getStorageSync('userInfo').phone |
|
|
|
if(options.back==1){ |
|
|
|
this.imagUrl = uni.getStorageSync('userInfo').headImage |
|
|
|
this.nameUser = uni.getStorageSync('userInfo').nickName |
|
|
|
this.phone = uni.getStorageSync('userInfo').phone |
|
|
|
this.back = options.back |
|
|
|
} |
|
|
|
}, |
|
|
@ -78,12 +78,11 @@ |
|
|
|
code : detail.code, |
|
|
|
encryptedData: detail.encryptedData, |
|
|
|
iv:detail.iv, |
|
|
|
sessionKey: uni.getStorageSync('sessionKey'), |
|
|
|
openid:uni.getStorageSync('userInfo').appletOpenid |
|
|
|
} |
|
|
|
bindPhone(params).then((response) => { |
|
|
|
console.info(response) |
|
|
|
that.phone = response.result |
|
|
|
let data = JSON.parse(response.result) |
|
|
|
that.phone = data.phone_info.phoneNumber |
|
|
|
}).catch(error=>{ |
|
|
|
|
|
|
|
}) |
|
|
|