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 @@
+
+
+
+ {{ tip }}
+ 加载中...
+
+
+
+
+
+
+
+ {{ issue?.activityName || "体验券" }}
+ {{ projectText }}
+ {{ validText }}
+
+
+ {{ claiming ? "领取中..." : "接受" }}
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+ 加载中...
+ 暂无待领取体验券
+
+
+
+ 体验券
+
+ {{ item.activityName || "体验券" }}
+ {{ item.projectText }}
+ {{ item.validText }}
+ 点击查看海报领取
+
+
+
+
+
+
+
+
+
+
+ {{ current?.activityName || "体验券" }}
+ {{ current?.projectText }}
+
+
+ {{ claiming ? "领取中..." : "接受" }}
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+ {{ customerName || "未选择档案" }}
+ 所属机构:{{ corpName || "-" }}
+
+
+
+
+
+ 以下为“{{ customerName || "-" }}”的所有剩余权益
+
+
+ 加载中...
+ 暂无权益
+
+
+
+ {{ group.badge }}
+ {{ group.title }}
+
+
+ 项目名称
+ 总次数
+ 剩余次数
+ 有效期至
+
+
+ {{ row.projectName }}
+ {{ row.usageCount }}
+ {{ row.restUsageCount }}
+ {{ row.validText }}
+
+
+
+
+
+
+
+
+
+
\ 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 @@
+
+
+
+ 加载中...
+ 暂无可用档案
+
+
+
+
+ {{ item.name || "未命名" }}
+ {{ item.relationship }}
+
+ 当前
+
+ {{ item.metaText }}
+ 证件号:{{ item.idCardText }}
+ {{ item.corpName }}
+
+
+
+
+
+
+
+
+
\ 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 @@
-
-
@@ -14,7 +12,27 @@
-
+
+
+
+
+
+ 我的权益
+
+
+
+
+
+ 我的体验券
+
+
+
+
+
+ 治疗记录
+
+
+
-
+
\ 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',