Compare commits
2
Commits
3bca677f30
...
b200d0a1ab
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b200d0a1ab | ||
|
|
1d8af0cb26 |
@@ -1,6 +1,10 @@
|
|||||||
/**app.wxss**/
|
/**app.wxss**/
|
||||||
page {
|
page {
|
||||||
background-color: #FAF6F1;
|
background-color: #FAF6F1;
|
||||||
|
/* 统一全局基础字号:正文主字号 28rpx */
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #2A211B;
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page {
|
.page {
|
||||||
|
|||||||
@@ -85,13 +85,13 @@
|
|||||||
|
|
||||||
.os-label {
|
.os-label {
|
||||||
margin-top: 12rpx;
|
margin-top: 12rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #8A8078;
|
color: #8A8078;
|
||||||
}
|
}
|
||||||
|
|
||||||
.os-fee {
|
.os-fee {
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
font-size: 22rpx;
|
font-size: 24rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #2A211B;
|
color: #2A211B;
|
||||||
padding: 4rpx 16rpx;
|
padding: 4rpx 16rpx;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.pi-sex {
|
.pi-sex {
|
||||||
font-size: 20rpx;
|
font-size: 22rpx;
|
||||||
padding: 2rpx 12rpx;
|
padding: 2rpx 12rpx;
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@@ -71,19 +71,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.pi-mobile {
|
.pi-mobile {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #8A8078;
|
color: #8A8078;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pi-call {
|
.pi-call {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #C26A2E;
|
color: #C26A2E;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
margin-left: 8rpx;
|
margin-left: 8rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pi-extra {
|
.pi-extra {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #8A8078;
|
color: #8A8078;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|||||||
+7
-7
@@ -90,7 +90,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.message-time {
|
.message-time {
|
||||||
font-size: 22rpx;
|
font-size: 24rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
margin-top: 8rpx;
|
margin-top: 8rpx;
|
||||||
padding: 0 4rpx;
|
padding: 0 4rpx;
|
||||||
@@ -129,7 +129,7 @@ page {
|
|||||||
|
|
||||||
.avatar-text {
|
.avatar-text {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -204,7 +204,7 @@ page {
|
|||||||
.message-markdown .t-chat-markdown-table__th,
|
.message-markdown .t-chat-markdown-table__th,
|
||||||
.message-markdown .t-chat-markdown-table__td {
|
.message-markdown .t-chat-markdown-table__td {
|
||||||
padding: 8rpx 12rpx;
|
padding: 8rpx 12rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
@@ -226,7 +226,7 @@ page {
|
|||||||
/* 代码块样式覆盖 */
|
/* 代码块样式覆盖 */
|
||||||
.message-markdown .t-chat-markdown-codespan,
|
.message-markdown .t-chat-markdown-codespan,
|
||||||
.message-markdown .t-chat-markdown-code {
|
.message-markdown .t-chat-markdown-code {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -239,12 +239,12 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.subagent-label {
|
.subagent-label {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #6F655C;
|
color: #6F655C;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subagent-arrow {
|
.subagent-arrow {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
transition: transform 0.2s ease;
|
transition: transform 0.2s ease;
|
||||||
}
|
}
|
||||||
@@ -349,7 +349,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.chat-toolbar-action text {
|
.chat-toolbar-action text {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #6F655C;
|
color: #6F655C;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.loading-text {
|
.loading-text {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
.hero-desc {
|
.hero-desc {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 12rpx;
|
margin-top: 12rpx;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
color: #8A8078;
|
color: #8A8078;
|
||||||
}
|
}
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
.card-title {
|
.card-title {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 24rpx 0 8rpx;
|
padding: 24rpx 0 8rpx;
|
||||||
font-size: 28rpx;
|
font-size: 30rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #2A211B;
|
color: #2A211B;
|
||||||
}
|
}
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
.card-tip {
|
.card-tip {
|
||||||
display: block;
|
display: block;
|
||||||
padding-bottom: 8rpx;
|
padding-bottom: 8rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #9C9188;
|
color: #9C9188;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -222,7 +222,7 @@
|
|||||||
|
|
||||||
.upload-tip {
|
.upload-tip {
|
||||||
margin-top: 8rpx;
|
margin-top: 8rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -243,7 +243,7 @@
|
|||||||
.reject-text {
|
.reject-text {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 8rpx;
|
margin-top: 8rpx;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
color: #9E443A;
|
color: #9E443A;
|
||||||
}
|
}
|
||||||
@@ -251,7 +251,7 @@
|
|||||||
.reject-hint {
|
.reject-hint {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 8rpx;
|
margin-top: 8rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #C0564A;
|
color: #C0564A;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -311,7 +311,7 @@
|
|||||||
.foot-note {
|
.foot-note {
|
||||||
padding: 0 16rpx;
|
padding: 0 16rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ page {
|
|||||||
padding: 16rpx 28rpx;
|
padding: 16rpx 28rpx;
|
||||||
background: @accent-primary;
|
background: @accent-primary;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
border-radius: 32rpx;
|
border-radius: 32rpx;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@@ -121,7 +121,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stats-label {
|
.stats-label {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: @text-secondary;
|
color: @text-secondary;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -152,7 +152,7 @@ page {
|
|||||||
|
|
||||||
.loading-text {
|
.loading-text {
|
||||||
color: @text-secondary !important;
|
color: @text-secondary !important;
|
||||||
font-size: 26rpx !important;
|
font-size: 28rpx !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty-text {
|
.empty-text {
|
||||||
@@ -257,7 +257,7 @@ page {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 4rpx 14rpx;
|
padding: 4rpx 14rpx;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
font-size: 22rpx;
|
font-size: 24rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|
||||||
&.male {
|
&.male {
|
||||||
@@ -272,18 +272,18 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.customer-date {
|
.customer-date {
|
||||||
font-size: 22rpx;
|
font-size: 24rpx;
|
||||||
color: @text-muted;
|
color: @text-muted;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.customer-phone {
|
.customer-phone {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: @text-secondary;
|
color: @text-secondary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.customer-location {
|
.customer-location {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: @text-muted;
|
color: @text-muted;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -321,6 +321,6 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.no-more {
|
.no-more {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: @text-muted;
|
color: @text-muted;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stat-label {
|
.stat-label {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stat-unit {
|
.stat-unit {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
margin-left: 8rpx;
|
margin-left: 8rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ page {
|
|||||||
|
|
||||||
.section-title {
|
.section-title {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 32rpx;
|
font-size: 30rpx;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: #2A211B;
|
color: #2A211B;
|
||||||
margin-left: 8rpx;
|
margin-left: 8rpx;
|
||||||
@@ -110,7 +110,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.quick-label {
|
.quick-label {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #3A322B;
|
color: #3A322B;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.order-service {
|
.order-service {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #C26A2E;
|
color: #C26A2E;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -124,7 +124,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.status-tag {
|
.status-tag {
|
||||||
font-size: 22rpx;
|
font-size: 24rpx;
|
||||||
padding: 6rpx 20rpx;
|
padding: 6rpx 20rpx;
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@@ -169,7 +169,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.order-hospital {
|
.order-hospital {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #8A8078;
|
color: #8A8078;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -179,7 +179,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.order-time {
|
.order-time {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
@@ -192,7 +192,7 @@ page {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
text {
|
text {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #C0B7AC;
|
color: #C0B7AC;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+11
-11
@@ -10,22 +10,22 @@ function resolveDisplayStatus(order) {
|
|||||||
return order?.status || 'pending'
|
return order?.status || 'pending'
|
||||||
}
|
}
|
||||||
|
|
||||||
// 快捷入口:type=quick 为快捷操作(琥珀浅色系),type=function 为功能入口(暖铜主色系),分行显示。
|
// 快捷入口:琥珀浅色系为快捷操作,暖铜主色系为功能入口,统一在一行内展示。
|
||||||
// 管理员与陪诊员共用同一套入口配置,但陪诊员不展示档案/客户等管理员能力
|
// 管理员与陪诊员共用同一套入口配置,但陪诊员不展示档案/客户等管理员能力
|
||||||
const ADMIN_ENTRIES = [
|
const ADMIN_ENTRIES = [
|
||||||
{ type: 'quick', icon: 'add-circle', name: '增加预约', url: '/pages/order/orderEdit', color: '#E8A96B' },
|
{ icon: 'add-circle', name: '增加预约', url: '/pages/order/orderEdit', color: '#E8A96B' },
|
||||||
{ type: 'quick', icon: 'file-add', name: '增加档案', url: '/pages/healthprofile/profileInfo', color: '#E8A96B' },
|
{ icon: 'file-add', name: '增加档案', url: '/pages/healthprofile/profileInfo', color: '#E8A96B' },
|
||||||
{ type: 'quick', icon: 'lightbulb-circle-filled', name: 'AI办公', url: '/pages/ai/index', isTab: true, color: '#E8A96B' },
|
{ icon: 'lightbulb-circle-filled', name: 'AI办公', url: '/pages/ai/index', isTab: true, color: '#E8A96B' },
|
||||||
{ type: 'function', icon: 'bill', name: '预约订单', url: '/pages/order/index', isTab: true, color: '#C26A2E' },
|
{ icon: 'bill', name: '预约订单', url: '/pages/order/index', isTab: true, color: '#C26A2E' },
|
||||||
{ type: 'function', icon: 'heart', name: '健康档案', url: '/pages/healthprofile/index', color: '#C26A2E' },
|
{ icon: 'heart', name: '健康档案', url: '/pages/healthprofile/index', color: '#C26A2E' },
|
||||||
{ type: 'function', icon: 'user', name: '注册用户', url: '/pages/customer/index', color: '#C26A2E' },
|
{ icon: 'user', name: '注册用户', url: '/pages/customer/index', color: '#C26A2E' },
|
||||||
{ type: 'function', icon: 'user-circle', name: '个人信息', url: '/pages/me/index', color: '#C26A2E' }
|
{ icon: 'user-circle', name: '个人信息', url: '/pages/me/index', color: '#C26A2E' }
|
||||||
]
|
]
|
||||||
|
|
||||||
const ATTENDANT_ENTRIES = [
|
const ATTENDANT_ENTRIES = [
|
||||||
{ type: 'quick', icon: 'lightbulb-circle-filled', name: 'AI办公', url: '/pages/ai/index', isTab: true, color: '#E8A96B' },
|
{ icon: 'lightbulb-circle-filled', name: 'AI办公', url: '/pages/ai/index', isTab: true, color: '#E8A96B' },
|
||||||
{ type: 'function', icon: 'bill', name: '预约订单', url: '/pages/order/index', isTab: true, color: '#C26A2E' },
|
{ icon: 'bill', name: '预约订单', url: '/pages/order/index', isTab: true, color: '#C26A2E' },
|
||||||
{ type: 'function', icon: 'user-circle', name: '个人信息', url: '/pages/me/index', color: '#C26A2E' }
|
{ icon: 'user-circle', name: '个人信息', url: '/pages/me/index', color: '#C26A2E' }
|
||||||
]
|
]
|
||||||
|
|
||||||
Page({
|
Page({
|
||||||
|
|||||||
+4
-14
@@ -55,21 +55,11 @@
|
|||||||
<view class="section">
|
<view class="section">
|
||||||
<text class="section-title">快捷入口</text>
|
<text class="section-title">快捷入口</text>
|
||||||
<view class="quick-grid card">
|
<view class="quick-grid card">
|
||||||
<view class="quick-row">
|
<view class="quick-item" wx:for="{{quickEntries}}" wx:key="name" bindtap="onEntryTap" data-index="{{index}}">
|
||||||
<view class="quick-item" wx:for="{{quickEntries}}" wx:key="name" wx:if="{{item.type === 'quick'}}" bindtap="onEntryTap" data-index="{{index}}">
|
<view class="quick-icon" style="background-color: {{item.color}}1a;">
|
||||||
<view class="quick-icon" style="background-color: {{item.color}}1a;">
|
<t-icon name="{{item.icon}}" size="36rpx" color="{{item.color}}" />
|
||||||
<t-icon name="{{item.icon}}" size="40rpx" color="{{item.color}}" />
|
|
||||||
</view>
|
|
||||||
<text class="quick-label">{{item.name}}</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="quick-row">
|
|
||||||
<view class="quick-item" wx:for="{{quickEntries}}" wx:key="name" wx:if="{{item.type === 'function'}}" bindtap="onEntryTap" data-index="{{index}}">
|
|
||||||
<view class="quick-icon" style="background-color: {{item.color}}1a;">
|
|
||||||
<t-icon name="{{item.icon}}" size="40rpx" color="{{item.color}}" />
|
|
||||||
</view>
|
|
||||||
<text class="quick-label">{{item.name}}</text>
|
|
||||||
</view>
|
</view>
|
||||||
|
<text class="quick-label">{{item.name}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
+22
-26
@@ -107,14 +107,14 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.level-text {
|
.level-text {
|
||||||
font-size: 20rpx;
|
font-size: 22rpx;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.greeting {
|
.greeting {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 8rpx;
|
margin-top: 8rpx;
|
||||||
font-size: 22rpx;
|
font-size: 24rpx;
|
||||||
color: rgba(255, 255, 255, 0.65);
|
color: rgba(255, 255, 255, 0.65);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ page {
|
|||||||
|
|
||||||
.intern-tip-text {
|
.intern-tip-text {
|
||||||
margin-left: 12rpx;
|
margin-left: 12rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
color: #8A5A32;
|
color: #8A5A32;
|
||||||
}
|
}
|
||||||
@@ -146,7 +146,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.switch-text {
|
.switch-text {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
margin-right: 10rpx;
|
margin-right: 10rpx;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
@@ -201,7 +201,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stat-label {
|
.stat-label {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: rgba(255, 255, 255, 0.75);
|
color: rgba(255, 255, 255, 0.75);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -213,7 +213,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stat-unit {
|
.stat-unit {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
margin-right: 4rpx;
|
margin-right: 4rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -260,7 +260,7 @@ page {
|
|||||||
.view-all {
|
.view-all {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -274,22 +274,17 @@ page {
|
|||||||
|
|
||||||
.quick-grid {
|
.quick-grid {
|
||||||
margin-top: 16rpx;
|
margin-top: 16rpx;
|
||||||
padding: 32rpx 8rpx 8rpx;
|
padding: 32rpx 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: nowrap;
|
||||||
}
|
|
||||||
|
|
||||||
.quick-row {
|
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.quick-item {
|
.quick-item {
|
||||||
width: 25%;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 32rpx;
|
|
||||||
transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1);
|
transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -299,19 +294,20 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.quick-icon {
|
.quick-icon {
|
||||||
width: 88rpx;
|
width: 72rpx;
|
||||||
height: 88rpx;
|
height: 72rpx;
|
||||||
border-radius: 26rpx;
|
border-radius: 22rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-bottom: 14rpx;
|
margin-bottom: 12rpx;
|
||||||
box-shadow: inset 0 2rpx 4rpx rgba(255, 255, 255, 0.8), 0 4rpx 10rpx rgba(90, 62, 42, 0.06);
|
box-shadow: inset 0 2rpx 4rpx rgba(255, 255, 255, 0.8), 0 4rpx 10rpx rgba(90, 62, 42, 0.06);
|
||||||
}
|
}
|
||||||
|
|
||||||
.quick-label {
|
.quick-label {
|
||||||
font-size: 26rpx;
|
font-size: 24rpx;
|
||||||
color: #5C5044;
|
color: #5C5044;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === 订单列表 === */
|
/* === 订单列表 === */
|
||||||
@@ -348,7 +344,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.order-service {
|
.order-service {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #C26A2E;
|
color: #C26A2E;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -358,7 +354,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.status-tag {
|
.status-tag {
|
||||||
font-size: 22rpx;
|
font-size: 24rpx;
|
||||||
padding: 6rpx 20rpx;
|
padding: 6rpx 20rpx;
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@@ -403,7 +399,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.order-hospital {
|
.order-hospital {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #8A8078;
|
color: #8A8078;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -413,7 +409,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.order-time {
|
.order-time {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
@@ -432,6 +428,6 @@ page {
|
|||||||
|
|
||||||
.empty-text {
|
.empty-text {
|
||||||
margin-top: 16rpx;
|
margin-top: 16rpx;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #C7BDB2;
|
color: #C7BDB2;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,19 +26,19 @@ page {
|
|||||||
|
|
||||||
.launch-sub {
|
.launch-sub {
|
||||||
margin-top: 12rpx;
|
margin-top: 12rpx;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #9C9188;
|
color: #9C9188;
|
||||||
}
|
}
|
||||||
|
|
||||||
.launch-tip {
|
.launch-tip {
|
||||||
margin-top: 48rpx;
|
margin-top: 48rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #B5AAA0;
|
color: #B5AAA0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.launch-error {
|
.launch-error {
|
||||||
margin-top: 48rpx;
|
margin-top: 48rpx;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #C26A2E;
|
color: #C26A2E;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.loading-text {
|
.loading-text {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #9C9188;
|
color: #9C9188;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ page {
|
|||||||
.hero-desc {
|
.hero-desc {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 12rpx;
|
margin-top: 12rpx;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
color: #8A8078;
|
color: #8A8078;
|
||||||
}
|
}
|
||||||
@@ -65,7 +65,7 @@ page {
|
|||||||
.empty-desc {
|
.empty-desc {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 16rpx;
|
margin-top: 16rpx;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #8A8078;
|
color: #8A8078;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ page {
|
|||||||
.status-desc {
|
.status-desc {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 8rpx;
|
margin-top: 8rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #8A8078;
|
color: #8A8078;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ page {
|
|||||||
|
|
||||||
.upload-tip {
|
.upload-tip {
|
||||||
margin-top: 8rpx;
|
margin-top: 8rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #9C9188;
|
color: #9C9188;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+150
-2
@@ -16,7 +16,25 @@ Page({
|
|||||||
isAttendant: false,
|
isAttendant: false,
|
||||||
serviceAreaLabels: CITY_LABELS,
|
serviceAreaLabels: CITY_LABELS,
|
||||||
serviceAreaIndex: 0,
|
serviceAreaIndex: 0,
|
||||||
serviceAreaText: ''
|
serviceAreaText: '',
|
||||||
|
// 个人信息编辑态:只开放后端支持自助修改的字段(姓名/性别/生日/地区)
|
||||||
|
editing: false,
|
||||||
|
saving: false,
|
||||||
|
today: '',
|
||||||
|
form: {
|
||||||
|
name: '',
|
||||||
|
sex: '',
|
||||||
|
birth: '',
|
||||||
|
province: '',
|
||||||
|
city: '',
|
||||||
|
district: '',
|
||||||
|
regionText: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
onLoad() {
|
||||||
|
this.rawUser = null
|
||||||
|
this.setData({ today: this.formatDate(new Date()) })
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -98,6 +116,129 @@ Page({
|
|||||||
wx.navigateTo({ url: '/pages/materials/index' })
|
wx.navigateTo({ url: '/pages/materials/index' })
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用当前用户数据构建编辑表单
|
||||||
|
*/
|
||||||
|
buildForm(user) {
|
||||||
|
const profile = (user && user.profile) || {}
|
||||||
|
const location = (user && user.location) || {}
|
||||||
|
const province = location.province || ''
|
||||||
|
const city = location.city || ''
|
||||||
|
const district = location.district || ''
|
||||||
|
return {
|
||||||
|
name: profile.name || '',
|
||||||
|
sex: profile.sex || 'male',
|
||||||
|
birth: this.formatDate(profile.birth),
|
||||||
|
province,
|
||||||
|
city,
|
||||||
|
district,
|
||||||
|
regionText: [province, city, district].filter(Boolean).join(' ')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 进入/退出编辑态:退出时不保存,直接丢弃未提交的修改
|
||||||
|
*/
|
||||||
|
onToggleEdit() {
|
||||||
|
if (this.data.saving) return
|
||||||
|
if (this.data.editing) {
|
||||||
|
this.setData({ editing: false, form: this.buildForm(this.rawUser) })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.setData({ editing: true, form: this.buildForm(this.rawUser) })
|
||||||
|
},
|
||||||
|
|
||||||
|
onFormInput(e) {
|
||||||
|
this.setData({ [`form.${e.currentTarget.dataset.field}`]: e.detail.value })
|
||||||
|
},
|
||||||
|
|
||||||
|
onSelectSex(e) {
|
||||||
|
this.setData({ 'form.sex': e.currentTarget.dataset.sex })
|
||||||
|
},
|
||||||
|
|
||||||
|
onBirthChange(e) {
|
||||||
|
this.setData({ 'form.birth': e.detail.value })
|
||||||
|
},
|
||||||
|
|
||||||
|
onRegionChange(e) {
|
||||||
|
const region = e.detail.value || []
|
||||||
|
const province = region[0] || ''
|
||||||
|
const city = region[1] || ''
|
||||||
|
const district = region[2] || ''
|
||||||
|
this.setData({
|
||||||
|
'form.province': province,
|
||||||
|
'form.city': city,
|
||||||
|
'form.district': district,
|
||||||
|
'form.regionText': [province, city, district].filter(Boolean).join(' ')
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存个人信息:/user/update 只接受姓名、性别、生日、手机号与地区,这里提交可自助修改的字段
|
||||||
|
*/
|
||||||
|
onSaveProfile() {
|
||||||
|
if (this.data.saving) return
|
||||||
|
|
||||||
|
const form = this.data.form
|
||||||
|
const name = (form.name || '').trim()
|
||||||
|
if (!name) {
|
||||||
|
wx.showToast({ title: '请输入姓名', icon: 'none' })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!form.sex) {
|
||||||
|
wx.showToast({ title: '请选择性别', icon: 'none' })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
const app = getApp()
|
||||||
|
if (!app.globalData.user) {
|
||||||
|
wx.showToast({ title: '请先登录', icon: 'none' })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
this.setData({ saving: true })
|
||||||
|
wx.showLoading({ title: '保存中...' })
|
||||||
|
|
||||||
|
API.user
|
||||||
|
.update({
|
||||||
|
profile: {
|
||||||
|
name,
|
||||||
|
sex: form.sex,
|
||||||
|
birth: form.birth || ''
|
||||||
|
},
|
||||||
|
location: {
|
||||||
|
province: form.province,
|
||||||
|
city: form.city,
|
||||||
|
district: form.district
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
wx.hideLoading()
|
||||||
|
this.setData({ saving: false })
|
||||||
|
if (!res || res.code !== 0) {
|
||||||
|
wx.showToast({ title: (res && res.msg) || '保存失败', icon: 'none' })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
// 回写全局用户:响应是脱敏用户(不含本机 token),需保留本地 security
|
||||||
|
const prev = app.globalData.user || {}
|
||||||
|
const updated = {
|
||||||
|
...prev,
|
||||||
|
...((res.data && res.data.user) || {}),
|
||||||
|
security: prev.security || {}
|
||||||
|
}
|
||||||
|
app.globalData.user = updated
|
||||||
|
this.rawUser = updated
|
||||||
|
this.setData({ editing: false })
|
||||||
|
this.setUser(updated)
|
||||||
|
wx.showToast({ title: '保存成功', icon: 'success' })
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
wx.hideLoading()
|
||||||
|
this.setData({ saving: false })
|
||||||
|
wx.showToast({ title: (err && err.message) || '网络错误,请重试', icon: 'none' })
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 加载当前登录用户信息
|
* 加载当前登录用户信息
|
||||||
*/
|
*/
|
||||||
@@ -117,6 +258,7 @@ Page({
|
|||||||
*/
|
*/
|
||||||
setUser(user) {
|
setUser(user) {
|
||||||
if (!user) return
|
if (!user) return
|
||||||
|
this.rawUser = user
|
||||||
const profile = user.profile || {}
|
const profile = user.profile || {}
|
||||||
const location = user.location || {}
|
const location = user.location || {}
|
||||||
const meta = user.meta || {}
|
const meta = user.meta || {}
|
||||||
@@ -139,6 +281,11 @@ Page({
|
|||||||
createText: this.formatDate(meta.createtime)
|
createText: this.formatDate(meta.createtime)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 编辑中不覆盖用户正在填写的表单
|
||||||
|
if (!this.data.editing) {
|
||||||
|
this.setData({ form: this.buildForm(user) })
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -147,7 +294,8 @@ Page({
|
|||||||
formatDate(dateStr) {
|
formatDate(dateStr) {
|
||||||
if (!dateStr) return ''
|
if (!dateStr) return ''
|
||||||
const date = new Date(dateStr)
|
const date = new Date(dateStr)
|
||||||
if (isNaN(date.getTime())) return ''
|
// birth 默认值是 0(1970-01-01),视为未填写
|
||||||
|
if (isNaN(date.getTime()) || date.getTime() <= 0) return ''
|
||||||
const pad = (n) => String(n).padStart(2, '0')
|
const pad = (n) => String(n).padStart(2, '0')
|
||||||
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`
|
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`
|
||||||
},
|
},
|
||||||
|
|||||||
+79
-1
@@ -51,6 +51,8 @@ page {
|
|||||||
margin-left: 28rpx;
|
margin-left: 28rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-name {
|
.user-name {
|
||||||
@@ -60,10 +62,26 @@ page {
|
|||||||
|
|
||||||
.user-mobile {
|
.user-mobile {
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* === 编辑入口 === */
|
||||||
|
.edit-entry {
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-left: 16rpx;
|
||||||
|
padding: 10rpx 24rpx;
|
||||||
|
border-radius: 28rpx;
|
||||||
|
background-color: rgba(255, 255, 255, 0.16);
|
||||||
|
border: 1rpx solid rgba(255, 255, 255, 0.4);
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #ffffff;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: rgba(255, 255, 255, 0.28);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* === 详细信息卡 === */
|
/* === 详细信息卡 === */
|
||||||
.info-card {
|
.info-card {
|
||||||
margin-top: 24rpx;
|
margin-top: 24rpx;
|
||||||
@@ -117,3 +135,63 @@ page {
|
|||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: #C9BFB5;
|
color: #C9BFB5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* === 编辑态表单 === */
|
||||||
|
.edit-input {
|
||||||
|
flex: 1;
|
||||||
|
height: 48rpx;
|
||||||
|
min-height: 48rpx;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit-placeholder {
|
||||||
|
color: #C7BDB2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sex-edit {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 16rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sex-chip {
|
||||||
|
padding: 6rpx 32rpx;
|
||||||
|
border-radius: 24rpx;
|
||||||
|
background-color: #F4EFE9;
|
||||||
|
border: 1rpx solid transparent;
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #6F655C;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
background-color: rgba(194, 106, 46, 0.1);
|
||||||
|
border-color: #C26A2E;
|
||||||
|
color: #C26A2E;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* === 保存按钮 === */
|
||||||
|
.save-bar {
|
||||||
|
margin-top: 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.save-btn {
|
||||||
|
height: 96rpx;
|
||||||
|
line-height: 96rpx;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 48rpx;
|
||||||
|
background-color: #C26A2E;
|
||||||
|
color: #ffffff;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
box-shadow: 0 8rpx 24rpx rgba(180, 85, 42, 0.25);
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
+70
-3
@@ -10,10 +10,32 @@
|
|||||||
<text class="user-name">{{user.name}}</text>
|
<text class="user-name">{{user.name}}</text>
|
||||||
<text class="user-mobile">{{user.mobile || '暂未绑定手机号'}}</text>
|
<text class="user-mobile">{{user.mobile || '暂未绑定手机号'}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="edit-entry {{editing ? 'active' : ''}}" bindtap="onToggleEdit">
|
||||||
|
<text>{{editing ? '取消' : '编辑'}}</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 详细信息 -->
|
<!-- 详细信息 -->
|
||||||
<view class="info-card">
|
<view class="info-card">
|
||||||
|
<!-- 姓名 -->
|
||||||
|
<view class="info-item">
|
||||||
|
<view class="info-left">
|
||||||
|
<t-icon name="user-circle" size="36rpx" color="#C26A2E" />
|
||||||
|
<text class="info-label">姓名</text>
|
||||||
|
</view>
|
||||||
|
<input
|
||||||
|
wx:if="{{editing}}"
|
||||||
|
class="info-value edit-input"
|
||||||
|
value="{{form.name}}"
|
||||||
|
maxlength="20"
|
||||||
|
placeholder="请输入姓名"
|
||||||
|
placeholder-class="edit-placeholder"
|
||||||
|
bindinput="onFormInput"
|
||||||
|
data-field="name"
|
||||||
|
/>
|
||||||
|
<text wx:else class="info-value">{{user.name}}</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view class="info-item" wx:if="{{identityText}}">
|
<view class="info-item" wx:if="{{identityText}}">
|
||||||
<view class="info-left">
|
<view class="info-left">
|
||||||
<t-icon name="award" size="36rpx" color="#C26A2E" />
|
<t-icon name="award" size="36rpx" color="#C26A2E" />
|
||||||
@@ -21,20 +43,46 @@
|
|||||||
</view>
|
</view>
|
||||||
<text class="info-value">{{identityText}}</text>
|
<text class="info-value">{{identityText}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 性别 -->
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<view class="info-left">
|
<view class="info-left">
|
||||||
<t-icon name="user" size="36rpx" color="#C26A2E" />
|
<t-icon name="user" size="36rpx" color="#C26A2E" />
|
||||||
<text class="info-label">性别</text>
|
<text class="info-label">性别</text>
|
||||||
</view>
|
</view>
|
||||||
<text class="info-value">{{user.sexLabel}}</text>
|
<view class="sex-edit" wx:if="{{editing}}">
|
||||||
|
<view class="sex-chip {{form.sex === 'male' ? 'active' : ''}}" bindtap="onSelectSex" data-sex="male">
|
||||||
|
<text>男</text>
|
||||||
|
</view>
|
||||||
|
<view class="sex-chip {{form.sex === 'female' ? 'active' : ''}}" bindtap="onSelectSex" data-sex="female">
|
||||||
|
<text>女</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<text wx:else class="info-value">{{user.sexLabel}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 出生日期 -->
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<view class="info-left">
|
<view class="info-left">
|
||||||
<t-icon name="calendar" size="36rpx" color="#C26A2E" />
|
<t-icon name="calendar" size="36rpx" color="#C26A2E" />
|
||||||
<text class="info-label">出生日期</text>
|
<text class="info-label">出生日期</text>
|
||||||
</view>
|
</view>
|
||||||
<text class="info-value">{{user.birthText || '未填写'}}</text>
|
<picker
|
||||||
|
wx:if="{{editing}}"
|
||||||
|
mode="date"
|
||||||
|
value="{{form.birth || today}}"
|
||||||
|
start="1930-01-01"
|
||||||
|
end="{{today}}"
|
||||||
|
bindchange="onBirthChange"
|
||||||
|
>
|
||||||
|
<view class="info-value picker-value">
|
||||||
|
{{form.birth || '请选择'}}
|
||||||
|
<text class="arrow">›</text>
|
||||||
|
</view>
|
||||||
|
</picker>
|
||||||
|
<text wx:else class="info-value">{{user.birthText || '未填写'}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<view class="info-left">
|
<view class="info-left">
|
||||||
<t-icon name="mail" size="36rpx" color="#C26A2E" />
|
<t-icon name="mail" size="36rpx" color="#C26A2E" />
|
||||||
@@ -49,13 +97,27 @@
|
|||||||
</view>
|
</view>
|
||||||
<text class="info-value">{{user.idnumber || '未填写'}}</text>
|
<text class="info-value">{{user.idnumber || '未填写'}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 所在地区 -->
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<view class="info-left">
|
<view class="info-left">
|
||||||
<t-icon name="location" size="36rpx" color="#C26A2E" />
|
<t-icon name="location" size="36rpx" color="#C26A2E" />
|
||||||
<text class="info-label">所在地区</text>
|
<text class="info-label">所在地区</text>
|
||||||
</view>
|
</view>
|
||||||
<text class="info-value">{{user.locationText || '未填写'}}</text>
|
<picker
|
||||||
|
wx:if="{{editing}}"
|
||||||
|
mode="region"
|
||||||
|
value="{{[form.province, form.city, form.district]}}"
|
||||||
|
bindchange="onRegionChange"
|
||||||
|
>
|
||||||
|
<view class="info-value picker-value">
|
||||||
|
{{form.regionText || '请选择'}}
|
||||||
|
<text class="arrow">›</text>
|
||||||
|
</view>
|
||||||
|
</picker>
|
||||||
|
<text wx:else class="info-value">{{user.locationText || '未填写'}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="info-item" wx:if="{{isAttendant}}">
|
<view class="info-item" wx:if="{{isAttendant}}">
|
||||||
<view class="info-left">
|
<view class="info-left">
|
||||||
<t-icon name="location" size="36rpx" color="#C26A2E" />
|
<t-icon name="location" size="36rpx" color="#C26A2E" />
|
||||||
@@ -91,4 +153,9 @@
|
|||||||
<text class="info-value">{{user.createText || '未知'}}</text>
|
<text class="info-value">{{user.createText || '未知'}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 编辑态保存 -->
|
||||||
|
<view class="save-bar" wx:if="{{editing}}">
|
||||||
|
<button class="save-btn" loading="{{saving}}" bindtap="onSaveProfile">保存</button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
+18
-18
@@ -74,7 +74,7 @@ page {
|
|||||||
|
|
||||||
.header-sub {
|
.header-sub {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 22rpx;
|
font-size: 24rpx;
|
||||||
color: rgba(255, 255, 255, 0.65);
|
color: rgba(255, 255, 255, 0.65);
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
letter-spacing: 1rpx;
|
letter-spacing: 1rpx;
|
||||||
@@ -85,7 +85,7 @@ page {
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
padding: 16rpx 28rpx;
|
padding: 16rpx 28rpx;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background: rgba(255, 255, 255, 0.18);
|
background: rgba(255, 255, 255, 0.18);
|
||||||
border: 1rpx solid rgba(255, 255, 255, 0.4);
|
border: 1rpx solid rgba(255, 255, 255, 0.4);
|
||||||
@@ -109,7 +109,7 @@ page {
|
|||||||
padding: 16rpx 0;
|
padding: 16rpx 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 26rpx;
|
border-radius: 26rpx;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: @muted;
|
color: @muted;
|
||||||
transition: all 0.25s;
|
transition: all 0.25s;
|
||||||
|
|
||||||
@@ -130,7 +130,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.filter-label {
|
.filter-label {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: @muted;
|
color: @muted;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@ page {
|
|||||||
padding: 12rpx 24rpx;
|
padding: 12rpx 24rpx;
|
||||||
background: @card;
|
background: @card;
|
||||||
border-radius: 28rpx;
|
border-radius: 28rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: @text;
|
color: @text;
|
||||||
border: 1rpx solid rgba(90, 62, 42, 0.06);
|
border: 1rpx solid rgba(90, 62, 42, 0.06);
|
||||||
box-shadow: 0 4rpx 12rpx rgba(90, 62, 42, 0.05);
|
box-shadow: 0 4rpx 12rpx rgba(90, 62, 42, 0.05);
|
||||||
@@ -178,7 +178,7 @@ page {
|
|||||||
|
|
||||||
.loading-text {
|
.loading-text {
|
||||||
color: @muted !important;
|
color: @muted !important;
|
||||||
font-size: 26rpx !important;
|
font-size: 28rpx !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty-text {
|
.empty-text {
|
||||||
@@ -191,7 +191,7 @@ page {
|
|||||||
padding: 14rpx 48rpx;
|
padding: 14rpx 48rpx;
|
||||||
background: @accent;
|
background: @accent;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
border-radius: 28rpx;
|
border-radius: 28rpx;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
@@ -231,7 +231,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.order-tag {
|
.order-tag {
|
||||||
font-size: 20rpx;
|
font-size: 22rpx;
|
||||||
padding: 4rpx 14rpx;
|
padding: 4rpx 14rpx;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@@ -248,14 +248,14 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.order-no {
|
.order-no {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: @muted;
|
color: @muted;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-family: 'DIN Alternate', 'Helvetica Neue', monospace;
|
font-family: 'DIN Alternate', 'Helvetica Neue', monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-badge {
|
.status-badge {
|
||||||
font-size: 22rpx;
|
font-size: 24rpx;
|
||||||
padding: 6rpx 20rpx;
|
padding: 6rpx 20rpx;
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@@ -338,7 +338,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.patient-sex {
|
.patient-sex {
|
||||||
font-size: 20rpx;
|
font-size: 22rpx;
|
||||||
padding: 2rpx 10rpx;
|
padding: 2rpx 10rpx;
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@@ -355,12 +355,12 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.patient-age {
|
.patient-age {
|
||||||
font-size: 22rpx;
|
font-size: 24rpx;
|
||||||
color: @muted;
|
color: @muted;
|
||||||
}
|
}
|
||||||
|
|
||||||
.patient-phone {
|
.patient-phone {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: @muted;
|
color: @muted;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -377,14 +377,14 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.line-label {
|
.line-label {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: @muted;
|
color: @muted;
|
||||||
width: 64rpx;
|
width: 64rpx;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.line-value {
|
.line-value {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: @text;
|
color: @text;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
@@ -406,7 +406,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fee-label {
|
.fee-label {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: @muted;
|
color: @muted;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -425,7 +425,7 @@ page {
|
|||||||
.action-btn {
|
.action-btn {
|
||||||
padding: 14rpx 32rpx;
|
padding: 14rpx 32rpx;
|
||||||
border-radius: 24rpx;
|
border-radius: 24rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
|
|
||||||
@@ -455,6 +455,6 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.no-more {
|
.no-more {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: @muted;
|
color: @muted;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ page {
|
|||||||
|
|
||||||
.status-desc {
|
.status-desc {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: rgba(255, 255, 255, 0.7);
|
color: rgba(255, 255, 255, 0.7);
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
}
|
}
|
||||||
@@ -151,7 +151,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.patient-sex {
|
.patient-sex {
|
||||||
font-size: 22rpx;
|
font-size: 24rpx;
|
||||||
padding: 4rpx 12rpx;
|
padding: 4rpx 12rpx;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@@ -168,12 +168,12 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.patient-age {
|
.patient-age {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
}
|
}
|
||||||
|
|
||||||
.patient-phone {
|
.patient-phone {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -226,7 +226,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.attendant-phone {
|
.attendant-phone {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -250,7 +250,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.note-label {
|
.note-label {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
width: 140rpx;
|
width: 140rpx;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
@@ -258,7 +258,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.note-content {
|
.note-content {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #5C5044;
|
color: #5C5044;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -314,7 +314,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.order-tag {
|
.order-tag {
|
||||||
font-size: 20rpx;
|
font-size: 22rpx;
|
||||||
padding: 4rpx 14rpx;
|
padding: 4rpx 14rpx;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@@ -336,7 +336,7 @@ page {
|
|||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
background: #FBF0DC;
|
background: #FBF0DC;
|
||||||
color: #A97712;
|
color: #A97712;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -377,7 +377,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.share-close {
|
.share-close {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -399,7 +399,7 @@ page {
|
|||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 2rpx solid #D9CFC3;
|
border: 2rpx solid #D9CFC3;
|
||||||
margin-right: 24rpx;
|
margin-right: 24rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@@ -422,7 +422,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.share-stage {
|
.share-stage {
|
||||||
font-size: 22rpx;
|
font-size: 24rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
margin-top: 6rpx;
|
margin-top: 6rpx;
|
||||||
}
|
}
|
||||||
@@ -430,7 +430,7 @@ page {
|
|||||||
.share-empty {
|
.share-empty {
|
||||||
padding: 60rpx 0;
|
padding: 60rpx 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.brief-tag {
|
.brief-tag {
|
||||||
font-size: 22rpx;
|
font-size: 24rpx;
|
||||||
background-color: rgba(194, 106, 46, 0.1);
|
background-color: rgba(194, 106, 46, 0.1);
|
||||||
color: #C26A2E;
|
color: #C26A2E;
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
@@ -44,7 +44,7 @@ page {
|
|||||||
.brief-remark {
|
.brief-remark {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 16rpx;
|
margin-top: 16rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #8A8078;
|
color: #8A8078;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
@@ -69,7 +69,7 @@ page {
|
|||||||
|
|
||||||
.profile-empty-sub {
|
.profile-empty-sub {
|
||||||
margin-top: 6rpx;
|
margin-top: 6rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #8A8078;
|
color: #8A8078;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ page {
|
|||||||
border-radius: 40rpx;
|
border-radius: 40rpx;
|
||||||
background-color: rgba(194, 106, 46, 0.1);
|
background-color: rgba(194, 106, 46, 0.1);
|
||||||
color: #C26A2E;
|
color: #C26A2E;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -188,14 +188,14 @@ page {
|
|||||||
|
|
||||||
.picker-item-sub {
|
.picker-item-sub {
|
||||||
margin-left: 12rpx;
|
margin-left: 12rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #9A9087;
|
color: #9A9087;
|
||||||
}
|
}
|
||||||
|
|
||||||
.picker-item-mobile {
|
.picker-item-mobile {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 4rpx;
|
margin-top: 4rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #9A9087;
|
color: #9A9087;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -207,7 +207,7 @@ page {
|
|||||||
.picker-empty {
|
.picker-empty {
|
||||||
padding: 60rpx 0;
|
padding: 60rpx 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #9A9087;
|
color: #9A9087;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -283,7 +283,7 @@ page {
|
|||||||
|
|
||||||
.switch-label {
|
.switch-label {
|
||||||
margin-right: 16rpx;
|
margin-right: 16rpx;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
|
|
||||||
&.paid {
|
&.paid {
|
||||||
color: #C26A2E;
|
color: #C26A2E;
|
||||||
@@ -326,7 +326,7 @@ page {
|
|||||||
.field-tip {
|
.field-tip {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 8rpx;
|
margin-top: 8rpx;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #D98E04;
|
color: #D98E04;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.level-text {
|
.level-text {
|
||||||
font-size: 20rpx;
|
font-size: 22rpx;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,7 +114,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.login-desc {
|
.login-desc {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: rgba(255, 255, 255, 0.65);
|
color: rgba(255, 255, 255, 0.65);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.login-btn-text {
|
.login-btn-text {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #C26A2E;
|
color: #C26A2E;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
@@ -210,7 +210,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.version-text {
|
.version-text {
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
color: #A3988B;
|
color: #A3988B;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -277,7 +277,7 @@ page {
|
|||||||
|
|
||||||
.form-label {
|
.form-label {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #6F655C;
|
color: #6F655C;
|
||||||
margin-bottom: 12rpx;
|
margin-bottom: 12rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|||||||
Reference in New Issue
Block a user