diff --git a/pages.json b/pages.json index 1b8d6e1..9db7834 100644 --- a/pages.json +++ b/pages.json @@ -197,6 +197,26 @@ } ] }, + { + "root": "pages/record", + "name": "record", + "pages": [ + { + "path": "treatment-record", + "style": { + "navigationBarTitleText": "治疗记录", + "disableScroll": true + } + }, + { + "path": "appointment-record", + "style": { + "navigationBarTitleText": "预约记录", + "disableScroll": true + } + } + ] + }, { "root": "pages/archive", "name": "archive", diff --git a/pages/experience-coupon/select-rights-archive.vue b/pages/experience-coupon/select-rights-archive.vue index 92e0999..f92ec5b 100644 --- a/pages/experience-coupon/select-rights-archive.vue +++ b/pages/experience-coupon/select-rights-archive.vue @@ -99,6 +99,13 @@ function buildTargetUrl(item) { if (target.value === "health") { return `/pages/health/list?teamId=${team}&corpId=${corp}&id=${customer}&name=${name}`; } + if (target.value === "treatment") { + return `/pages/record/treatment-record?teamId=${team}&corpId=${corp}&customerId=${customer}&name=${name}`; + } + if (target.value === "appointment") { + const corpName = encodeURIComponent(item.corpName || ""); + return `/pages/record/appointment-record?teamId=${team}&corpId=${corp}&customerId=${customer}&name=${name}&corpName=${corpName}`; + } return `/pages/experience-coupon/my-rights?corpId=${corp}&teamId=${team}&customerId=${customer}&name=${name}`; } diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue index ea0adc6..0c8f9b3 100644 --- a/pages/mine/mine.vue +++ b/pages/mine/mine.vue @@ -25,12 +25,18 @@ 我的体验券 - + 治疗记录 + + + + + 预约记录 + @@ -257,8 +263,12 @@ async function openCouponWallet() { await openWithArchive("coupons"); } -async function openHealthRecord() { - await openWithArchive("health"); +async function openTreatmentRecord() { + await openWithArchive("treatment"); +} + +async function openAppointmentRecord() { + await openWithArchive("appointment"); } function toPage(url) { @@ -363,6 +373,10 @@ page { background: #ecfff5; } +.shortcut-icon--appointment { + background: #f3edff; +} + .shortcut-title { font-size: 14px; line-height: 20px; diff --git a/pages/record/appointment-record.vue b/pages/record/appointment-record.vue new file mode 100644 index 0000000..d1eaed0 --- /dev/null +++ b/pages/record/appointment-record.vue @@ -0,0 +1,346 @@ + + + + + \ No newline at end of file diff --git a/pages/record/treatment-record.vue b/pages/record/treatment-record.vue new file mode 100644 index 0000000..36c9796 --- /dev/null +++ b/pages/record/treatment-record.vue @@ -0,0 +1,209 @@ + + + + + \ No newline at end of file diff --git a/routes/index.js b/routes/index.js index ec4baad..e2b1844 100644 --- a/routes/index.js +++ b/routes/index.js @@ -32,6 +32,14 @@ export default [ path: 'pages/experience-coupon/wallet', meta: { title: '我的卡包', login: true } }, + { + path: 'pages/record/treatment-record', + meta: { title: '治疗记录', login: true } + }, + { + path: 'pages/record/appointment-record', + meta: { title: '预约记录', login: true } + }, { path: 'pages/archive/archive-manage', meta: { title: '档案管理', login: true } diff --git a/utils/api.js b/utils/api.js index 4e2ad82..3014c53 100644 --- a/utils/api.js +++ b/utils/api.js @@ -13,6 +13,7 @@ const urlsConfig = { bindWxappWithTeam: 'bindWxappWithTeam', getWxappRelateTeams: 'getWxappRelateTeams', getTeamMemberAvatarsAndName: "getTeamMemberAvatarsAndName", + getAllCorpMemberIncludeDeleted: "getAllCorpMemberIncludeDeleted", getMiniAppHomeStats: "getMiniAppHomeStats", getResponsiblePerson: 'getTeamResponsiblePerson', relateWxappTeamByExternalUserId: 'relateWxappTeamByExternalUserId' @@ -59,6 +60,8 @@ const urlsConfig = { getMiniAppCustomers: 'getMiniAppCustomers', getTeamCustomers: 'getTeamCustomers', getTreatmentRecord: "getTreatmentRecord", + getAppointmentRecord: "getAppointmentRecord", + getAppointmentRegistration: "getAppointmentRegistration", getUnbindMiniAppCustomers: 'getUnbindMiniAppCustomers', getCustomerMedicalRecord: 'getCustomerMedicalRecord', getMedicalRecordById: 'getMedicalRecordById',