feat(addUser): 新增添加用户页面

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-08-19 15:20:55 +08:00
co-authored by Claude Opus 4.7
parent 21020a23b3
commit b66caf515e
5 changed files with 587 additions and 1 deletions
+38
View File
@@ -0,0 +1,38 @@
// pages/addUser/addUser.ts
Page({
data: {
userType: 'employee',
employeeId: '9527',
employeeInfo: {
name: '王旭',
company: '技术部·研发组',
gender: '男',
age: '32岁'
},
height: '',
weight: ''
},
/** tabs 切换:清空查询结果、重置表单 */
onTabTap(e: WechatMiniprogram.TouchEvent) {
const tab = e.currentTarget.dataset.value as string
this.setData({
userType: tab as 'employee' | 'family',
})
},
onTapType(e: WechatMiniprogram.TouchEvent) {
const type = e.currentTarget.dataset.type as string
this.setData({ userType: type })
},
onCancel() {
wx.navigateBack({
delta: 1
})
},
onSave() {
// 保存用户信息(待接入)
}
})