Compare commits

4 Commits
Author SHA1 Message Date
lik 811ec321f1 feat(escort): 预约页取消指定陪诊师并默认线下支付
下单不再提供陪诊师选择,统一由平台安排;itemorder 移除选择入口、选择状态与 attendant 载荷。两个预约页的支付方式弹窗默认改为线下支付,仍可手动切换微信支付。
2026-11-13 16:01:37 +08:00
lik e6517e3cae feat(escort): 下单页增加免责协议勾选与协议弹层
提交预约前须勾选《全程陪诊服务免责协议》,点击协议名弹层查看全文;提交时回传所读版本,服务端判定过期则作废缓存并重新弹层要求重新确认。
2026-11-13 15:48:19 +08:00
lik e4ca0ec2b9 fix(home): 移除常用功能找陪诊师入口
该入口使三张半宽卡挤在同一行,标题与描述逐字换行;移除后恢复两张半宽卡加通栏联系我们的布局。
2026-11-11 21:03:53 +08:00
lik 6a2a5e7775 feat(attendant): 陪诊师列表展示性别
公示接口改为返回实名后,列表在从业年限前补充性别,便于用户下单前快速筛选。
2026-11-11 21:03:49 +08:00
10 changed files with 324 additions and 87 deletions
+25
View File
@@ -222,6 +222,29 @@ App({
return this.globalData.agreementReady return this.globalData.agreementReady
}, },
// 下单页的免责协议:与「用户协议」分开缓存,正文修订后随接口即时生效
loadDisclaimer() {
if (this.globalData.disclaimerReady) return this.globalData.disclaimerReady
this.globalData.disclaimerReady = API.resource.getDisclaimer()
.then((res) => {
if (res.code !== 0 || !res.data?.disclaimer) throw new Error(res.msg || '免责协议加载失败')
this.globalData.disclaimer = res.data.disclaimer
return this.globalData.disclaimer
})
.catch((err) => {
console.error('获取免责协议失败', err)
this.globalData.disclaimerReady = null
return null
})
return this.globalData.disclaimerReady
},
// 服务端判定协议版本不一致后调用:作废缓存,下次 loadDisclaimer 重新拉取最新版
invalidateDisclaimer() {
this.globalData.disclaimer = null
this.globalData.disclaimerReady = null
},
// 已经拿到用户(如「我的」页手机号授权登录成功)就直接返回成功。 // 已经拿到用户(如「我的」页手机号授权登录成功)就直接返回成功。
// 但若此刻有静默登录在飞(token 可能正在轮换),要先等它落定: // 但若此刻有静默登录在飞(token 可能正在轮换),要先等它落定:
// 抢跑会让页面拿旧 token 发请求、收到 401 再触发一次重登 + 重试。 // 抢跑会让页面拿旧 token 发请求、收到 401 再触发一次重登 + 重试。
@@ -353,6 +376,8 @@ App({
hospitalsReady: null, hospitalsReady: null,
agreement: null, agreement: null,
agreementReady: null, agreementReady: null,
disclaimer: null,
disclaimerReady: null,
authReady: null, authReady: null,
} }
}) })
+2 -1
View File
@@ -58,7 +58,7 @@ Page({
} }
}, },
// 公示接口已脱敏,这里只补展示用字段,不再加工姓名 // 公示接口返回姓名,这里只补展示用字段
decorate(item) { decorate(item) {
const name = item.name || '' const name = item.name || ''
const specialties = item.specialties || [] const specialties = item.specialties || []
@@ -66,6 +66,7 @@ Page({
return { return {
...item, ...item,
initial: name.replace(/[**]/g, '').slice(0, 1) || '陪', initial: name.replace(/[**]/g, '').slice(0, 1) || '陪',
sexText: { male: '男', female: '女' }[item.sex] || '',
specialties: specialties.slice(0, 3), specialties: specialties.slice(0, 3),
areaText: serviceAreas.join('、') areaText: serviceAreas.join('、')
} }
+1 -1
View File
@@ -29,7 +29,7 @@
<text class="attendant-name">{{ item.name }}</text> <text class="attendant-name">{{ item.name }}</text>
<text class="order-count">已接 {{ item.orderCount }} 单</text> <text class="order-count">已接 {{ item.orderCount }} 单</text>
</view> </view>
<text class="attendant-meta">从业 {{ item.workYears }} 年{{ item.areaText ? ' · ' + item.areaText : '' }}</text> <text class="attendant-meta">{{ item.sexText ? item.sexText + ' · ' : '' }}从业 {{ item.workYears }} 年{{ item.areaText ? ' · ' + item.areaText : '' }}</text>
<view class="tag-row" wx:if="{{item.specialties.length}}"> <view class="tag-row" wx:if="{{item.specialties.length}}">
<text class="tag" wx:for="{{item.specialties}}" wx:for-item="tag" wx:key="*this">{{ tag }}</text> <text class="tag" wx:for="{{item.specialties}}" wx:for-item="tag" wx:key="*this">{{ tag }}</text>
</view> </view>
+3 -3
View File
@@ -35,10 +35,10 @@ Page({
gender: '不限', gender: '不限',
genderIndex: 0, genderIndex: 0,
genderOptions: ['不限', '男', '女'], genderOptions: ['不限', '男', '女'],
payChannel: 'online_wechat', payChannel: 'offline',
// 医院下拉展开时,把医院行滚到弹窗滚动容器顶部,避免列表被裁掉 // 医院下拉展开时,把医院行滚到弹窗滚动容器顶部,避免列表被裁掉
popupScrollIntoView: '', popupScrollIntoView: '',
// 点击「提交预约」后弹出支付方式选择,默认微信支付 // 点击「提交预约」后弹出支付方式选择,默认线下支付
showPayPopup: false showPayPopup: false
}, },
@@ -308,7 +308,7 @@ Page({
return return
} }
// 保留下单弹窗在下层,取消支付时可直接返回表单,已填信息不丢失 // 保留下单弹窗在下层,取消支付时可直接返回表单,已填信息不丢失
this.setData({ showPayPopup: true, payChannel: 'online_wechat' }) this.setData({ showPayPopup: true, payChannel: 'offline' })
}, },
onClosePayPopup() { onClosePayPopup() {
+1 -1
View File
@@ -220,7 +220,7 @@
</view> </view>
</view> </view>
<!-- 支付方式选择弹窗:点击「提交预约」后出现,默认微信支付 --> <!-- 支付方式选择弹窗:点击「提交预约」后出现,默认线下支付 -->
<view class="popup-mask {{showPayPopup ? 'show' : ''}}" bindtap="onClosePayPopup"></view> <view class="popup-mask {{showPayPopup ? 'show' : ''}}" bindtap="onClosePayPopup"></view>
<view class="popup-content {{showPayPopup ? 'show' : ''}}"> <view class="popup-content {{showPayPopup ? 'show' : ''}}">
<view class="popup-header"> <view class="popup-header">
+71 -35
View File
@@ -6,8 +6,8 @@ const { ensureLogin } = require('../../utils/auth.js')
const SERVICE_OPTION_HEIGHT = 108 const SERVICE_OPTION_HEIGHT = 108
// 下拉面板最多占用的屏高:扣掉底部固定操作栏与页面留白,项目再多也能整屏看到 // 下拉面板最多占用的屏高:扣掉底部固定操作栏与页面留白,项目再多也能整屏看到
const SERVICE_PANEL_RESERVED = 200 const SERVICE_PANEL_RESERVED = 200
// 与陪诊师列表 / 详情页共用的选择结果 key // 免责协议标题兜底:接口未返回时也能在勾选行展示协议名称
const SELECTED_ATTENDANT_KEY = 'escort_selected_attendant' const DEFAULT_DISCLAIMER_TITLE = '全程陪诊服务免责协议'
Page({ Page({
data: { data: {
@@ -41,14 +41,20 @@ Page({
remark: '', remark: '',
shippingAddress: '', shippingAddress: '',
requiresAddress: false, requiresAddress: false,
payChannel: 'online_wechat', payChannel: 'offline',
// 点击「提交预约」后弹出支付方式选择,默认微信支付 // 点击「提交预约」后弹出支付方式选择,默认线下支付
showPayPopup: false, showPayPopup: false,
gender: '不限', gender: '不限',
genderIndex: 0, genderIndex: 0,
genderOptions: ['不限', '男', '女'], genderOptions: ['不限', '男', '女'],
// 用户指定陪诊师(选填);为空则由平台抢单或管理端指派 // 下单前必须勾选确认《全程陪诊服务免责协议》
selectedAttendant: null agreementAgreed: false,
agreementHint: false,
agreementTitle: DEFAULT_DISCLAIMER_TITLE,
showAgreementPopup: false,
disclaimer: null,
disclaimerLoading: false,
disclaimerError: false
}, },
onLoad(options) { onLoad(options) {
@@ -58,43 +64,60 @@ Page({
}, },
onShow() { onShow() {
// 从陪诊师列表返回时取回用户选择
this.consumeSelectedAttendant()
// 从新增/编辑就诊人页返回时刷新档案,首次进入由 initializePage 加载。 // 从新增/编辑就诊人页返回时刷新档案,首次进入由 initializePage 加载。
if (this.pageReady && getApp().globalData.user?._id) this.loadProfiles() if (this.pageReady && getApp().globalData.user?._id) this.loadProfiles()
}, },
consumeSelectedAttendant() { /**
const selected = wx.getStorageSync(SELECTED_ATTENDANT_KEY) * 免责协议:与表单并行预加载,用户点开弹层或直接提交时都能立即展示
if (!selected) return */
wx.removeStorageSync(SELECTED_ATTENDANT_KEY) loadDisclaimer() {
if (selected.cleared) { if (this.data.disclaimer || this.data.disclaimerLoading) return
this.setData({ selectedAttendant: null }) this.setData({ disclaimerLoading: true, disclaimerError: false })
return getApp().loadDisclaimer().then((disclaimer) => {
} this.setData({
if (!selected.id) return disclaimer,
this.setData({ agreementTitle: disclaimer?.title || DEFAULT_DISCLAIMER_TITLE,
selectedAttendant: { disclaimerLoading: false,
id: selected.id, disclaimerError: !disclaimer
name: selected.name || '', })
workYears: selected.workYears || 0,
orderCount: selected.orderCount || 0
}
}) })
wx.showToast({ title: `已选择 ${selected.name || '陪诊师'}`, icon: 'none' })
}, },
goToAttendants() { onToggleAgreement() {
wx.navigateTo({ url: '/pages/escort/attendants?select=1' }) if (this.data.submitting) return
this.setData({
agreementAgreed: !this.data.agreementAgreed,
agreementHint: false
})
}, },
onClearAttendant() { onOpenAgreement() {
this.setData({ selectedAttendant: null }) this.setData({ showAgreementPopup: true })
this.loadDisclaimer()
},
onCloseAgreementPopup() {
this.setData({ showAgreementPopup: false })
},
onAgreeFromPopup() {
this.setData({
agreementAgreed: true,
agreementHint: false,
showAgreementPopup: false
})
},
retryLoadDisclaimer() {
this.loadDisclaimer()
}, },
async initializePage() { async initializePage() {
this.pageReady = false this.pageReady = false
this.setData({ pageLoading: true, pageError: '' }) this.setData({ pageLoading: true, pageError: '' })
// 免责协议与表单并行加载,避免用户点开协议时再空等
this.loadDisclaimer()
const services = await getApp().loadServices() const services = await getApp().loadServices()
if (!services || services.length === 0) { if (!services || services.length === 0) {
this.setData({ pageLoading: false, pageError: '服务加载失败,请重试' }) this.setData({ pageLoading: false, pageError: '服务加载失败,请重试' })
@@ -360,7 +383,13 @@ Page({
wx.showToast({ title: error, icon: 'none' }) wx.showToast({ title: error, icon: 'none' })
return return
} }
this.setData({ showPayPopup: true, payChannel: 'online_wechat' }) // 免责协议是下单前置条件:未勾选时直接拉起协议弹层,读完即可勾选
if (!this.data.agreementAgreed) {
this.setData({ agreementHint: true, showAgreementPopup: true })
this.loadDisclaimer()
return
}
this.setData({ showPayPopup: true, payChannel: 'offline' })
}, },
onClosePayPopup() { onClosePayPopup() {
@@ -409,6 +438,12 @@ Page({
else wx.navigateTo({ url: '/pages/escort/recordlist?tab=ongoing' }) else wx.navigateTo({ url: '/pages/escort/recordlist?tab=ongoing' })
} catch (err) { } catch (err) {
console.log('下单失败', err) console.log('下单失败', err)
// 服务端判定协议版本不一致:作废本地缓存、重新拉取并弹出协议要求重新确认
if ((err.message || '').includes('协议已更新')) {
getApp().invalidateDisclaimer()
this.setData({ disclaimer: null, agreementAgreed: false, showAgreementPopup: true })
this.loadDisclaimer()
}
wx.showToast({ title: err.message || '网络请求失败,请重试', icon: 'none' }) wx.showToast({ title: err.message || '网络请求失败,请重试', icon: 'none' })
} finally { } finally {
this.setData({ submitting: false }) this.setData({ submitting: false })
@@ -436,10 +471,8 @@ Page({
shippingAddress: { address: data.shippingAddress.trim() }, shippingAddress: { address: data.shippingAddress.trim() },
notes: { patientNote: data.remark.trim() }, notes: { patientNote: data.remark.trim() },
payment: { payChannel: data.payChannel }, payment: { payChannel: data.payChannel },
// 只传 employeeId,姓名 / 电话由服务端按员工档案回填 // 协议确认快照:回传用户实际阅读的协议版本,服务端与当前版本比对,不一致则拒绝
...(data.selectedAttendant agreement: { accepted: true, version: data.disclaimer?.version || '' }
? { attendant: { employeeId: data.selectedAttendant.id } }
: {})
} }
}, },
@@ -512,7 +545,10 @@ Page({
genderIndex: 0, genderIndex: 0,
remark: '', remark: '',
shippingAddress: '', shippingAddress: '',
selectedAttendant: null // 协议按单次服务确认,重置表单后需重新勾选
agreementAgreed: false,
agreementHint: false,
showAgreementPopup: false
}, () => this.refreshHospitalOptions(provinces[0] || '')) }, () => this.refreshHospitalOptions(provinces[0] || ''))
// 重置后仍默认选中第一个就诊人,方便连续预约 // 重置后仍默认选中第一个就诊人,方便连续预约
const first = this.data.profiles[0] const first = this.data.profiles[0]
+58 -16
View File
@@ -107,21 +107,6 @@
</picker> </picker>
</view> </view>
<!-- 指定陪诊师:不选则进入订单池,由平台抢单或管理端指派 -->
<view class="order-row" bindtap="goToAttendants">
<text class="order-label">指定陪诊师</text>
<view class="order-picker">
<view class="picker-value-wrap">
<text class="picker-value {{selectedAttendant ? '' : 'placeholder'}}">{{selectedAttendant ? selectedAttendant.name : '平台安排(可选)'}}</text>
<view class="picker-chevron"></view>
</view>
</view>
</view>
<view class="attendant-choice" wx:if="{{selectedAttendant}}">
<text class="attendant-choice-text">从业 {{selectedAttendant.workYears}} 年 · 已接 {{selectedAttendant.orderCount}} 单</text>
<text class="attendant-choice-clear" catchtap="onClearAttendant">清除</text>
</view>
<view class="order-row"> <view class="order-row">
<text class="order-label">预约日期</text> <text class="order-label">预约日期</text>
<picker class="order-picker" mode="date" value="{{appointmentDate}}" start="{{minAppointmentDate}}" bindchange="onDateChange"> <picker class="order-picker" mode="date" value="{{appointmentDate}}" start="{{minAppointmentDate}}" bindchange="onDateChange">
@@ -155,6 +140,20 @@
<textarea class="order-textarea" value="{{remark}}" placeholder="请输入其他需求或备注信息" maxlength="200" placeholder-class="input-placeholder" bindinput="onRemarkChange" /> <textarea class="order-textarea" value="{{remark}}" placeholder="请输入其他需求或备注信息" maxlength="200" placeholder-class="input-placeholder" bindinput="onRemarkChange" />
<text class="textarea-count">{{remark.length}}/200</text> <text class="textarea-count">{{remark.length}}/200</text>
</view> </view>
<!-- 下单前置确认:勾选后才允许提交预约 -->
<view class="agreement-block {{agreementHint ? 'is-hint' : ''}}">
<view class="agreement-row" bindtap="onToggleAgreement" aria-role="checkbox" aria-checked="{{agreementAgreed}}">
<view class="agreement-check {{agreementAgreed ? 'checked' : ''}}">
<t-icon wx:if="{{agreementAgreed}}" name="check" size="22rpx" color="#FFFFFF" />
</view>
<view class="agreement-consent">
<text class="agreement-consent-text">我已阅读并同意</text>
<text class="agreement-link" catchtap="onOpenAgreement">《{{agreementTitle}}》</text>
</view>
</view>
<text class="agreement-hint" wx:if="{{agreementHint}}">请勾选同意后再提交预约</text>
</view>
</view> </view>
<view class="bottom-placeholder"></view> <view class="bottom-placeholder"></view>
@@ -177,7 +176,7 @@
<button class="page-retry" bindtap="retryLoad">重新加载</button> <button class="page-retry" bindtap="retryLoad">重新加载</button>
</view> </view>
<!-- 支付方式选择弹窗:点击「提交预约」后出现,默认微信支付 --> <!-- 支付方式选择弹窗:点击「提交预约」后出现,默认线下支付 -->
<view class="popup-mask {{showPayPopup ? 'show' : ''}}" bindtap="onClosePayPopup"></view> <view class="popup-mask {{showPayPopup ? 'show' : ''}}" bindtap="onClosePayPopup"></view>
<view class="popup-content {{showPayPopup ? 'show' : ''}}"> <view class="popup-content {{showPayPopup ? 'show' : ''}}">
<view class="popup-header"> <view class="popup-header">
@@ -220,4 +219,47 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 免责协议弹层:下单前必须阅读并勾选同意 -->
<view class="popup-mask {{showAgreementPopup ? 'show' : ''}}" bindtap="onCloseAgreementPopup"></view>
<view class="popup-content agreement-popup {{showAgreementPopup ? 'show' : ''}}">
<view class="popup-header">
<text class="popup-title">{{agreementTitle}}</text>
<view class="popup-close" aria-role="button" aria-label="关闭弹窗" bindtap="onCloseAgreementPopup">
<t-icon name="close" size="40rpx" color="#6F655C" />
</view>
</view>
<scroll-view class="agreement-popup-body" scroll-y>
<block wx:if="{{disclaimer}}">
<text class="agreement-popup-subtitle" wx:if="{{disclaimer.subtitle}}">{{disclaimer.subtitle}}</text>
<view class="agreement-section" wx:for="{{disclaimer.sections}}" wx:key="number">
<view class="agreement-section-title">
<view class="agreement-section-number">{{item.number}}</view>
<text>{{item.title}}</text>
</view>
<block wx:if="{{item.type === 'list'}}">
<view class="agreement-item" wx:for="{{item.items}}" wx:for-item="subItem" wx:key="*this">
<view class="agreement-item-dot"></view>
<text class="agreement-item-text">{{subItem}}</text>
</view>
</block>
</view>
<view class="agreement-popup-footer" wx:if="{{disclaimer.footer.length}}">
<text class="agreement-popup-footer-text" wx:for="{{disclaimer.footer}}" wx:for-item="footItem" wx:key="*this">{{footItem}}</text>
</view>
</block>
<view class="agreement-popup-state" wx:elif="{{disclaimerLoading}}">
<t-loading theme="circular" size="40rpx" text="加载中..." />
</view>
<view class="agreement-popup-state" wx:elif="{{disclaimerError}}">
<text class="page-state-text">协议加载失败,请重试</text>
<button class="page-retry" bindtap="retryLoadDisclaimer">重新加载</button>
</view>
</scroll-view>
<view class="popup-footer">
<view class="popup-btn popup-btn-ghost" bindtap="onCloseAgreementPopup">暂不</view>
<view class="popup-btn popup-btn-primary" wx:if="{{disclaimer}}" bindtap="onAgreeFromPopup">我已阅读并同意</view>
<view class="popup-btn popup-btn-primary" wx:else bindtap="retryLoadDisclaimer">重新加载</view>
</view>
</view>
</view> </view>
+161 -23
View File
@@ -312,28 +312,6 @@ page {
transform: rotate(45deg); transform: rotate(45deg);
} }
/* 已选陪诊师:展示从业与接单数,支持清除后回到平台安排 */
.attendant-choice {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16rpx;
margin: -6rpx 0 6rpx;
padding: 10rpx 0 0;
}
.attendant-choice-text {
color: var(--muted);
font-size: var(--fs-24);
}
.attendant-choice-clear {
flex-shrink: 0;
color: var(--brand-ink);
font-size: var(--fs-24);
font-weight: 600;
}
.order-textarea { .order-textarea {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
@@ -709,10 +687,170 @@ page {
font-weight: 700; font-weight: 700;
} }
/* ===== 免责协议确认(下单前置勾选) ===== */
.agreement-block {
padding: 26rpx 0 30rpx;
}
.agreement-row {
display: flex;
align-items: flex-start;
gap: 16rpx;
}
.agreement-check {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-sizing: border-box;
width: 36rpx;
height: 36rpx;
margin-top: 2rpx;
border: 2rpx solid var(--brand-line);
border-radius: 50%;
background: var(--white);
transition: background 0.15s ease, border-color 0.15s ease;
}
/* 选中态沿用全站唯一实心主色,白色对勾直接落在主色上 */
.agreement-check.checked {
border-color: var(--brand-strong);
background: var(--brand-strong);
}
.agreement-consent {
flex: 1;
min-width: 0;
line-height: 1.6;
}
.agreement-consent-text {
color: var(--muted);
font-size: var(--fs-26);
}
.agreement-link {
color: var(--brand-ink);
font-size: var(--fs-26);
font-weight: 600;
}
.agreement-block.is-hint .agreement-consent-text {
color: var(--ink-2);
}
.agreement-hint {
display: block;
margin-top: 10rpx;
margin-left: 52rpx;
color: var(--brand-strong);
font-size: var(--fs-24);
line-height: 1.5;
}
/* ===== 免责协议弹层:正文区可滚动,底部固定同意按钮 ===== */
.agreement-popup {
height: 80vh;
max-height: 80vh;
}
.agreement-popup-body {
flex: 1;
min-height: 0;
box-sizing: border-box;
padding: 20rpx 32rpx 8rpx;
}
.agreement-popup-subtitle {
display: block;
margin-bottom: 24rpx;
padding: 16rpx 20rpx;
border-radius: 14rpx;
background: var(--brand-soft);
color: var(--brand-ink);
font-size: var(--fs-24);
line-height: 1.6;
}
.agreement-section {
margin-bottom: 28rpx;
}
.agreement-section-title {
display: flex;
align-items: center;
margin-bottom: 12rpx;
color: var(--ink);
font-size: var(--fs-28);
font-weight: 700;
line-height: 1.5;
}
.agreement-section-number {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 36rpx;
height: 36rpx;
margin-right: 12rpx;
border: 2rpx solid var(--brand-line);
border-radius: 50%;
background: var(--brand-soft);
color: var(--brand-ink);
font-size: var(--fs-24);
font-weight: 700;
}
.agreement-item {
display: flex;
align-items: flex-start;
margin-bottom: 10rpx;
}
.agreement-item-dot {
flex-shrink: 0;
width: 10rpx;
height: 10rpx;
margin: 14rpx 12rpx 0 0;
border-radius: 50%;
background: var(--brand-strong);
}
.agreement-item-text {
flex: 1;
color: var(--ink-2);
font-size: var(--fs-26);
line-height: 1.7;
}
.agreement-popup-footer {
margin-top: 8rpx;
padding: 16rpx 0 24rpx;
border-top: 2rpx dotted var(--sep);
}
.agreement-popup-footer-text {
display: block;
color: var(--muted);
font-size: var(--fs-24);
line-height: 1.6;
}
.agreement-popup-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 80rpx 0;
}
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
.patient-chip, .patient-chip,
.add-profile-tip, .add-profile-tip,
.submit-btn { .submit-btn,
.agreement-check {
transition: none; transition: none;
} }
} }
-7
View File
@@ -56,13 +56,6 @@ Page({
// 就诊人是个人健康信息,点击时需登录 // 就诊人是个人健康信息,点击时需登录
needLogin: true needLogin: true
}, },
{
id: 'attendants',
name: '找陪诊师',
desc: '查看团队',
icon: 'user',
url: '/pages/escort/attendants'
},
{ {
id: 'contact', id: 'contact',
name: '联系我们', name: '联系我们',
+2
View File
@@ -52,6 +52,8 @@ const API = {
resource: { resource: {
getServices: (params) => request.get('/health/service', params), getServices: (params) => request.get('/health/service', params),
getAgreement: (params) => request.get('/health/agreement', params), getAgreement: (params) => request.get('/health/agreement', params),
// 下单前需勾选确认的《全程陪诊服务免责协议》
getDisclaimer: (params) => request.get('/health/disclaimer', params),
getAiQuickQuestions: (params) => request.get('/health/ai-quick-questions', params), getAiQuickQuestions: (params) => request.get('/health/ai-quick-questions', params),
}, },