feat(my): 新增个人信息、帮助中心、问题详情页面并接入导航

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-08-19 09:53:56 +08:00
co-authored by Claude Opus 4.7
parent cd11d711d5
commit 3a67b26ed6
15 changed files with 404 additions and 3 deletions
@@ -0,0 +1,6 @@
{
"usingComponents": {},
"navigationBarTitleText": "问题详情",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#FFFFFF"
}
@@ -0,0 +1,55 @@
.questionDetails {
width: 100%;
min-height: 100%;
padding: 24rpx 32rpx;
box-sizing: border-box;
background-color: #F5F7FB;
.card {
width: 100%;
background-color: #FFFFFF;
border-radius: 24rpx;
padding: 0 40rpx;
box-sizing: border-box;
.title {
color: #1385FA;
height: 36rpx;
font-size: 36rpx;
line-height: 36rpx;
padding: 40rpx 0;
border-bottom: 2rpx solid #EAECF1;
}
.step {
display: flex;
align-items: flex-start;
padding: 32rpx 0;
border-bottom: 2rpx solid #EAECF1;
&:last-of-type {
border-bottom: none;
}
.badge {
width: 36rpx;
height: 36rpx;
border-radius: 50%;
background-color: #1385FA;
color: #FFFFFF;
font-size: 24rpx;
line-height: 36rpx;
text-align: center;
flex-shrink: 0;
margin-right: 20rpx;
}
.step-text {
flex: 1;
color: #252535;
font-size: 26rpx;
line-height: 26rpx;
}
}
}
}
@@ -0,0 +1,19 @@
// pages/questionDetails/questionDetails.ts
Page({
data: {
title: '如何连接蓝牙设备',
steps: [
'进入"设备"页面,点击设备的"成员管理"按钮;',
'点击"添加新成员"进入添加页面;',
'选择用户类型(员工/家庭成员);',
'填写成员信息后保存;',
'在设备连接状态下,点击"同步成员至设备"将用户信息同步到设备。'
]
},
onLoad(options: { title?: string }) {
if (options.title) {
this.setData({ title: options.title })
}
}
})
@@ -0,0 +1,12 @@
<view class="questionDetails">
<view class="card">
<view class="title">{{ title }}</view>
<block wx:for="{{ steps }}" wx:key="index">
<view class="step">
<view class="badge">{{ index + 1 }}</view>
<view class="step-text">{{ item }}</view>
</view>
</block>
</view>
</view>