feat: 新增首页、设备、数据、我的页面及底部 tabBar 导航

扩展应用结构,接入底部导航;完善个人信息页提交文案与校验代码风格。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-08-17 13:46:52 +08:00
co-authored by Claude Sonnet 4.6
parent 83d909b95b
commit b264205cf4
36 changed files with 1039 additions and 37 deletions
@@ -1,4 +1,6 @@
{
"usingComponents": {},
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTitleText": "完善个人信息"
}
@@ -163,7 +163,7 @@
/* 底部提交按钮 */
.submit-btn {
color: #FFFFFF;
width: 580rpx;
width: 685rpx;
height: 88rpx;
font-size: 32rpx;
font-weight: bold;
@@ -63,10 +63,22 @@ Page({
const heightNum = parseFloat(height)
const weightNum = parseFloat(weight)
if (!name) return wx.showToast({ title: '请填写姓名', icon: 'none' })
if (!gender) return wx.showToast({ title: '请填写正确的身份证号', icon: 'none' })
if (!height || isNaN(heightNum) || heightNum <= 0) return wx.showToast({ title: '请填写身高', icon: 'none' })
if (!serverResult) return wx.showToast({ title: '请先验证姓名与身份证号', icon: 'none' })
if (!name) {
wx.showToast({ title: '请填写姓名', icon: 'none' })
return
}
if (!gender) {
wx.showToast({ title: '请填写正确的身份证号', icon: 'none' })
return
}
if (!height || isNaN(heightNum) || heightNum <= 0) {
wx.showToast({ title: '请填写身高', icon: 'none' })
return
}
if (!serverResult) {
wx.showToast({ title: '请先验证姓名与身份证号', icon: 'none' })
return
}
const parsed = parseIdCard(idCard)
@@ -102,5 +102,5 @@
</view>
</view>
<view class="submit-btn" bind:tap="onSubmit">完成</view>
<view class="submit-btn" bind:tap="onSubmit">完成并进入首页</view>
</view>