Compare commits

...
2 Commits
Author SHA1 Message Date
lik b200d0a1ab feat(me): 个人信息支持编辑姓名、性别、生日与地区
保存走 user/update 并回写全局用户(保留 token);取消编辑丢弃修改;修正生日默认值显示为 1970-01-01 的问题。
2026-11-10 21:13:37 +08:00
lik 1d8af0cb26 style: 统一全局字号层级,首页快捷入口改为单行
正文统一 28rpx,小字整体上调一级;快捷入口所有项目单行等分展示。
2026-11-10 21:13:34 +08:00
20 changed files with 431 additions and 148 deletions
+4
View File
@@ -1,6 +1,10 @@
/**app.wxss**/
page {
background-color: #FAF6F1;
/* 统一全局基础字号:正文主字号 28rpx */
font-size: 28rpx;
color: #2A211B;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.page {
+2 -2
View File
@@ -85,13 +85,13 @@
.os-label {
margin-top: 12rpx;
font-size: 24rpx;
font-size: 26rpx;
color: #8A8078;
}
.os-fee {
margin-top: 10rpx;
font-size: 22rpx;
font-size: 24rpx;
font-weight: 600;
color: #2A211B;
padding: 4rpx 16rpx;
+4 -4
View File
@@ -47,7 +47,7 @@
}
.pi-sex {
font-size: 20rpx;
font-size: 22rpx;
padding: 2rpx 12rpx;
border-radius: 8rpx;
font-weight: 500;
@@ -71,19 +71,19 @@
}
.pi-mobile {
font-size: 24rpx;
font-size: 26rpx;
color: #8A8078;
}
.pi-call {
font-size: 24rpx;
font-size: 26rpx;
color: #C26A2E;
font-weight: 500;
margin-left: 8rpx;
}
.pi-extra {
font-size: 24rpx;
font-size: 26rpx;
color: #8A8078;
overflow: hidden;
text-overflow: ellipsis;
+7 -7
View File
@@ -90,7 +90,7 @@ page {
}
.message-time {
font-size: 22rpx;
font-size: 24rpx;
color: #A3988B;
margin-top: 8rpx;
padding: 0 4rpx;
@@ -129,7 +129,7 @@ page {
.avatar-text {
color: #fff;
font-size: 26rpx;
font-size: 28rpx;
font-weight: 500;
}
@@ -204,7 +204,7 @@ page {
.message-markdown .t-chat-markdown-table__th,
.message-markdown .t-chat-markdown-table__td {
padding: 8rpx 12rpx;
font-size: 24rpx;
font-size: 26rpx;
line-height: 1.4;
white-space: normal;
word-break: break-word;
@@ -226,7 +226,7 @@ page {
/* 代码块样式覆盖 */
.message-markdown .t-chat-markdown-codespan,
.message-markdown .t-chat-markdown-code {
font-size: 24rpx;
font-size: 26rpx;
word-break: break-all;
}
@@ -239,12 +239,12 @@ page {
}
.subagent-label {
font-size: 24rpx;
font-size: 26rpx;
color: #6F655C;
}
.subagent-arrow {
font-size: 24rpx;
font-size: 26rpx;
color: #A3988B;
transition: transform 0.2s ease;
}
@@ -349,7 +349,7 @@ page {
}
.chat-toolbar-action text {
font-size: 24rpx;
font-size: 26rpx;
color: #6F655C;
}
+8 -8
View File
@@ -12,7 +12,7 @@
}
.loading-text {
font-size: 26rpx;
font-size: 28rpx;
color: #A3988B;
}
@@ -60,7 +60,7 @@
.hero-desc {
display: block;
margin-top: 12rpx;
font-size: 26rpx;
font-size: 28rpx;
line-height: 1.6;
color: #8A8078;
}
@@ -106,7 +106,7 @@
.card-title {
display: block;
padding: 24rpx 0 8rpx;
font-size: 28rpx;
font-size: 30rpx;
font-weight: 600;
color: #2A211B;
}
@@ -114,7 +114,7 @@
.card-tip {
display: block;
padding-bottom: 8rpx;
font-size: 24rpx;
font-size: 26rpx;
color: #9C9188;
}
@@ -222,7 +222,7 @@
.upload-tip {
margin-top: 8rpx;
font-size: 24rpx;
font-size: 26rpx;
color: #A3988B;
}
@@ -243,7 +243,7 @@
.reject-text {
display: block;
margin-top: 8rpx;
font-size: 26rpx;
font-size: 28rpx;
line-height: 1.6;
color: #9E443A;
}
@@ -251,7 +251,7 @@
.reject-hint {
display: block;
margin-top: 8rpx;
font-size: 24rpx;
font-size: 26rpx;
color: #C0564A;
}
@@ -311,7 +311,7 @@
.foot-note {
padding: 0 16rpx;
text-align: center;
font-size: 24rpx;
font-size: 26rpx;
line-height: 1.6;
color: #A3988B;
}
+8 -8
View File
@@ -71,7 +71,7 @@ page {
padding: 16rpx 28rpx;
background: @accent-primary;
color: #ffffff;
font-size: 26rpx;
font-size: 28rpx;
font-weight: 500;
border-radius: 32rpx;
white-space: nowrap;
@@ -121,7 +121,7 @@ page {
}
.stats-label {
font-size: 24rpx;
font-size: 26rpx;
color: @text-secondary;
}
@@ -152,7 +152,7 @@ page {
.loading-text {
color: @text-secondary !important;
font-size: 26rpx !important;
font-size: 28rpx !important;
}
.empty-text {
@@ -257,7 +257,7 @@ page {
align-items: center;
padding: 4rpx 14rpx;
border-radius: 10rpx;
font-size: 22rpx;
font-size: 24rpx;
font-weight: 500;
&.male {
@@ -272,18 +272,18 @@ page {
}
.customer-date {
font-size: 22rpx;
font-size: 24rpx;
color: @text-muted;
margin-left: auto;
}
.customer-phone {
font-size: 26rpx;
font-size: 28rpx;
color: @text-secondary;
}
.customer-location {
font-size: 24rpx;
font-size: 26rpx;
color: @text-muted;
}
@@ -321,6 +321,6 @@ page {
}
.no-more {
font-size: 24rpx;
font-size: 26rpx;
color: @text-muted;
}
+4 -4
View File
@@ -44,7 +44,7 @@ page {
}
.stat-label {
font-size: 24rpx;
font-size: 26rpx;
opacity: 0.9;
}
@@ -62,7 +62,7 @@ page {
}
.stat-unit {
font-size: 26rpx;
font-size: 28rpx;
margin-left: 8rpx;
}
@@ -73,7 +73,7 @@ page {
.section-title {
display: block;
font-size: 32rpx;
font-size: 30rpx;
font-weight: 700;
color: #2A211B;
margin-left: 8rpx;
@@ -110,7 +110,7 @@ page {
}
.quick-label {
font-size: 24rpx;
font-size: 26rpx;
color: #3A322B;
}
+5 -5
View File
@@ -114,7 +114,7 @@ page {
}
.order-service {
font-size: 26rpx;
font-size: 28rpx;
font-weight: 500;
color: #C26A2E;
flex: 1;
@@ -124,7 +124,7 @@ page {
}
.status-tag {
font-size: 22rpx;
font-size: 24rpx;
padding: 6rpx 20rpx;
border-radius: 30rpx;
font-weight: 500;
@@ -169,7 +169,7 @@ page {
}
.order-hospital {
font-size: 26rpx;
font-size: 28rpx;
color: #8A8078;
flex: 1;
overflow: hidden;
@@ -179,7 +179,7 @@ page {
}
.order-time {
font-size: 26rpx;
font-size: 28rpx;
color: #A3988B;
flex-shrink: 0;
}
@@ -192,7 +192,7 @@ page {
text-align: center;
text {
font-size: 26rpx;
font-size: 28rpx;
color: #C0B7AC;
}
}
+11 -11
View File
@@ -10,22 +10,22 @@ function resolveDisplayStatus(order) {
return order?.status || 'pending'
}
// 快捷入口:type=quick 为快捷操作(琥珀浅色系),type=function 为功能入口(暖铜主色系),分行显示。
// 快捷入口:琥珀浅色系为快捷操作,暖铜主色系为功能入口,统一在一行内展示。
// 管理员与陪诊员共用同一套入口配置,但陪诊员不展示档案/客户等管理员能力
const ADMIN_ENTRIES = [
{ type: 'quick', icon: 'add-circle', name: '增加预约', url: '/pages/order/orderEdit', color: '#E8A96B' },
{ type: 'quick', 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' },
{ type: 'function', icon: 'bill', name: '预约订单', url: '/pages/order/index', isTab: true, color: '#C26A2E' },
{ type: 'function', icon: 'heart', name: '健康档案', url: '/pages/healthprofile/index', color: '#C26A2E' },
{ type: 'function', icon: 'user', name: '注册用户', url: '/pages/customer/index', color: '#C26A2E' },
{ type: 'function', icon: 'user-circle', name: '个人信息', url: '/pages/me/index', color: '#C26A2E' }
{ icon: 'add-circle', name: '增加预约', url: '/pages/order/orderEdit', color: '#E8A96B' },
{ icon: 'file-add', name: '增加档案', url: '/pages/healthprofile/profileInfo', color: '#E8A96B' },
{ icon: 'lightbulb-circle-filled', name: 'AI办公', url: '/pages/ai/index', isTab: true, color: '#E8A96B' },
{ icon: 'bill', name: '预约订单', url: '/pages/order/index', isTab: true, color: '#C26A2E' },
{ icon: 'heart', name: '健康档案', url: '/pages/healthprofile/index', color: '#C26A2E' },
{ icon: 'user', name: '注册用户', url: '/pages/customer/index', color: '#C26A2E' },
{ icon: 'user-circle', name: '个人信息', url: '/pages/me/index', color: '#C26A2E' }
]
const ATTENDANT_ENTRIES = [
{ type: 'quick', 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' },
{ type: 'function', icon: 'user-circle', name: '个人信息', url: '/pages/me/index', color: '#C26A2E' }
{ icon: 'lightbulb-circle-filled', name: 'AI办公', url: '/pages/ai/index', isTab: true, color: '#E8A96B' },
{ icon: 'bill', name: '预约订单', url: '/pages/order/index', isTab: true, color: '#C26A2E' },
{ icon: 'user-circle', name: '个人信息', url: '/pages/me/index', color: '#C26A2E' }
]
Page({
+4 -14
View File
@@ -55,21 +55,11 @@
<view class="section">
<text class="section-title">快捷入口</text>
<view class="quick-grid card">
<view class="quick-row">
<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;">
<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 class="quick-item" wx:for="{{quickEntries}}" wx:key="name" bindtap="onEntryTap" data-index="{{index}}">
<view class="quick-icon" style="background-color: {{item.color}}1a;">
<t-icon name="{{item.icon}}" size="36rpx" color="{{item.color}}" />
</view>
<text class="quick-label">{{item.name}}</text>
</view>
</view>
</view>
+22 -26
View File
@@ -107,14 +107,14 @@ page {
}
.level-text {
font-size: 20rpx;
font-size: 22rpx;
color: #ffffff;
}
.greeting {
display: block;
margin-top: 8rpx;
font-size: 22rpx;
font-size: 24rpx;
color: rgba(255, 255, 255, 0.65);
}
@@ -131,7 +131,7 @@ page {
.intern-tip-text {
margin-left: 12rpx;
font-size: 24rpx;
font-size: 26rpx;
line-height: 1.5;
color: #8A5A32;
}
@@ -146,7 +146,7 @@ page {
}
.switch-text {
font-size: 24rpx;
font-size: 26rpx;
margin-right: 10rpx;
color: #ffffff;
}
@@ -201,7 +201,7 @@ page {
}
.stat-label {
font-size: 24rpx;
font-size: 26rpx;
color: rgba(255, 255, 255, 0.75);
}
@@ -213,7 +213,7 @@ page {
}
.stat-unit {
font-size: 26rpx;
font-size: 28rpx;
margin-right: 4rpx;
}
@@ -260,7 +260,7 @@ page {
.view-all {
display: flex;
align-items: center;
font-size: 24rpx;
font-size: 26rpx;
color: #A3988B;
}
@@ -274,22 +274,17 @@ page {
.quick-grid {
margin-top: 16rpx;
padding: 32rpx 8rpx 8rpx;
padding: 32rpx 0;
display: flex;
flex-wrap: wrap;
}
.quick-row {
display: flex;
width: 100%;
flex-wrap: nowrap;
}
.quick-item {
width: 25%;
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
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);
}
@@ -299,19 +294,20 @@ page {
}
.quick-icon {
width: 88rpx;
height: 88rpx;
border-radius: 26rpx;
width: 72rpx;
height: 72rpx;
border-radius: 22rpx;
display: flex;
align-items: 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);
}
.quick-label {
font-size: 26rpx;
font-size: 24rpx;
color: #5C5044;
white-space: nowrap;
}
/* === 订单列表 === */
@@ -348,7 +344,7 @@ page {
}
.order-service {
font-size: 26rpx;
font-size: 28rpx;
font-weight: 500;
color: #C26A2E;
flex: 1;
@@ -358,7 +354,7 @@ page {
}
.status-tag {
font-size: 22rpx;
font-size: 24rpx;
padding: 6rpx 20rpx;
border-radius: 30rpx;
font-weight: 500;
@@ -403,7 +399,7 @@ page {
}
.order-hospital {
font-size: 26rpx;
font-size: 28rpx;
color: #8A8078;
flex: 1;
overflow: hidden;
@@ -413,7 +409,7 @@ page {
}
.order-time {
font-size: 26rpx;
font-size: 28rpx;
color: #A3988B;
flex-shrink: 0;
}
@@ -432,6 +428,6 @@ page {
.empty-text {
margin-top: 16rpx;
font-size: 26rpx;
font-size: 28rpx;
color: #C7BDB2;
}
+3 -3
View File
@@ -26,19 +26,19 @@ page {
.launch-sub {
margin-top: 12rpx;
font-size: 26rpx;
font-size: 28rpx;
color: #9C9188;
}
.launch-tip {
margin-top: 48rpx;
font-size: 24rpx;
font-size: 26rpx;
color: #B5AAA0;
}
.launch-error {
margin-top: 48rpx;
font-size: 26rpx;
font-size: 28rpx;
color: #C26A2E;
}
+5 -5
View File
@@ -18,7 +18,7 @@ page {
}
.loading-text {
font-size: 26rpx;
font-size: 28rpx;
color: #9C9188;
}
@@ -36,7 +36,7 @@ page {
.hero-desc {
display: block;
margin-top: 12rpx;
font-size: 26rpx;
font-size: 28rpx;
line-height: 1.6;
color: #8A8078;
}
@@ -65,7 +65,7 @@ page {
.empty-desc {
display: block;
margin-top: 16rpx;
font-size: 26rpx;
font-size: 28rpx;
color: #8A8078;
}
@@ -84,7 +84,7 @@ page {
.status-desc {
display: block;
margin-top: 8rpx;
font-size: 24rpx;
font-size: 26rpx;
color: #8A8078;
}
@@ -142,7 +142,7 @@ page {
.upload-tip {
margin-top: 8rpx;
font-size: 24rpx;
font-size: 26rpx;
color: #9C9188;
}
+150 -2
View File
@@ -16,7 +16,25 @@ Page({
isAttendant: false,
serviceAreaLabels: CITY_LABELS,
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() {
@@ -98,6 +116,129 @@ Page({
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) {
if (!user) return
this.rawUser = user
const profile = user.profile || {}
const location = user.location || {}
const meta = user.meta || {}
@@ -139,6 +281,11 @@ Page({
createText: this.formatDate(meta.createtime)
}
})
// 编辑中不覆盖用户正在填写的表单
if (!this.data.editing) {
this.setData({ form: this.buildForm(user) })
}
},
/**
@@ -147,7 +294,8 @@ Page({
formatDate(dateStr) {
if (!dateStr) return ''
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')
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`
},
+79 -1
View File
@@ -51,6 +51,8 @@ page {
margin-left: 28rpx;
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
}
.user-name {
@@ -60,10 +62,26 @@ page {
.user-mobile {
margin-top: 10rpx;
font-size: 26rpx;
font-size: 28rpx;
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 {
margin-top: 24rpx;
@@ -117,3 +135,63 @@ page {
font-size: 32rpx;
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
View File
@@ -10,10 +10,32 @@
<text class="user-name">{{user.name}}</text>
<text class="user-mobile">{{user.mobile || '暂未绑定手机号'}}</text>
</view>
<view class="edit-entry {{editing ? 'active' : ''}}" bindtap="onToggleEdit">
<text>{{editing ? '取消' : '编辑'}}</text>
</view>
</view>
<!-- 详细信息 -->
<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-left">
<t-icon name="award" size="36rpx" color="#C26A2E" />
@@ -21,20 +43,46 @@
</view>
<text class="info-value">{{identityText}}</text>
</view>
<!-- 性别 -->
<view class="info-item">
<view class="info-left">
<t-icon name="user" size="36rpx" color="#C26A2E" />
<text class="info-label">性别</text>
</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 class="info-item">
<view class="info-left">
<t-icon name="calendar" size="36rpx" color="#C26A2E" />
<text class="info-label">出生日期</text>
</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 class="info-item">
<view class="info-left">
<t-icon name="mail" size="36rpx" color="#C26A2E" />
@@ -49,13 +97,27 @@
</view>
<text class="info-value">{{user.idnumber || '未填写'}}</text>
</view>
<!-- 所在地区 -->
<view class="info-item">
<view class="info-left">
<t-icon name="location" size="36rpx" color="#C26A2E" />
<text class="info-label">所在地区</text>
</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 class="info-item" wx:if="{{isAttendant}}">
<view class="info-left">
<t-icon name="location" size="36rpx" color="#C26A2E" />
@@ -91,4 +153,9 @@
<text class="info-value">{{user.createText || '未知'}}</text>
</view>
</view>
<!-- 编辑态保存 -->
<view class="save-bar" wx:if="{{editing}}">
<button class="save-btn" loading="{{saving}}" bindtap="onSaveProfile">保存</button>
</view>
</view>
+18 -18
View File
@@ -74,7 +74,7 @@ page {
.header-sub {
display: block;
font-size: 22rpx;
font-size: 24rpx;
color: rgba(255, 255, 255, 0.65);
font-weight: 300;
letter-spacing: 1rpx;
@@ -85,7 +85,7 @@ page {
z-index: 1;
flex-shrink: 0;
padding: 16rpx 28rpx;
font-size: 26rpx;
font-size: 28rpx;
color: #fff;
background: rgba(255, 255, 255, 0.18);
border: 1rpx solid rgba(255, 255, 255, 0.4);
@@ -109,7 +109,7 @@ page {
padding: 16rpx 0;
text-align: center;
border-radius: 26rpx;
font-size: 26rpx;
font-size: 28rpx;
color: @muted;
transition: all 0.25s;
@@ -130,7 +130,7 @@ page {
}
.filter-label {
font-size: 24rpx;
font-size: 26rpx;
color: @muted;
}
@@ -141,7 +141,7 @@ page {
padding: 12rpx 24rpx;
background: @card;
border-radius: 28rpx;
font-size: 24rpx;
font-size: 26rpx;
color: @text;
border: 1rpx solid rgba(90, 62, 42, 0.06);
box-shadow: 0 4rpx 12rpx rgba(90, 62, 42, 0.05);
@@ -178,7 +178,7 @@ page {
.loading-text {
color: @muted !important;
font-size: 26rpx !important;
font-size: 28rpx !important;
}
.empty-text {
@@ -191,7 +191,7 @@ page {
padding: 14rpx 48rpx;
background: @accent;
color: #fff;
font-size: 26rpx;
font-size: 28rpx;
border-radius: 28rpx;
display: inline-block;
}
@@ -231,7 +231,7 @@ page {
}
.order-tag {
font-size: 20rpx;
font-size: 22rpx;
padding: 4rpx 14rpx;
border-radius: 20rpx;
font-weight: 500;
@@ -248,14 +248,14 @@ page {
}
.order-no {
font-size: 24rpx;
font-size: 26rpx;
color: @muted;
font-weight: 500;
font-family: 'DIN Alternate', 'Helvetica Neue', monospace;
}
.status-badge {
font-size: 22rpx;
font-size: 24rpx;
padding: 6rpx 20rpx;
border-radius: 30rpx;
font-weight: 500;
@@ -338,7 +338,7 @@ page {
}
.patient-sex {
font-size: 20rpx;
font-size: 22rpx;
padding: 2rpx 10rpx;
border-radius: 8rpx;
font-weight: 500;
@@ -355,12 +355,12 @@ page {
}
.patient-age {
font-size: 22rpx;
font-size: 24rpx;
color: @muted;
}
.patient-phone {
font-size: 24rpx;
font-size: 26rpx;
color: @muted;
}
@@ -377,14 +377,14 @@ page {
}
.line-label {
font-size: 24rpx;
font-size: 26rpx;
color: @muted;
width: 64rpx;
flex-shrink: 0;
}
.line-value {
font-size: 26rpx;
font-size: 28rpx;
color: @text;
flex: 1;
}
@@ -406,7 +406,7 @@ page {
}
.fee-label {
font-size: 24rpx;
font-size: 26rpx;
color: @muted;
}
@@ -425,7 +425,7 @@ page {
.action-btn {
padding: 14rpx 32rpx;
border-radius: 24rpx;
font-size: 24rpx;
font-size: 26rpx;
font-weight: 500;
transition: all 0.2s;
@@ -455,6 +455,6 @@ page {
}
.no-more {
font-size: 24rpx;
font-size: 26rpx;
color: @muted;
}
+13 -13
View File
@@ -82,7 +82,7 @@ page {
.status-desc {
display: block;
font-size: 26rpx;
font-size: 28rpx;
color: rgba(255, 255, 255, 0.7);
font-weight: 300;
}
@@ -151,7 +151,7 @@ page {
}
.patient-sex {
font-size: 22rpx;
font-size: 24rpx;
padding: 4rpx 12rpx;
border-radius: 10rpx;
font-weight: 500;
@@ -168,12 +168,12 @@ page {
}
.patient-age {
font-size: 26rpx;
font-size: 28rpx;
color: #A3988B;
}
.patient-phone {
font-size: 26rpx;
font-size: 28rpx;
color: #A3988B;
}
@@ -226,7 +226,7 @@ page {
}
.attendant-phone {
font-size: 26rpx;
font-size: 28rpx;
color: #A3988B;
}
@@ -250,7 +250,7 @@ page {
}
.note-label {
font-size: 26rpx;
font-size: 28rpx;
color: #A3988B;
width: 140rpx;
flex-shrink: 0;
@@ -258,7 +258,7 @@ page {
}
.note-content {
font-size: 26rpx;
font-size: 28rpx;
color: #5C5044;
line-height: 1.6;
flex: 1;
@@ -314,7 +314,7 @@ page {
}
.order-tag {
font-size: 20rpx;
font-size: 22rpx;
padding: 4rpx 14rpx;
border-radius: 20rpx;
font-weight: 500;
@@ -336,7 +336,7 @@ page {
border-radius: 20rpx;
background: #FBF0DC;
color: #A97712;
font-size: 24rpx;
font-size: 26rpx;
line-height: 1.5;
}
@@ -377,7 +377,7 @@ page {
}
.share-close {
font-size: 26rpx;
font-size: 28rpx;
color: #A3988B;
}
@@ -399,7 +399,7 @@ page {
border-radius: 50%;
border: 2rpx solid #D9CFC3;
margin-right: 24rpx;
font-size: 24rpx;
font-size: 26rpx;
line-height: 40rpx;
text-align: center;
color: #fff;
@@ -422,7 +422,7 @@ page {
}
.share-stage {
font-size: 22rpx;
font-size: 24rpx;
color: #A3988B;
margin-top: 6rpx;
}
@@ -430,7 +430,7 @@ page {
.share-empty {
padding: 60rpx 0;
text-align: center;
font-size: 26rpx;
font-size: 28rpx;
color: #A3988B;
}
+9 -9
View File
@@ -34,7 +34,7 @@ page {
}
.brief-tag {
font-size: 22rpx;
font-size: 24rpx;
background-color: rgba(194, 106, 46, 0.1);
color: #C26A2E;
border-radius: 16rpx;
@@ -44,7 +44,7 @@ page {
.brief-remark {
display: block;
margin-top: 16rpx;
font-size: 24rpx;
font-size: 26rpx;
color: #8A8078;
line-height: 1.5;
}
@@ -69,7 +69,7 @@ page {
.profile-empty-sub {
margin-top: 6rpx;
font-size: 24rpx;
font-size: 26rpx;
color: #8A8078;
}
@@ -78,7 +78,7 @@ page {
border-radius: 40rpx;
background-color: rgba(194, 106, 46, 0.1);
color: #C26A2E;
font-size: 26rpx;
font-size: 28rpx;
font-weight: 600;
}
@@ -188,14 +188,14 @@ page {
.picker-item-sub {
margin-left: 12rpx;
font-size: 24rpx;
font-size: 26rpx;
color: #9A9087;
}
.picker-item-mobile {
display: block;
margin-top: 4rpx;
font-size: 24rpx;
font-size: 26rpx;
color: #9A9087;
}
@@ -207,7 +207,7 @@ page {
.picker-empty {
padding: 60rpx 0;
text-align: center;
font-size: 26rpx;
font-size: 28rpx;
color: #9A9087;
}
@@ -283,7 +283,7 @@ page {
.switch-label {
margin-right: 16rpx;
font-size: 26rpx;
font-size: 28rpx;
&.paid {
color: #C26A2E;
@@ -326,7 +326,7 @@ page {
.field-tip {
display: block;
margin-top: 8rpx;
font-size: 24rpx;
font-size: 26rpx;
color: #D98E04;
}
+5 -5
View File
@@ -95,7 +95,7 @@ page {
}
.level-text {
font-size: 20rpx;
font-size: 22rpx;
color: #ffffff;
}
@@ -114,7 +114,7 @@ page {
}
.login-desc {
font-size: 24rpx;
font-size: 26rpx;
color: rgba(255, 255, 255, 0.65);
}
@@ -133,7 +133,7 @@ page {
}
.login-btn-text {
font-size: 26rpx;
font-size: 28rpx;
color: #C26A2E;
font-weight: 600;
}
@@ -210,7 +210,7 @@ page {
}
.version-text {
font-size: 24rpx;
font-size: 26rpx;
color: #A3988B;
}
@@ -277,7 +277,7 @@ page {
.form-label {
display: block;
font-size: 26rpx;
font-size: 28rpx;
color: #6F655C;
margin-bottom: 12rpx;
font-weight: 500;