优化:个人资料与手机号设置入口

This commit is contained in:
2026-10-10 17:56:44 +08:00
parent 0ceea1578f
commit cd08d3c3b0
7 changed files with 94 additions and 17 deletions
@@ -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) {