优化:个人资料与手机号设置入口
This commit is contained in:
@@ -10,7 +10,8 @@ Page({
|
||||
smsForm: { phone: '', code: '' },
|
||||
codeLoading: false,
|
||||
countdown: 0,
|
||||
timer: null
|
||||
timer: null,
|
||||
smsExpanded: false
|
||||
},
|
||||
|
||||
onShow() { this.loadProfile() },
|
||||
@@ -36,6 +37,10 @@ Page({
|
||||
this.setData({ [`smsForm.${field}`]: value })
|
||||
},
|
||||
|
||||
toggleSms() {
|
||||
this.setData({ smsExpanded: !this.data.smsExpanded })
|
||||
},
|
||||
|
||||
async bindWechatPhone(event) {
|
||||
const phoneCode = event.detail && event.detail.code
|
||||
if (!phoneCode) {
|
||||
|
||||
Reference in New Issue
Block a user