|
|
@@ -37,12 +37,16 @@ export default {
|
|
|
putInfo(e){
|
|
|
let that = this;
|
|
|
if (e.detail.encryptedData) {
|
|
|
+ let inviteCode = uni.getStorageSync("inviteCode")
|
|
|
//用户同意授权
|
|
|
var datas = {
|
|
|
iv: e.detail.iv,
|
|
|
encryptedData: e.detail.encryptedData,
|
|
|
code: that.code
|
|
|
};
|
|
|
+ if(inviteCode){
|
|
|
+ datas.inviteCode = inviteCode
|
|
|
+ }
|
|
|
that.$api.login(datas).then(
|
|
|
res => {
|
|
|
if (res.data.code == 200) {
|