继续修改样式
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/ai/aichat",
|
||||
"text": "AI客服",
|
||||
"text": "陪诊助手",
|
||||
"iconPath": "images/ai.png",
|
||||
"selectedIconPath": "images/ai-green.png"
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// 自绘 SVG 描边 4/64(与字体图标 1/16 同粗细)、圆头线帽,选中态换橙色版图。
|
||||
// 不引 t-icon 组件是有意为之:它会在冷启动时实例化字体图标组件并注入
|
||||
// icon.wxss(历史体积 485KB、内嵌 278KB 字体),真机实测组件构造 59ms。
|
||||
// 「AI客服」曾用位图(气泡内嵌 AI 字:灰色 ai.png、暖橙 ai-ink.png)当图标,
|
||||
// 「陪诊助手」(原「AI客服」)曾用位图(气泡内嵌 AI 字:灰色 ai.png、暖橙 ai-ink.png)当图标,
|
||||
// 其轮廓笔画比图标字体细一档,与另外两个并排时粗细不搭,故弃用。
|
||||
// 位图文件仍留在 images/ 下未删(app.json 的 tabBar 项也在引用,见 DESIGN.md §5.2)
|
||||
Component({
|
||||
@@ -19,7 +19,7 @@ Component({
|
||||
cls: 'ic-home'
|
||||
}, {
|
||||
pagePath: '/pages/ai/aichat',
|
||||
text: 'AI客服',
|
||||
text: '陪诊助手',
|
||||
// 圆气泡 + 圆滑尾巴 + 三点,见 index.wxss .ic-chat
|
||||
cls: 'ic-chat'
|
||||
}, {
|
||||
|
||||
+1
-1
@@ -205,7 +205,7 @@
|
||||
| 7 | `custom-tab-bar/index.js` | 第 8 行 `activeColor` | `#B8520A` | `#C2410C` |
|
||||
| 8 | `custom-tab-bar/index.wxss` | 第 39 行 `.tab-item.is-active .tab-text` | `#B8520A` | `#C2410C` |
|
||||
| 9 | `app.json` | 第 30 行 `tabBar.selectedColor` | `#B8520A` | `#C2410C` |
|
||||
| 10 | `images/ai-ink.png` | 整图纯色(AI客服选中态位图) | `#9B4508` | `#8A4B08`(位图需重上色,不能按文本替换) |
|
||||
| 10 | `images/ai-ink.png` | 整图纯色(陪诊助手 tab 选中态位图) | `#9B4508` | `#8A4B08`(位图需重上色,不能按文本替换) |
|
||||
| 11 | `images/home-ink.png` | 整图纯色(「我的」默认头像位图,由灰色 `home.png` 重上色) | `#9B4508` | `#8A4B08`(同上) |
|
||||
|
||||
**无需回滚**:其余页面从未迁移。仍定义旧值 `#C2410C` / `#9A3412` 的是 `itemdetail`、`mine/contact` 两页四文件(各含 `.wxss` 令牌与 `.wxml` 里 `t-icon` 硬编码),本就是回滚后的目标态(`guide` 已于 2026-10-06 迁移,`attendant/*` 于同日迁移并新增详情页,见 §5.1);`agreement`、`recordlist`、`recorddetail`、`mine/*` 等页走更早的金色体系(`#D4A853`),见 §5.1。
|
||||
|
||||
@@ -24,7 +24,7 @@ pages/ 页面(清单见下)
|
||||
utils/
|
||||
request.js HTTP 封装(基址、登录 token 头、401 静默重登)
|
||||
api.js 接口定义
|
||||
chatmsg.js AI 客服 WebSocket
|
||||
chatmsg.js 陪诊助手 WebSocket
|
||||
doc/
|
||||
DESIGN.md 配色规范(全站唯一色板来源)
|
||||
PROJECT_GUIDE.md 本文件
|
||||
@@ -35,7 +35,7 @@ doc/
|
||||
| 路径 | 说明 |
|
||||
|---|---|
|
||||
| `pages/home/index` | 首页 |
|
||||
| `pages/ai/aichat` | AI 客服 |
|
||||
| `pages/ai/aichat` | 陪诊助手(AI 对话) |
|
||||
| `pages/escort/itemlist` | 陪诊服务列表 |
|
||||
| `pages/escort/itemdetail` | 服务详情 / 下单 |
|
||||
| `pages/escort/recordlist` | 订单记录 |
|
||||
|
||||
+2
-2
@@ -103,7 +103,7 @@ Page({
|
||||
onShow() {
|
||||
this.getAiQuickQuestions()
|
||||
this.syncLoginState()
|
||||
// 同步自定义 tabBar 选中态(AI客服为第 1 项)
|
||||
// 同步自定义 tabBar 选中态(陪诊助手为第 1 项)
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
selected: 1
|
||||
@@ -1419,7 +1419,7 @@ Page({
|
||||
// (标 failed 会挂上「点击重试」,而这种失败重试必然再失败一次)
|
||||
// markLoggedOut:本地已确认未登录时同步顶部提示条;服务端判定失效时不动本地会话,
|
||||
// 避免把网络抖动导致的「查不到人」误当成退出登录
|
||||
handleLoginRequired(content = '尚未登录,无法与 AI 客服对话', markLoggedOut = true) {
|
||||
handleLoginRequired(content = '尚未登录,无法与陪诊助手对话', markLoggedOut = true) {
|
||||
const messages = this.data.messages.map(item => (
|
||||
item.id === this.activeUserMessageId ? { ...item, status: 'blocked' } : item
|
||||
))
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!-- 未登录提示条:提前说明「能不能聊」,把登录入口放在这里,
|
||||
用户不必等打完字被拦下来才知道要先登录 -->
|
||||
<view class="login-notice" wx:if="{{authChecked && !isLoggedIn}}">
|
||||
<text class="login-notice-text">尚未登录,暂时无法与 AI 客服对话</text>
|
||||
<text class="login-notice-text">尚未登录,暂时无法与陪诊助手对话</text>
|
||||
<text class="login-notice-link" bindtap="goLogin" aria-role="link">去登录</text>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 本页面向就诊人或家属,默认只回答「何时、给谁、去哪、什么服务、多少钱」。
|
||||
<!-- 本页面向就诊人或家属,默认只回答「何时、去哪、给谁、什么服务、多少钱」。
|
||||
档案、支付明细和订单技术信息收进展开区;所有修改仍沿用分区入口 -->
|
||||
|
||||
<!-- 就诊基本信息卡:这页是就诊人自己看「哪天几点去哪、谁陪我」,
|
||||
@@ -73,15 +73,9 @@
|
||||
<t-icon name="edit" size="28rpx" color="#6F655C" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="appt-row">
|
||||
<text class="appt-label">服务</text>
|
||||
<view class="appt-value">
|
||||
<text class="appt-text">{{record.escortServiceName || '陪诊服务'}}</text>
|
||||
<text class="appt-text" wx:if="{{record.sexRequirementText}}"> · 性别要求{{record.sexRequirementText}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 陪诊师不在此行重复,下方独立卡片承载姓名与电话。
|
||||
就诊人降为一行:核对「是不是我」即可,入口跳健康档案页 -->
|
||||
<!-- 就诊人先于服务:家属打开单据第一件事往往是核对「是不是我家老人」,
|
||||
这比看订的是哪项服务更靠前;就诊人降为一行即可,
|
||||
陪诊师不在此行重复,下方独立卡片承载姓名与电话 -->
|
||||
<view class="appt-row">
|
||||
<text class="appt-label">就诊人</text>
|
||||
<view class="appt-value">
|
||||
@@ -99,6 +93,13 @@
|
||||
<t-icon name="chevron-right" size="28rpx" color="#6F655C" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="appt-row">
|
||||
<text class="appt-label">服务</text>
|
||||
<view class="appt-value">
|
||||
<text class="appt-text">{{record.escortServiceName || '陪诊服务'}}</text>
|
||||
<text class="appt-text" wx:if="{{record.sexRequirementText}}"> · 性别要求{{record.sexRequirementText}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 费用:标签与金额同行对齐;支付状态胶囊收在行尾 -->
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<view class="hero-trust-sep"></view>
|
||||
<text class="hero-trust-item">熟悉医院流程</text>
|
||||
<view class="hero-trust-sep"></view>
|
||||
<text class="hero-trust-item">一对一服务</text>
|
||||
<text class="hero-trust-item">全程专属陪诊</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 主行动按钮:通栏胶囊,直达服务列表(下单路径最短化) -->
|
||||
|
||||
Reference in New Issue
Block a user