[最新]
This commit is contained in:
@@ -10,6 +10,8 @@ Page({
|
||||
data: {
|
||||
userLogin : false,
|
||||
userData : '',
|
||||
nameValue : '',
|
||||
isParent : false
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -97,4 +99,37 @@ Page({
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*
|
||||
获取邀请码
|
||||
*/
|
||||
bindinput(e) {
|
||||
this.setData({
|
||||
nameValue: e.detail.value
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 关闭绑定邀请码弹窗
|
||||
*/
|
||||
toBd() {
|
||||
this.setData({
|
||||
isParent: !this.data.isParent
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 绑定邀请码
|
||||
*/
|
||||
nameTrue() {
|
||||
wx.$api.mall.userBind({
|
||||
username: this.data.nameValue
|
||||
}).then(res => {
|
||||
// 获取用户信息
|
||||
this.userInfo();
|
||||
this.setData({
|
||||
isParent: false
|
||||
})
|
||||
})
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user