feat(ui): redesign all miniprogram pages
- 全局样式改为粉色(#E6508C)/金色(#DCB982)/绿色(#52c41a)配色
- 所有非tab页使用自定义导航栏,带彩色头部+标题+副标题
- login页: 粉色头部+🌸图标+微信授权登录
- scan页: 粉色头部+虚线扫码框+手动输入按钮
- ble-connect页: 蓝牙提示+搜索中/已发现设备卡片
- bind-success页: 绿色头部+成功图标+7天试用提示卡
- wear-check页: 设备信息行+佩戴指引卡片
- index首页: 粉色设备卡片+开始护理/设备管理按钮
- treatment-setup页: 模式选择+面部地图选区域
- auto-scan页: 面部轮廓+扫描线动画+检测标签
- treating页: 蓝色头部+大倒计时+渐变进度条+放松提示
- treatment-done页: 绿色头部+统计卡片+已记录提示
- subscribe-prompt页: 普通/智能模式对比+试用提示+金色订阅按钮
- subscribe-plans页: 金色头部+服务卡片+月卡/年卡选择
- subscribe-success页: 绿色头部+订阅详情卡+金色按钮
- profile页: 渐变头部+用户行+订阅卡+菜单列表
- history页: 粉色统计行+模式标签记录列表
这个提交包含在:
@@ -1,3 +1,4 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "确认佩戴"
|
||||
}
|
||||
|
||||
@@ -1,27 +1,43 @@
|
||||
<view class="container">
|
||||
<view class="card text-center">
|
||||
<view class="section-title">确认佩戴</view>
|
||||
<view class="page">
|
||||
<view class="page-header page-header-pink">
|
||||
<view class="page-header-title">确认佩戴</view>
|
||||
<view class="page-header-subtitle">请确保面罩贴合面部</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{checking}}" class="text-muted mb-30">
|
||||
<view class="loading-area">
|
||||
<view class="spinner-sm"></view>
|
||||
<text>正在检测佩戴状态...</text>
|
||||
</view>
|
||||
<view class="tip-area mt-20">
|
||||
<text class="text-muted">请将设备贴合面部,确保佩戴稳固</text>
|
||||
<view class="page-content">
|
||||
<view class="device-row">
|
||||
<view class="device-row-icon">💆</view>
|
||||
<view class="device-row-info">
|
||||
<view class="device-row-name">
|
||||
光子美容仪
|
||||
<text class="status-badge status-badge-green">已连接</text>
|
||||
</view>
|
||||
<view class="device-row-battery">电量 85%</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{result === 'ok'}}">
|
||||
<view class="success-mark">✓</view>
|
||||
<view class="text-success mb-30">佩戴确认成功</view>
|
||||
<view class="btn-primary" bindtap="onNext">设置护理参数</view>
|
||||
<view class="guide-card">
|
||||
<view class="guide-title">佩戴指引</view>
|
||||
<view class="guide-img">面罩佩戴示意图</view>
|
||||
<view class="guide-steps">
|
||||
<view class="guide-step">1. 取出面罩,展开弹性绑带</view>
|
||||
<view class="guide-step">2. 将面罩贴合面部</view>
|
||||
<view class="guide-step">3. 调节绑带至舒适位置</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{result === 'fail'}}">
|
||||
<view class="fail-mark">✗</view>
|
||||
<view class="text-error mb-20">{{error}}</view>
|
||||
<view class="btn-primary" bindtap="onRetry">重新检测</view>
|
||||
<button class="btn-primary" bindtap="checkWearing" disabled="{{checking}}" loading="{{checking}}">
|
||||
确认已佩戴
|
||||
</button>
|
||||
<button class="btn-secondary" bindtap="onRetry">重新连接</button>
|
||||
|
||||
<view class="check-result" wx:if="{{result === 'ok'}}">
|
||||
<text class="check-ok">✓ 佩戴确认成功</text>
|
||||
</view>
|
||||
<view class="check-result" wx:if="{{result === 'fail'}}">
|
||||
<text class="check-fail">{{error}}</text>
|
||||
</view>
|
||||
|
||||
<button wx:if="{{result === 'ok'}}" class="btn-primary mt-30" bindtap="onNext">设置护理参数</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -1,50 +1,97 @@
|
||||
.loading-area {
|
||||
.device-row {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 40rpx 0;
|
||||
gap: 20rpx;
|
||||
background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 100%);
|
||||
border: 4rpx solid #E6508C;
|
||||
border-radius: 24rpx;
|
||||
padding: 24rpx;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
|
||||
.spinner-sm {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
border: 4rpx solid #eeeeee;
|
||||
border-top-color: #333333;
|
||||
.device-row-icon {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
background: #E6508C;
|
||||
border-radius: 50%;
|
||||
animation: spin 0.8s linear infinite;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #ffffff;
|
||||
font-size: 36rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.device-row-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.device-row-name {
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.device-row-battery {
|
||||
font-size: 24rpx;
|
||||
color: #666666;
|
||||
margin-top: 4rpx;
|
||||
}
|
||||
|
||||
.guide-card {
|
||||
background: #f8f8f8;
|
||||
border-radius: 20rpx;
|
||||
padding: 24rpx;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
|
||||
.guide-title {
|
||||
font-size: 26rpx;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
margin-bottom: 16rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.guide-img {
|
||||
width: 100%;
|
||||
height: 140rpx;
|
||||
background: #e8e8e8;
|
||||
border-radius: 12rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #999999;
|
||||
font-size: 24rpx;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
.guide-steps {
|
||||
padding-left: 24rpx;
|
||||
}
|
||||
|
||||
.success-mark {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #52c41a;
|
||||
color: #ffffff;
|
||||
font-size: 48rpx;
|
||||
line-height: 80rpx;
|
||||
.guide-step {
|
||||
font-size: 24rpx;
|
||||
color: #666666;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.check-result {
|
||||
text-align: center;
|
||||
margin: 20rpx auto;
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
|
||||
.fail-mark {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #ff4d4f;
|
||||
color: #ffffff;
|
||||
font-size: 48rpx;
|
||||
line-height: 80rpx;
|
||||
text-align: center;
|
||||
margin: 20rpx auto;
|
||||
.check-ok {
|
||||
color: #52c41a;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.tip-area {
|
||||
padding: 20rpx;
|
||||
background-color: #fffbe6;
|
||||
border-radius: 8rpx;
|
||||
.check-fail {
|
||||
color: #ff4d4f;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.btn-primary::after,
|
||||
.btn-secondary::after {
|
||||
border: none;
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户