This commit is contained in:
2023-09-21 12:00:51 +08:00
parent a626d36591
commit b28caaad4c
12 changed files with 397 additions and 37 deletions

View File

@@ -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
})
})
},
})