From f353daccaa1ccf6b309c93c24d97b94f575d3fed Mon Sep 17 00:00:00 2001 From: zhanchao Date: Wed, 29 Jul 2026 11:25:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=93=E9=AA=8C=E5=88=B8=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 601 ++++++++++-------- pages/experience-coupon/claim.vue | 358 +++++++++++ pages/experience-coupon/my-coupons.vue | 387 +++++++++++ pages/experience-coupon/my-rights.vue | 412 ++++++++++++ .../select-rights-archive.vue | 285 +++++++++ pages/experience-coupon/wallet.vue | 36 ++ pages/login/redirect-page.vue | 12 + pages/mine/mine.vue | 301 +++++++-- routes/index.js | 20 + utils/api.js | 6 + 10 files changed, 2082 insertions(+), 336 deletions(-) create mode 100644 pages/experience-coupon/claim.vue create mode 100644 pages/experience-coupon/my-coupons.vue create mode 100644 pages/experience-coupon/my-rights.vue create mode 100644 pages/experience-coupon/select-rights-archive.vue create mode 100644 pages/experience-coupon/wallet.vue diff --git a/pages.json b/pages.json index 1c0d458..1b8d6e1 100644 --- a/pages.json +++ b/pages.json @@ -1,280 +1,321 @@ -{ - "pages": [ - { - "path": "pages/home/home", - "style": { - "navigationBarTitleText": "首页", - "navigationStyle": "custom", - "disableScroll": true - } - }, - { - "path": "pages/message/message", - "style": { - "navigationBarTitleText": "消息", - "disableScroll": true - } - }, - { - "path": "pages/message/index", - "style": { - "navigationBarTitleText": "聊天", - "enablePullDownRefresh": false, - "disableScroll": true - } - }, - { - "path": "pages/mine/mine", - "style": { - "navigationBarTitleText": "我的", - "disableScroll": true - } - }, - { - "path": "pages/mine/contact", - "style": { - "navigationBarTitleText": "联系客服", - "disableScroll": true - } - }, - { - "path": "pages/login/login", - "style": { - "navigationBarTitleText": "健康柚", - "navigationStyle": "custom", - "disableScroll": true - } - }, - { - "path": "pages/login/redirect-page", - "style": { - "navigationBarTitleText": "健康柚", - "disableScroll": true - } - }, - { - "path": "pages/login/agreement", - "style": { - "navigationBarTitleText": "健康柚", - "disableScroll": true - } - }, - { - "path": "pages/common/privacy", - "style": { - "navigationBarTitleText": "隐私政策", - "disableScroll": true - } - }, - { - "path": "pages/common/agreement", - "style": { - "navigationBarTitleText": "用户协议", - "disableScroll": true - } - }, - { - "path": "pages/web-view/web-view", - "style": { - "navigationBarTitleText": "", - "disableScroll": true - } - } - ], - "subPackages": [ - { - "root": "pages/article", - "name": "article", - "pages": [ - { - "path": "article-list", - "style": { - "navigationBarTitleText": "我的宣教", - "disableScroll": true - } - }, - { - "path": "article-cate-list", - "style": { - "navigationBarTitleText": "健康宣教", - "disableScroll": true - } - }, - { - "path": "article-detail", - "style": { - "navigationBarTitleText": "宣教文章", - "disableScroll": true - } - }, - { - "path": "send-article", - "style": { - "navigationBarTitleText": "选择宣教文章", - "disableScroll": true - } - } - ] - }, - { - "root": "pages/survey", - "name": "survey", - "pages": [ - { - "path": "survey-list", - "style": { - "navigationBarTitleText": "我的问卷", - "disableScroll": true - } - }, - { - "path": "fill", - "style": { - "navigationBarTitleText": "问卷", - "disableScroll": true - } - } - ] - }, - { - "root": "pages/rate", - "name": "rate", - "pages": [ - { - "path": "rate-list", - "style": { - "navigationBarTitleText": "服务评价", - "disableScroll": true - } - }, - { - "path": "rate-detail", - "style": { - "navigationBarTitleText": "服务评价", - "disableScroll": true - } - } - ] - }, - { - "root": "pages/archive", - "name": "archive", - "pages": [ - { - "path": "archive-manage", - "style": { - "navigationBarTitleText": "档案管理", - "disableScroll": true - } - }, - { - "path": "edit-archive", - "style": { - "navigationBarTitleText": "新增档案", - "disableScroll": true - } - }, - { - "path": "archive-result", - "style": { - "navigationBarTitleText": "团队服务", - "disableScroll": true - } - } - ] - }, - { - "root": "pages/health", - "name": "health", - "pages": [ - { - "path": "list", - "style": { - "navigationBarTitleText": "健康信息", - "disableScroll": true - } - }, - { - "path": "record", - "style": { - "navigationBarTitleText": "健康信息", - "disableScroll": true - } - } - ] - }, - { - "root": "pages/library", - "name": "library", - "pages": [ - { - "path": "diagnosis-list", - "style": { - "navigationBarTitleText": "选择诊断", - "disableScroll": true - } - } - ] - }, - { - "root": "pages/team", - "name": "team", - "pages": [ - { - "path": "team-detail", - "style": { - "navigationBarTitleText": "团队介绍", - "disableScroll": true - } - }, - { - "path": "homepage", - "style": { - "navigationBarTitleText": "个人主页", - "disableScroll": true - } - }, - { - "path": "friend", - "style": { - "navigationBarTitleText": "添加好友", - "disableScroll": true - } - } - ] - } - ], - "globalStyle": { - "navigationBarTextStyle": "white", - "navigationBarTitleText": "uni-app", - "navigationBarBackgroundColor": "#065bd6", - "backgroundColor": "#065bd6" - }, - "tabBar": { - "color": "#666666", - "selectedColor": "#007aff", - "backgroundColor": "#ffffff", - "borderStyle": "white", - "list": [ - { - "pagePath": "pages/home/home", - "iconPath": "static/tabbar/home.png", - "selectedIconPath": "static/tabbar/home_selected.png", - "text": "服务" - }, - { - "pagePath": "pages/message/message", - "iconPath": "static/tabbar/consult.png", - "selectedIconPath": "static/tabbar/consult_selected.png", - "text": "咨询" - }, - { - "pagePath": "pages/mine/mine", - "iconPath": "static/tabbar/mine.png", - "selectedIconPath": "static/tabbar/mine_selected.png", - "text": "我的" - } - ] - }, - "uniIdRouter": {} -} +{ + "pages": [ + { + "path": "pages/home/home", + "style": { + "navigationBarTitleText": "首页", + "navigationStyle": "custom", + "disableScroll": true + } + }, + { + "path": "pages/message/message", + "style": { + "navigationBarTitleText": "消息", + "disableScroll": true + } + }, + { + "path": "pages/message/index", + "style": { + "navigationBarTitleText": "聊天", + "enablePullDownRefresh": false, + "disableScroll": true + } + }, + { + "path": "pages/mine/mine", + "style": { + "navigationBarTitleText": "我的", + "disableScroll": true + } + }, + { + "path": "pages/mine/contact", + "style": { + "navigationBarTitleText": "联系客服", + "disableScroll": true + } + }, + { + "path": "pages/login/login", + "style": { + "navigationBarTitleText": "健康柚", + "navigationStyle": "custom", + "disableScroll": true + } + }, + { + "path": "pages/login/redirect-page", + "style": { + "navigationBarTitleText": "健康柚", + "disableScroll": true + } + }, + { + "path": "pages/login/agreement", + "style": { + "navigationBarTitleText": "健康柚", + "disableScroll": true + } + }, + { + "path": "pages/common/privacy", + "style": { + "navigationBarTitleText": "隐私政策", + "disableScroll": true + } + }, + { + "path": "pages/common/agreement", + "style": { + "navigationBarTitleText": "用户协议", + "disableScroll": true + } + }, + { + "path": "pages/web-view/web-view", + "style": { + "navigationBarTitleText": "", + "disableScroll": true + } + } + ], + "subPackages": [ + { + "root": "pages/article", + "name": "article", + "pages": [ + { + "path": "article-list", + "style": { + "navigationBarTitleText": "我的宣教", + "disableScroll": true + } + }, + { + "path": "article-cate-list", + "style": { + "navigationBarTitleText": "健康宣教", + "disableScroll": true + } + }, + { + "path": "article-detail", + "style": { + "navigationBarTitleText": "宣教文章", + "disableScroll": true + } + }, + { + "path": "send-article", + "style": { + "navigationBarTitleText": "选择宣教文章", + "disableScroll": true + } + } + ] + }, + { + "root": "pages/survey", + "name": "survey", + "pages": [ + { + "path": "survey-list", + "style": { + "navigationBarTitleText": "我的问卷", + "disableScroll": true + } + }, + { + "path": "fill", + "style": { + "navigationBarTitleText": "问卷", + "disableScroll": true + } + } + ] + }, + { + "root": "pages/rate", + "name": "rate", + "pages": [ + { + "path": "rate-list", + "style": { + "navigationBarTitleText": "服务评价", + "disableScroll": true + } + }, + { + "path": "rate-detail", + "style": { + "navigationBarTitleText": "服务评价", + "disableScroll": true + } + } + ] + }, + { + "root": "pages/experience-coupon", + "name": "experience-coupon", + "pages": [ + { + "path": "claim", + "style": { + "navigationBarTitleText": "领取体验券", + "disableScroll": true + } + }, + { + "path": "my-rights", + "style": { + "navigationBarTitleText": "我的权益", + "disableScroll": true + } + }, + { + "path": "select-rights-archive", + "style": { + "navigationBarTitleText": "选择档案", + "disableScroll": true + } + }, + { + "path": "my-coupons", + "style": { + "navigationBarTitleText": "我的体验券", + "disableScroll": true + } + }, + { + "path": "wallet", + "style": { + "navigationBarTitleText": "我的卡包", + "disableScroll": true + } + } + ] + }, + { + "root": "pages/archive", + "name": "archive", + "pages": [ + { + "path": "archive-manage", + "style": { + "navigationBarTitleText": "档案管理", + "disableScroll": true + } + }, + { + "path": "edit-archive", + "style": { + "navigationBarTitleText": "新增档案", + "disableScroll": true + } + }, + { + "path": "archive-result", + "style": { + "navigationBarTitleText": "团队服务", + "disableScroll": true + } + } + ] + }, + { + "root": "pages/health", + "name": "health", + "pages": [ + { + "path": "list", + "style": { + "navigationBarTitleText": "健康信息", + "disableScroll": true + } + }, + { + "path": "record", + "style": { + "navigationBarTitleText": "健康信息", + "disableScroll": true + } + } + ] + }, + { + "root": "pages/library", + "name": "library", + "pages": [ + { + "path": "diagnosis-list", + "style": { + "navigationBarTitleText": "选择诊断", + "disableScroll": true + } + } + ] + }, + { + "root": "pages/team", + "name": "team", + "pages": [ + { + "path": "team-detail", + "style": { + "navigationBarTitleText": "团队介绍", + "disableScroll": true + } + }, + { + "path": "homepage", + "style": { + "navigationBarTitleText": "个人主页", + "disableScroll": true + } + }, + { + "path": "friend", + "style": { + "navigationBarTitleText": "添加好友", + "disableScroll": true + } + } + ] + } + ], + "globalStyle": { + "navigationBarTextStyle": "white", + "navigationBarTitleText": "uni-app", + "navigationBarBackgroundColor": "#065bd6", + "backgroundColor": "#065bd6" + }, + "tabBar": { + "color": "#666666", + "selectedColor": "#007aff", + "backgroundColor": "#ffffff", + "borderStyle": "white", + "list": [ + { + "pagePath": "pages/home/home", + "iconPath": "static/tabbar/home.png", + "selectedIconPath": "static/tabbar/home_selected.png", + "text": "服务" + }, + { + "pagePath": "pages/message/message", + "iconPath": "static/tabbar/consult.png", + "selectedIconPath": "static/tabbar/consult_selected.png", + "text": "咨询" + }, + { + "pagePath": "pages/mine/mine", + "iconPath": "static/tabbar/mine.png", + "selectedIconPath": "static/tabbar/mine_selected.png", + "text": "我的" + } + ] + }, + "uniIdRouter": {} +} diff --git a/pages/experience-coupon/claim.vue b/pages/experience-coupon/claim.vue new file mode 100644 index 0000000..53efec1 --- /dev/null +++ b/pages/experience-coupon/claim.vue @@ -0,0 +1,358 @@ + + + + + diff --git a/pages/experience-coupon/my-coupons.vue b/pages/experience-coupon/my-coupons.vue new file mode 100644 index 0000000..ad7d013 --- /dev/null +++ b/pages/experience-coupon/my-coupons.vue @@ -0,0 +1,387 @@ + + + + + diff --git a/pages/experience-coupon/my-rights.vue b/pages/experience-coupon/my-rights.vue new file mode 100644 index 0000000..007dd81 --- /dev/null +++ b/pages/experience-coupon/my-rights.vue @@ -0,0 +1,412 @@ + + + + + \ No newline at end of file diff --git a/pages/experience-coupon/select-rights-archive.vue b/pages/experience-coupon/select-rights-archive.vue new file mode 100644 index 0000000..92e0999 --- /dev/null +++ b/pages/experience-coupon/select-rights-archive.vue @@ -0,0 +1,285 @@ + + + + + \ No newline at end of file diff --git a/pages/experience-coupon/wallet.vue b/pages/experience-coupon/wallet.vue new file mode 100644 index 0000000..b8630a6 --- /dev/null +++ b/pages/experience-coupon/wallet.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/pages/login/redirect-page.vue b/pages/login/redirect-page.vue index 6669a3c..02fe908 100644 --- a/pages/login/redirect-page.vue +++ b/pages/login/redirect-page.vue @@ -147,6 +147,18 @@ onLoad((options) => { if (options.q) { opts.value = JSON.stringify(options) changeTeam(parseInviteOptions(options)); + } else if (options.type === 'experienceCoupon' && options.issueId && options.corpId) { + const params = [ + `corpId=${encodeURIComponent(options.corpId || "")}`, + `issueId=${encodeURIComponent(options.issueId || "")}`, + options.memberId ? `memberId=${encodeURIComponent(options.memberId)}` : "", + options.couponId ? `couponId=${encodeURIComponent(options.couponId)}` : "", + options.unionid ? `unionid=${encodeURIComponent(options.unionid)}` : "", + options.externalUserId ? `externalUserId=${encodeURIComponent(options.externalUserId)}` : "", + ].filter(Boolean).join("&"); + uni.redirectTo({ + url: `/pages/experience-coupon/claim?${params}`, + }); } else if (options.type === 'archive' || (options.teamId && options.corpId)) { changeTeam(options); } diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue index 2f2f073..ea0adc6 100644 --- a/pages/mine/mine.vue +++ b/pages/mine/mine.vue @@ -1,9 +1,7 @@ + \ No newline at end of file diff --git a/routes/index.js b/routes/index.js index daaef26..ec4baad 100644 --- a/routes/index.js +++ b/routes/index.js @@ -12,6 +12,26 @@ export default [ path: 'pages/login/redirect-page', meta: { title: '柚健康' }, }, + { + path: 'pages/experience-coupon/claim', + meta: { title: '领取体验券', login: true } + }, + { + path: 'pages/experience-coupon/my-rights', + meta: { title: '我的权益', login: true } + }, + { + path: 'pages/experience-coupon/select-rights-archive', + meta: { title: '选择档案', login: true } + }, + { + path: 'pages/experience-coupon/my-coupons', + meta: { title: '我的体验券', login: true } + }, + { + path: 'pages/experience-coupon/wallet', + meta: { title: '我的卡包', login: true } + }, { path: 'pages/archive/archive-manage', meta: { title: '档案管理', login: true } diff --git a/utils/api.js b/utils/api.js index a38090c..4e2ad82 100644 --- a/utils/api.js +++ b/utils/api.js @@ -50,9 +50,15 @@ const urlsConfig = { addMedicalRecord: 'addMedicalRecord', authCustomerToTeam: 'authCustomerToTeam', // 授权客户到团队 bindMiniAppArchive: "bindMiniAppArchive", + claimExperienceCoupon: "claimExperienceCoupon", + voidExperienceCouponIssue: "voidExperienceCouponIssue", getCustomerByCustomerId: 'getCustomerByCustomerId', + getCustomerExperienceCoupons: "getCustomerExperienceCoupons", + getExperienceCouponIssueDetail: "getExperienceCouponIssueDetail", + getExperienceCouponIssueList: "getExperienceCouponIssueList", getMiniAppCustomers: 'getMiniAppCustomers', getTeamCustomers: 'getTeamCustomers', + getTreatmentRecord: "getTreatmentRecord", getUnbindMiniAppCustomers: 'getUnbindMiniAppCustomers', getCustomerMedicalRecord: 'getCustomerMedicalRecord', getMedicalRecordById: 'getMedicalRecordById',