diff --git a/app.js b/app.js index 0eed6d7..aa3597a 100644 --- a/app.js +++ b/app.js @@ -15,34 +15,54 @@ App({ } this.globalData.appId = appId - this.globalData.servicesReady = new Promise((resolve) => { - API.resource.getServices().then((data) => { - this.globalData.services = data.data.services - resolve(data.data.services) - }).catch((err) => { - console.error('获取服务列表失败', err) - resolve([]) - }) - }) - - this.globalData.agreementReady = new Promise((resolve) => { - API.resource.getAgreement().then((data) => { - this.globalData.agreement = data.data.agreement - resolve(data.data.agreement) - }).catch((err) => { - console.error('获取服务协议失败', err) - resolve(null) - }) - }) + this.loadServices() + this.loadAgreement() this.checkUpdate(); }, onShow() { - this.silentSignin() + this.globalData.authReady = this.silentSignin() this.initChatSocket() }, + // 启动期资源统一走 Promise;失败后清空 Promise,页面重试可重新发起请求。 + loadServices() { + if (this.globalData.servicesReady) return this.globalData.servicesReady + this.globalData.servicesReady = API.resource.getServices() + .then((res) => { + if (res.code !== 0 || !Array.isArray(res.data?.services)) throw new Error(res.msg || '服务列表加载失败') + this.globalData.services = res.data.services + return this.globalData.services + }) + .catch((err) => { + console.error('获取服务列表失败', err) + this.globalData.servicesReady = null + return null + }) + return this.globalData.servicesReady + }, + + loadAgreement() { + if (this.globalData.agreementReady) return this.globalData.agreementReady + this.globalData.agreementReady = API.resource.getAgreement() + .then((res) => { + if (res.code !== 0 || !res.data?.agreement) throw new Error(res.msg || '服务协议加载失败') + this.globalData.agreement = res.data.agreement + return this.globalData.agreement + }) + .catch((err) => { + console.error('获取服务协议失败', err) + this.globalData.agreementReady = null + return null + }) + return this.globalData.agreementReady + }, + + waitForAuth() { + return this.globalData.authReady || this.silentSignin() + }, + // 静默重登:app.onShow 与 request 层的 401 兜底共用这一个入口 // (wxsignin 只凭 code 换到 openid 就能签发 token,见 api/user/handler/users.js)。 // @@ -174,6 +194,9 @@ App({ user: null, chatSocket: null, services: [], + servicesReady: null, agreement: null, + agreementReady: null, + authReady: null, } }) \ No newline at end of file diff --git a/pages/escort/agreement.js b/pages/escort/agreement.js index db83ede..596d393 100644 --- a/pages/escort/agreement.js +++ b/pages/escort/agreement.js @@ -1,5 +1,3 @@ -const app = getApp() - Page({ /** @@ -7,64 +5,30 @@ Page({ */ data: { agreement: null, - loading: true + loading: true, + error: false }, /** * 生命周期函数--监听页面加载 */ - onLoad(options) { - const agreement = app.globalData.agreement - if (agreement) { + onLoad() { + this.loadAgreement() + }, + + loadAgreement() { + this.setData({ loading: true, error: false }) + getApp().loadAgreement().then((agreement) => { this.setData({ - agreement: agreement, - loading: false + agreement: agreement || null, + loading: false, + error: !agreement }) - } else { - this.setData({ loading: false }) - } + }) }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady() { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow() { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide() { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload() { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh() { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom() { - + retry() { + this.loadAgreement() }, /** diff --git a/pages/escort/agreement.wxml b/pages/escort/agreement.wxml index 24db2bf..552d93b 100644 --- a/pages/escort/agreement.wxml +++ b/pages/escort/agreement.wxml @@ -1,7 +1,13 @@ - 加载中... - + + 加载中... + + + 协议加载失败,请重试 + + + diff --git a/pages/escort/agreement.wxss b/pages/escort/agreement.wxss index 91eb320..c322954 100644 --- a/pages/escort/agreement.wxss +++ b/pages/escort/agreement.wxss @@ -14,6 +14,37 @@ page { padding-bottom: 48rpx; } +.page-state { + min-height: 70vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 48rpx 32rpx; + box-sizing: border-box; +} + +.page-state-text { + font-size: 28rpx; + color: var(--muted); + line-height: 1.6; +} + +.page-retry { + margin: 28rpx 0 0; + padding: 12rpx 36rpx; + border: 2rpx solid var(--brand-strong); + border-radius: 999rpx; + background: transparent; + color: var(--brand-strong); + font-size: 28rpx; + line-height: 1.5; +} + +.page-retry::after { + border: none; +} + /* 顶部标题区:不铺卡面、直接落纸面(同首页 hero),去掉原白→暖白渐变 */ .header-section { display: flex; diff --git a/pages/escort/guide.js b/pages/escort/guide.js index 7214b80..4f21604 100644 --- a/pages/escort/guide.js +++ b/pages/escort/guide.js @@ -16,7 +16,7 @@ Page({ }, { title: '支付费用', - desc: '通过微信支付服务费用' + desc: '联系客服协助支付服务费用' }, { // 与 services.js id 1/2 的第 4 步同名;具体材料清单交给下方「就诊前准备」卡,不在这里重复 @@ -80,14 +80,14 @@ Page({ onShareAppMessage() { return { - title: '暖橙陪诊 · 陪诊指南', // 转发标题 + title: '暖橙陪诊 · 服务指南', // 转发标题 path: '/pages/escort/guide' } }, onShareTimeline() { return { - title: '暖橙陪诊 · 陪诊指南' + title: '暖橙陪诊 · 服务指南' } } }) diff --git a/pages/escort/itemdetail.js b/pages/escort/itemdetail.js index 617a589..33165d5 100644 --- a/pages/escort/itemdetail.js +++ b/pages/escort/itemdetail.js @@ -2,120 +2,149 @@ const API = require('../../utils/api.js') Page({ data: { - service: { - id: null, - title: '', - subtitle: '', - price: '0.00', - image: '', - tag: '', - description: '', - flow: [], - notices: [] - }, + service: {}, + pageLoading: true, + pageError: '', totalPrice: '0.00', + serviceIcon: 'user-business', showOrderPopup: false, - profiles: [], // 已保存的就诊人 - selectedProfileId: '', // 必填:订单必须关联就诊人档案 - patientName: '', // 只读展示,来自所选档案 - patientPhone: '', // 只读展示,来自所选档案 - // 选中档案的全部信息,下单时整体写入订单 patient 快照 + submitting: false, + profiles: [], + selectedProfileId: '', + patientName: '', + patientPhone: '', selectedPatient: null, - // 默认北京:取值必须与 provinces[0] 完全一致('北京市' 而非 '北京'), - // 否则 picker 的 value=0 与显示文案会对不上 - province: '北京市', + province: '', provinceIndex: 0, - provinces: ['北京市', '天津市', '河北省', '山西省', '内蒙古自治区', '辽宁省', '吉林省', '黑龙江省', '上海市', '江苏省', '浙江省', '安徽省', '福建省', '江西省', '山东省', '河南省', '湖北省', '湖南省', '广东省', '广西壮族自治区', '海南省', '重庆市', '四川省', '贵州省', '云南省', '西藏自治区', '陕西省', '甘肃省', '青海省', '宁夏回族自治区', '新疆维吾尔自治区', '台湾省', '香港特别行政区', '澳门特别行政区'], + provinces: [], hospital: '', appointmentDate: '', appointmentTime: '', + minAppointmentDate: '', + fixedTime: false, + timeOptions: [], + sessionIndex: 0, + timeStart: '', + timeEnd: '', remark: '', - today: '', + shippingAddress: '', + requiresAddress: false, gender: '不限', genderIndex: 0, genderOptions: ['不限', '男', '女'], department: '', - departments: ['内科', '外科', '妇产科', '儿科', '骨科', '神经科', '心血管内科', '消化内科', '呼吸内科', '内分泌科', '皮肤科', '眼科', '耳鼻喉科', '口腔科', '急诊科', '肿瘤科', '康复医学科', '老年病科', '中医科', '针灸推拿科'], - hospitals: [] + departments: ['内科', '外科', '妇产科', '儿科', '骨科', '神经科', '心血管内科', '消化内科', '呼吸内科', '内分泌科', '皮肤科', '眼科', '耳鼻喉科', '口腔科', '急诊科', '肿瘤科', '康复医学科', '老年病科', '中医科', '针灸推拿科'] }, onLoad(options) { - const today = new Date() - const year = today.getFullYear() - const month = String(today.getMonth() + 1).padStart(2, '0') - const day = String(today.getDate()).padStart(2, '0') - const todayStr = `${year}-${month}-${day}` + this.serviceId = Number(options.id) + this.openBookAfterLoad = options.book === '1' + if (!Number.isInteger(this.serviceId) || this.serviceId <= 0) { + this.setData({ pageLoading: false, pageError: '服务不存在或已下架' }) + return + } + this.initializePage() + }, + onShow() { + if (this.data.showOrderPopup) this.loadProfiles() + }, + + async initializePage() { + this.setData({ pageLoading: true, pageError: '' }) + const services = await getApp().loadServices() + if (!services) { + this.setData({ pageLoading: false, pageError: '服务加载失败,请重试' }) + return + } + const service = services.find((item) => item.id === this.serviceId) + if (!service) { + this.setData({ pageLoading: false, pageError: '服务不存在或已下架' }) + return + } + + this.applyBookingConfig(service) this.setData({ - today: todayStr + service, + serviceIcon: this.getServiceIcon(service.title), + totalPrice: service.price, + pageLoading: false }) - - const serviceId = parseInt(options.id) || 1 - this.loadServiceDetail(serviceId) - - // 从列表页的「预约」进来(?book=1)时,直接把预约单弹出来; - // 未登录会由 openOrderPopup 拦下并提示登录 - if (options.book === '1') { + wx.setNavigationBarTitle({ title: service.title || '服务详情' }) + if (this.openBookAfterLoad) { + this.openBookAfterLoad = false this.openOrderPopup() } }, - onShow() { - // 从"新增就诊人"页面返回时,弹窗还开着就刷新一次可选的就诊人 - if (this.data.showOrderPopup) { - this.loadProfiles() - } + retryLoad() { + this.initializePage() }, - loadServiceDetail(id) { - const app = getApp() - let service = null - for (const item of app.globalData.services) { - if (item.id === id) { - service = item - break - } + applyBookingConfig(service) { + const booking = service.booking || {} + const sessions = booking.sessions || [] + const fixedTime = sessions.length > 0 && sessions.every((item) => !item.flexible) + const firstSession = sessions[0] || {} + const minDate = new Date() + minDate.setDate(minDate.getDate() + Number(booking.advanceDays || 0)) + const minAppointmentDate = `${minDate.getFullYear()}-${String(minDate.getMonth() + 1).padStart(2, '0')}-${String(minDate.getDate()).padStart(2, '0')}` + let timeEnd = firstSession.end || '' + if (!fixedTime && firstSession.end && booking.durationMinutes) { + const [hour, minute] = firstSession.end.split(':').map(Number) + const latest = hour * 60 + minute - booking.durationMinutes + timeEnd = `${String(Math.floor(latest / 60)).padStart(2, '0')}:${String(latest % 60).padStart(2, '0')}` } - if (!service) { - return - } - - const totalPrice = this.calculateTotal(service.price, 1) + const provinces = service.areas || [] this.setData({ - service: service, - serviceIcon: this.getServiceIcon(service.title), - totalPrice: totalPrice + minAppointmentDate, + fixedTime, + timeOptions: sessions.map((item) => `${item.start} - ${item.end}`), + sessionIndex: 0, + timeStart: firstSession.start || '', + timeEnd, + provinces, + province: provinces[0] || '', + provinceIndex: 0, + requiresAddress: !!booking.requiresAddress }) }, - // 弹窗服务标记:原占位图是全服务共用的一张白色线稿,落在浅橙面板上看不见, - // 改用暖橙 t-icon(名称均已核对 tdesign 图标表,写错不报错只会渲染为空)。 - // 图标按服务名选:夜间→月亮,陪诊→时钟,其余(取报告/代取药品等代办)→人像 getServiceIcon(title) { - if (title.indexOf('夜间') > -1) { - return 'moon' - } - if (title.indexOf('陪诊') > -1) { - return 'time' - } + if (title.includes('夜间')) return 'moon' + if (title.includes('陪诊')) return 'time' return 'user-business' }, - calculateTotal(price) { - return price + async ensureLogin() { + const app = getApp() + await app.waitForAuth() + if (app.globalData.user?._id) return true + const modal = await new Promise((resolve) => { + wx.showModal({ + title: '登录后预约', + content: '登录成功后将返回当前服务并继续预约', + confirmText: '登录并继续', + confirmColor: '#B8520A', + success: resolve, + fail: () => resolve({ confirm: false }) + }) + }) + if (!modal.confirm) return null + // 用户明确点击登录时,解除主动退出对静默登录的限制。 + wx.removeStorageSync('has_logout') + return app.silentSignin() }, - openOrderPopup() { - const app = getApp() - if (!app.globalData.user) { - wx.showToast({ - title: '请先登录', - icon: 'none' - }) + async openOrderPopup() { + if (!this.data.service.id || this.data.submitting) return + const loggedIn = await this.ensureLogin() + if (loggedIn === null) return + if (!loggedIn || !getApp().globalData.user?._id) { + wx.showToast({ title: '登录失败,请重试', icon: 'none' }) return } - - // 订单必须关联健康档案,就诊人不再手输:打开弹窗时清空,等用户选择就诊人后带入 + this.idempotencyKey = `order_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 12)}` this.setData({ patientName: '', patientPhone: '', @@ -123,315 +152,182 @@ Page({ selectedPatient: null, showOrderPopup: true }) - this.loadProfiles() }, - // 读取已保存的就诊人,供弹窗内一键选择 loadProfiles() { - API.healthProfile.getMyProfiles({ - page: 1, - pageSize: 20 - }) + return API.healthProfile.getMyProfiles({ page: 1, pageSize: 50 }) .then((res) => { - if (res.code !== 0) { - return - } - // 档案是 profile + health 两层嵌套,这里拍平成选人后可直接带入的字段 - const list = ((res.data && res.data.list) || []).map((item) => { - const profile = item.profile || {} - const health = item.health || {} - return { - _id: item._id, - name: profile.name || '', - mobile: profile.mobile || '', - sex: profile.sex || '', - birth: profile.birth || '', - weight: health.weight || 0, - height: health.height || 0, - idnumber: profile.idnumber || '' - } - }) - this.setData({ - profiles: list - }) + if (res.code !== 0) throw new Error(res.msg || '就诊人加载失败') + const profiles = (res.data?.list || []).map((item) => ({ + _id: item._id, + name: item.profile?.name || '', + mobile: item.profile?.mobile || '', + sex: item.profile?.sex || '', + birth: item.profile?.birth || '' + })) + this.setData({ profiles }) }) .catch((err) => { console.log('获取就诊人列表失败', err) + wx.showToast({ title: '就诊人加载失败,请重试', icon: 'none' }) }) }, - // 选择就诊人:姓名/电话回填展示,其余字段存入 selectedPatient 供下单使用 onSelectProfile(e) { const id = e.currentTarget.dataset.id const profile = this.data.profiles.find((item) => item._id === id) - if (!profile) { - return - } - + if (!profile) return this.setData({ selectedProfileId: id, - // patientName / patientPhone 只用于弹窗内只读展示 patientName: profile.name, patientPhone: profile.mobile, - // 订单 patient 快照的唯一来源:所选档案的名单字段(体征与证件号不进快照) - selectedPatient: { - name: profile.name, - mobile: profile.mobile, - sex: profile.sex, - birth: profile.birth - } + selectedPatient: profile }) }, - // 跳转到就诊人页新增 goToAddProfile() { - wx.navigateTo({ - url: '/pages/health/profileedit' - }) + wx.navigateTo({ url: '/pages/health/profileedit' }) }, closeOrderPopup() { - this.setData({ - showOrderPopup: false - }) + if (!this.data.submitting) this.setData({ showOrderPopup: false }) }, onProvinceChange(e) { - const index = e.detail.value - const province = this.data.provinces[index] - this.setData({ - provinceIndex: index, - province: province - }) + const index = Number(e.detail.value) + this.setData({ provinceIndex: index, province: this.data.provinces[index] }) }, onHospitalChange(e) { - this.setData({ - hospital: e.detail.value - }) + this.setData({ hospital: e.detail.value }) }, onDepartmentChange(e) { - this.setData({ - department: e.detail.value - }) + this.setData({ department: e.detail.value }) }, onDateChange(e) { - this.setData({ - appointmentDate: e.detail.value - }) + this.setData({ appointmentDate: e.detail.value }) }, onTimeChange(e) { - this.setData({ - appointmentTime: e.detail.value - }) + if (this.data.fixedTime) { + const index = Number(e.detail.value) + const session = this.data.service.booking.sessions[index] + this.setData({ sessionIndex: index, appointmentTime: session.start }) + return + } + this.setData({ appointmentTime: e.detail.value }) }, onGenderChange(e) { - const index = e.detail.value - const gender = this.data.genderOptions[index] - this.setData({ - genderIndex: index, - gender: gender - }) + const index = Number(e.detail.value) + this.setData({ genderIndex: index, gender: this.data.genderOptions[index] }) }, onRemarkChange(e) { - this.setData({ - remark: e.detail.value - }) + this.setData({ remark: e.detail.value }) + }, + + onShippingAddressChange(e) { + this.setData({ shippingAddress: e.detail.value }) + }, + + validateOrder() { + const data = this.data + if (!data.selectedProfileId || !data.selectedPatient) return '请选择就诊人' + if (!data.hospital.trim()) return '请输入就诊医院' + if (!data.department.trim()) return '请输入就诊科室' + if (!data.appointmentDate) return '请选择预约日期' + if (!data.appointmentTime) return '请选择预约时间' + if (data.requiresAddress && !data.shippingAddress.trim()) return '请填写完整收货地址' + if (!/^1[3-9]\d{9}$/.test(data.selectedPatient.mobile.trim())) { + return '就诊人手机号有误,请到就诊人档案修改' + } + return '' }, submitOrder() { - const { - service, - selectedProfileId, - selectedPatient, - province, - hospital, - department, - appointmentDate, - appointmentTime, - gender, - remark - } = this.data - - // 订单必须关联就诊人:没有档案就没有 patient 快照,不允许下单 - if (!selectedProfileId || !selectedPatient) { - wx.showToast({ - title: '请选择就诊人', - icon: 'none' - }) - return - } - if (!hospital.trim()) { - wx.showToast({ - title: '请输入就诊医院', - icon: 'none' - }) - return - } - if (!department.trim()) { - wx.showToast({ - title: '请输入就诊科室', - icon: 'none' - }) - return - } - if (!appointmentDate) { - wx.showToast({ - title: '请选择预约日期', - icon: 'none' - }) - return - } - if (!appointmentTime) { - wx.showToast({ - title: '请选择预约时间', - icon: 'none' - }) + if (this.data.submitting) return + const error = this.validateOrder() + if (error) { + wx.showToast({ title: error, icon: 'none' }) return } - const phoneRegex = /^1[3-9]\d{9}$/ - if (!phoneRegex.test(selectedPatient.mobile.trim())) { - wx.showToast({ - title: '就诊人手机号有误,请到就诊人档案修改', - icon: 'none' - }) - return - } - - const app = getApp() - const user = app.globalData.user - let sex = "none" - if (gender == '男') sex = 'male' - else if (gender == '女') sex = 'female' - - // 就诊人快照只取名单字段(schema 口径:name/mobile/sex/birth); - // sex 是 male/female 枚举,空值不写该字段 - const patient = { - name: selectedPatient.name.trim(), - mobile: selectedPatient.mobile.trim(), - birth: selectedPatient.birth || '' - } - if (selectedPatient.sex) { - patient.sex = selectedPatient.sex - } - + const data = this.data + const sexMap = { 男: 'male', 女: 'female' } const orderData = { - userId: user._id, - // 订单与就诊人档案的关联,必填(patient 只是下单当刻的快照) - healthProfileId: selectedProfileId, - patient: patient, + idempotencyKey: this.idempotencyKey, + healthProfileId: data.selectedProfileId, escort: { - serviceId: service.id, - serviceName: service.title, - sexRequirement: sex + serviceId: data.service.id, + sexRequirement: sexMap[data.gender] || 'none' }, hospital: { - province: province, - name: hospital.trim(), - department: department.trim(), + province: data.province, + name: data.hospital.trim(), + department: data.department.trim() }, schedule: { - date: appointmentDate, - startTime: appointmentTime + date: data.appointmentDate, + startTime: data.appointmentTime }, - payment: { - totalFee: service.price - }, - notes: { - patientNote: remark.trim() - } + shippingAddress: { address: data.shippingAddress.trim() }, + notes: { patientNote: data.remark.trim() } } - wx.showLoading({ - title: '提交中...' - }) - + // 同步锁定按钮;网络重试沿用同一幂等键,服务端只创建一笔订单。 + this.setData({ submitting: true }) API.escort.createRecord(orderData) - .then((data) => { - wx.hideLoading() - if (data.code === 0) { - wx.showToast({ - title: '下单成功', - icon: 'success' - }) - this.setData({ - showOrderPopup: false - }) - this.resetForm() - // 下单成功回到记录页,直接落到「进行中的」:新单是待确认,属未完成档 - wx.navigateTo({url: '/pages/escort/recordlist?tab=ongoing'}) - } else { - wx.showToast({ - title: data.msg || '下单失败', - icon: 'none' - }) - } + .then((res) => { + if (res.code !== 0) throw new Error(res.msg || '下单失败') + wx.showToast({ title: '下单成功', icon: 'success' }) + this.setData({ showOrderPopup: false }) + this.resetForm() + wx.navigateTo({ url: '/pages/escort/recordlist?tab=ongoing' }) }) .catch((err) => { - wx.hideLoading() - wx.showToast({ - title: '网络请求失败', - icon: 'none' - }) console.log('下单失败', err) + wx.showToast({ title: err.message || '网络请求失败,请重试', icon: 'none' }) }) + .finally(() => this.setData({ submitting: false })) }, resetForm() { + const provinces = this.data.provinces this.setData({ selectedProfileId: '', patientName: '', patientPhone: '', selectedPatient: null, - // 重置后仍回到默认北京,与 data 初值保持一致 - province: '北京市', + province: provinces[0] || '', provinceIndex: 0, hospital: '', department: '', appointmentDate: '', appointmentTime: '', - // 重置后回到默认「不限」,与 data 初值(gender: '不限' / genderIndex: 0)保持一致 + sessionIndex: 0, gender: '不限', genderIndex: 0, - remark: '' - }) - const totalPrice = this.calculateTotal(this.data.service.price) - this.setData({ - totalPrice: totalPrice + remark: '', + shippingAddress: '' }) + this.idempotencyKey = '' }, onShareAppMessage() { - const { - service - } = this.data + const service = this.data.service return { - title: `${service.title} - 专业陪诊服务`, - path: `/pages/escort/itemdetail?id=${service.id}` + title: service.id ? `${service.title} - 专业陪诊服务` : '暖橙陪诊 · 专业陪诊服务', + path: service.id ? `/pages/escort/itemdetail?id=${service.id}` : '/pages/home/index' } }, - // 朋友圈只能分享当前页,服务 id 只能靠 query 带上; - // 服务未加载完(service.id 为 null)时不带 query,落到默认项,避免拼出 id=null onShareTimeline() { - const { - service - } = this.data - if (!service.id) { - return { - title: '暖橙陪诊 · 专业陪诊服务' - } - } - return { - title: `${service.title} - 专业陪诊服务`, - query: `id=${service.id}` - } + const service = this.data.service + if (!service.id) return { title: '暖橙陪诊 · 专业陪诊服务' } + return { title: `${service.title} - 专业陪诊服务`, query: `id=${service.id}` } } -}) \ No newline at end of file +}) diff --git a/pages/escort/itemdetail.wxml b/pages/escort/itemdetail.wxml index 29ee92b..7b457e5 100644 --- a/pages/escort/itemdetail.wxml +++ b/pages/escort/itemdetail.wxml @@ -1,5 +1,5 @@ - + @@ -161,7 +161,7 @@ 预约日期 - + {{appointmentDate || '请选择预约日期'}} @@ -171,13 +171,25 @@ 预约时间 - + + + {{appointmentTime ? timeOptions[sessionIndex] : '请选择服务班次'}} + + + {{appointmentTime || '请选择预约时间'}} + + + 收货地址 +