Browse Source

登录拦截调整

dev
kola-web 4 weeks ago
parent
commit
fed56d9a43
  1. 17
      src/app.ts
  2. 110
      src/components/customTable/index.wxml
  3. 24
      src/gift/pages/cutaneous/index.wxml
  4. 2
      src/gift/pages/cutaneousDetail/index.wxml
  5. 2
      src/gift/pages/cutaneousVideo/index.wxml
  6. 14
      src/gift/pages/dtpDurg/index.wxml
  7. 4
      src/gift/pages/giftDetail/index.ts
  8. 2
      src/gift/pages/giftList/index.ts
  9. 10
      src/gift/pages/giftList/index.wxml
  10. 470
      src/gift/pages/myHealthRecord/index.ts
  11. 34
      src/gift/pages/myHealthRecord/index.wxml
  12. 574
      src/gift/pages/myHealthRecordChart/index.ts
  13. 4
      src/gift/pages/orderDetail/index.wxml
  14. 2
      src/gift/pages/orderEnd/index.wxml
  15. 4
      src/gift/pages/priceDetail/index.wxml
  16. 8
      src/gift/pages/scoreRule/index.wxml
  17. 2
      src/gift/pages/siteEdit/index.wxml
  18. 2
      src/gift/pages/siteList/index.wxml
  19. 12
      src/gift/pages/vipCert/index.ts
  20. 4
      src/gift/pages/vipCert/index.wxml
  21. 2
      src/gift/pages/vipPending/index.ts
  22. 2
      src/gift/pages/vipPending/index.wxml
  23. 2
      src/gift/pages/vipReject/index.ts
  24. 8
      src/gift/pages/vipReject/index.wxml
  25. 2
      src/gift/pages/vipStartPending/index.ts
  26. 4
      src/gift/pages/vipStartPending/index.wxml
  27. 31
      src/pages/login/index.ts
  28. 10
      src/pages/my/index.ts
  29. 2
      src/patient/pages/adlResult/index.ts
  30. 2
      src/patient/pages/adlTest/index.wxml
  31. 2
      src/patient/pages/doctor/index.wxml
  32. 8
      src/patient/pages/index/index.ts
  33. 4
      src/patient/pages/index/index.wxml
  34. 8
      src/patient/pages/my/index.ts
  35. 6
      src/patient/pages/my/index.wxml
  36. 2
      src/patient/pages/referral/index.ts
  37. 2
      src/patient/pages/uploadCert/index.ts

17
src/app.ts

@ -160,12 +160,19 @@ App<IAppOption>({
} }
if (isLogin !== 1) { if (isLogin !== 1) {
if (type.includes(0) && loginType === 0) { if (type.includes(0) && [0, 1].includes(loginType)) {
return true; return true;
} }
wx.reLaunch({ if (loginType === 1) {
url: '/patient/pages/login/index', wx.reLaunch({
}); url: '/patient/pages/login/index',
});
}
if (loginType === 2) {
wx.reLaunch({
url: '/pages/login/index',
});
}
return false; return false;
} }
@ -183,7 +190,7 @@ App<IAppOption>({
if (!type.includes(loginType)) { if (!type.includes(loginType)) {
const typePageUrl = { const typePageUrl = {
1: '/patient/pages/index/index', 1: '/patient/pages/index/index',
2: '/pages/index/index', 2: '/pages/home/index',
}[loginType as 1 | 2]; }[loginType as 1 | 2];
wx.reLaunch({ wx.reLaunch({
url: typePageUrl, url: typePageUrl,

110
src/components/customTable/index.wxml

@ -1,55 +1,55 @@
<view id="canvas-bill-body-mp" class="canvas-box" style="width: 750rpx"> <view id="canvas-bill-body-mp" class="canvas-box" style="width: 750rpx">
<view class="canvas-body"> <view class="canvas-body">
<view class="detail draw_canvas" data-type="text"> <view class="detail draw_canvas" data-type="text">
<view class="d-header draw_canvas" data-type="text"> <view class="d-header draw_canvas" data-type="text">
<view class="none draw_canvas" data-type="text"></view> <view class="none draw_canvas" data-type="text"></view>
<view <view
class="bar draw_canvas" class="bar draw_canvas"
style="background: url({{imageUrl}}/1/adl-scurt.png?t={{Timestamp}}) no-repeat center / 100% 100% ;" style="background: url({{imageUrl}}za-images/1/adl-scurt.png?t={{Timestamp}}) no-repeat center / 100% 100% ;"
data-type="background-image" data-type="background-image"
> >
<view class="num-normal draw_canvas" data-type="text" data-text="0分">0分</view> <view class="num-normal draw_canvas" data-type="text" data-text="0分">0分</view>
<view class="num draw_canvas" data-type="text" data-text="1分">1分</view> <view class="num draw_canvas" data-type="text" data-text="1分">1分</view>
<view class="num draw_canvas" data-type="text" data-text="2分">2分</view> <view class="num draw_canvas" data-type="text" data-text="2分">2分</view>
<view class="num draw_canvas" data-type="text" data-text="3分">3分</view> <view class="num draw_canvas" data-type="text" data-text="3分">3分</view>
</view> </view>
</view> </view>
<view class="d-body draw_canvas" data-type="text"> <view class="d-body draw_canvas" data-type="text">
<view class="d-aside draw_canvas" data-type="text"> <view class="d-aside draw_canvas" data-type="text">
<view class="da-item da-item1 draw_canvas" data-type="text" data-text="延髓">延髓</view> <view class="da-item da-item1 draw_canvas" data-type="text" data-text="延髓">延髓</view>
<view class="da-item da-item2 draw_canvas" data-type="text" data-text="呼吸">呼吸</view> <view class="da-item da-item2 draw_canvas" data-type="text" data-text="呼吸">呼吸</view>
<view class="da-item da-item3 draw_canvas" data-type="text" data-text="四肢">四肢</view> <view class="da-item da-item3 draw_canvas" data-type="text" data-text="四肢">四肢</view>
<view class="da-item da-item4 draw_canvas" data-type="text" data-text="眼肌">眼肌</view> <view class="da-item da-item4 draw_canvas" data-type="text" data-text="眼肌">眼肌</view>
</view> </view>
<view class="d-container draw_canvas" data-type="text"> <view class="d-container draw_canvas" data-type="text">
<view class="dc-row draw_canvas" wx:for="{{tableData}}" wx:key="index" data-type="text"> <view class="dc-row draw_canvas" wx:for="{{tableData}}" wx:key="index" data-type="text">
<view class="dc-title draw_canvas" data-type="text" data-text="{{item.title}}">{{item.title}}</view> <view class="dc-title draw_canvas" data-type="text" data-text="{{item.title}}">{{item.title}}</view>
<block wx:for="{{item.list}}" wx:for-item="lItem" wx:for-index="lIndex" wx:key="lIndex"> <block wx:for="{{item.list}}" wx:for-item="lItem" wx:for-index="lIndex" wx:key="lIndex">
<view <view
class="{{lIndex==0 ? 'dc-sub-title' :'dc-col'}} {{params[item.key] == lIndex && 'active'}} draw_canvas" class="{{lIndex==0 ? 'dc-sub-title' :'dc-col'}} {{params[item.key] == lIndex && 'active'}} draw_canvas"
data-type="text" data-type="text"
data-text="{{lItem.title}}" data-text="{{lItem.title}}"
> >
{{lItem.title}} {{lItem.title}}
</view> </view>
</block> </block>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<canvas <canvas
canvas-id="canvas1" canvas-id="canvas1"
class="canvas-bill" class="canvas-bill"
style="height: {{ height }}rpx; width: {{ width }}rpx;transform: scale({{scale}})" style="height: {{ height }}rpx; width: {{ width }}rpx;transform: scale({{scale}})"
></canvas> ></canvas>
<image <image
wx:if="{{imgUrl && false}}" wx:if="{{imgUrl && false}}"
src="{{imgUrl}}" src="{{imgUrl}}"
mode="aspectFit" mode="aspectFit"
style="height: {{ height }}rpx; width: {{ width }}rpx;" style="height: {{ height }}rpx; width: {{ width }}rpx;"
></image> ></image>
<!-- show-menu-by-longpress --> <!-- show-menu-by-longpress -->

24
src/gift/pages/cutaneous/index.wxml

@ -1,18 +1,18 @@
<view class="page"> <view class="page">
<view <view
class="page1" class="page1"
style="background: url({{imageUrl}}/cutaneous/home1.png?t={{Timestamp}}) no-repeat top center/100%;" style="background: url({{imageUrl}}za-images//cutaneous/home1.png?t={{Timestamp}}) no-repeat top center/100%;"
></view> ></view>
<view <view
class="page2" class="page2"
style="background: url({{imageUrl}}/cutaneous/home2.png?t={{Timestamp}}) no-repeat top center/100%;" style="background: url({{imageUrl}}za-images//cutaneous/home2.png?t={{Timestamp}}) no-repeat top center/100%;"
bind:tap="handleDetail" bind:tap="handleDetail"
data-id="2" data-id="2"
> >
<image <image
class="mg-video" class="mg-video"
src="{{imageUrl}}/cutaneous/video1-1.png?t={{Timestamp}}" src="{{imageUrl}}za-images//cutaneous/video1-1.png?t={{Timestamp}}"
data-key="mg" data-key="mg"
data-index="0" data-index="0"
catch:tap="handleVideo" catch:tap="handleVideo"
@ -20,36 +20,36 @@
</view> </view>
<view <view
class="page3" class="page3"
style="background: url({{imageUrl}}/cutaneous/home3.png?t={{Timestamp}}) no-repeat top center/100%;" style="background: url({{imageUrl}}za-images//cutaneous/home3.png?t={{Timestamp}}) no-repeat top center/100%;"
bind:tap="handleDetail" bind:tap="handleDetail"
data-id="3" data-id="3"
> >
<image class="cidp-mask" src="{{imageUrl}}/cutaneous/cidp-mask.png?t={{Timestamp}}"></image> <image class="cidp-mask" src="{{imageUrl}}za-images//cutaneous/cidp-mask.png?t={{Timestamp}}"></image>
<view class="cidp-list"> <view class="cidp-list">
<image <image
class="cidp-item" class="cidp-item"
src="{{imageUrl}}/cutaneous/video2-1.png?t={{Timestamp}}" src="{{imageUrl}}za-images//cutaneous/video2-1.png?t={{Timestamp}}"
data-key="cidp" data-key="cidp"
data-index="0" data-index="0"
catch:tap="handleVideo" catch:tap="handleVideo"
></image> ></image>
<image <image
class="cidp-item" class="cidp-item"
src="{{imageUrl}}/cutaneous/video2-2.png?t={{Timestamp}}" src="{{imageUrl}}za-images//cutaneous/video2-2.png?t={{Timestamp}}"
data-key="cidp" data-key="cidp"
data-index="1" data-index="1"
catch:tap="handleVideo" catch:tap="handleVideo"
></image> ></image>
<image <image
class="cidp-item" class="cidp-item"
src="{{imageUrl}}/cutaneous/video2-3.png?t={{Timestamp}}" src="{{imageUrl}}za-images//cutaneous/video2-3.png?t={{Timestamp}}"
data-key="cidp" data-key="cidp"
data-index="2" data-index="2"
catch:tap="handleVideo" catch:tap="handleVideo"
></image> ></image>
<image <image
class="cidp-item" class="cidp-item"
src="{{imageUrl}}/cutaneous/video2-4.png?t={{Timestamp}}" src="{{imageUrl}}za-images//cutaneous/video2-4.png?t={{Timestamp}}"
data-key="cidp" data-key="cidp"
data-index="3" data-index="3"
catch:tap="handleVideo" catch:tap="handleVideo"
@ -58,17 +58,17 @@
</view> </view>
<view <view
class="page4" class="page4"
style="background: url({{imageUrl}}/cutaneous/home4.png?t={{Timestamp}}) no-repeat top center/100%;" style="background: url({{imageUrl}}za-images//cutaneous/home4.png?t={{Timestamp}}) no-repeat top center/100%;"
bind:tap="handleDetail" bind:tap="handleDetail"
data-id="4" data-id="4"
></view> ></view>
<view <view
class="page5" class="page5"
style="background: url({{imageUrl}}/cutaneous/home5.png?t={{Timestamp}}) no-repeat top center/100%;" style="background: url({{imageUrl}}za-images//cutaneous/home5.png?t={{Timestamp}}) no-repeat top center/100%;"
bind:tap="handleDetail" bind:tap="handleDetail"
data-id="5" data-id="5"
></view> ></view>
<image class="page6" bind:tap="handleVideoDetail" src="{{imageUrl}}/cutaneous/home6.png?t={{Timestamp}}"></image> <image class="page6" bind:tap="handleVideoDetail" src="{{imageUrl}}za-images//cutaneous/home6.png?t={{Timestamp}}"></image>
</view> </view>
<video <video

2
src/gift/pages/cutaneousDetail/index.wxml

@ -4,6 +4,6 @@
mode="widthFix" mode="widthFix"
wx:for="{{curentList}}" wx:for="{{curentList}}"
wx:key="index" wx:key="index"
src="{{imageUrl}}/cutaneous/{{item}}.png?t={{Timestamp}}" src="{{imageUrl}}za-images//cutaneous/{{item}}.png?t={{Timestamp}}"
></image> ></image>
</view> </view>

2
src/gift/pages/cutaneousVideo/index.wxml

@ -1,6 +1,6 @@
<view <view
class="page" class="page"
style="background: url({{imageUrl}}cutaneous/video-bg.png?t={{Timestamp}}) no-repeat 0 60rpx/100% 648rpx;" style="background: url({{imageUrl}}za-images/cutaneous/video-bg.png?t={{Timestamp}}) no-repeat 0 60rpx/100% 648rpx;"
> >
<view class="container"> <view class="container">
<view class="content"> <view class="content">

14
src/gift/pages/dtpDurg/index.wxml

@ -1,16 +1,16 @@
<view class="page"> <view class="page">
<image wx:if="{{detail.ImgUrl}}" class="banner" mode="widthFix" src="{{detail.ImgUrl}}"></image> <image wx:if="{{detail.ImgUrl}}" class="banner" mode="widthFix" src="{{detail.ImgUrl}}"></image>
<image wx:else class="banner" mode="widthFix" src="{{imageUrl}}/nrdl/dtp-durg.png"></image> <image wx:else class="banner" mode="widthFix" src="{{imageUrl}}za-images//nrdl/dtp-durg.png"></image>
<view class="container"> <view class="container">
<view class="title">{{detail.Name}}</view> <view class="title">{{detail.Name}}</view>
<view class="tags"> <view class="tags">
<view class="tag" wx:if="{{detail.IsOwnInfusionCenter==1}}"> <view class="tag" wx:if="{{detail.IsOwnInfusionCenter==1}}">
<image class="icon" mode="widthFix" src="{{imageUrl}}/nrdl/inject.png"></image> <image class="icon" mode="widthFix" src="{{imageUrl}}za-images//nrdl/inject.png"></image>
<!-- {{detail.OwnInfusionCenterName}} --> <!-- {{detail.OwnInfusionCenterName}} -->
自有输注中心 自有输注中心
</view> </view>
<view class="tag" wx:if="{{detail.IsCooperationInfusionCenter==1}}"> <view class="tag" wx:if="{{detail.IsCooperationInfusionCenter==1}}">
<image class="icon" mode="widthFix" src="{{imageUrl}}/nrdl/cooperate.png"></image> <image class="icon" mode="widthFix" src="{{imageUrl}}za-images//nrdl/cooperate.png"></image>
<!-- {{detail.CooperationInfusionCenterName}} --> <!-- {{detail.CooperationInfusionCenterName}} -->
合作输注中心 合作输注中心
</view> </view>
@ -23,13 +23,13 @@
<view class="options"> <view class="options">
<view class="option" bind:tap="handleSite" wx:if="{{detail.Address}}"> <view class="option" bind:tap="handleSite" wx:if="{{detail.Address}}">
<view class="phone"> <view class="phone">
<image class="phone-img" src="{{imageUrl}}/nrdl/site.png"></image> <image class="phone-img" src="{{imageUrl}}za-images//nrdl/site.png"></image>
</view> </view>
<view class="name">地址</view> <view class="name">地址</view>
</view> </view>
<view class="option" bind:tap="handlePhone"> <view class="option" bind:tap="handlePhone">
<view class="phone"> <view class="phone">
<image class="phone-img" src="{{imageUrl}}/nrdl/phone.png"></image> <image class="phone-img" src="{{imageUrl}}za-images//nrdl/phone.png"></image>
</view> </view>
<view class="name">电话</view> <view class="name">电话</view>
</view> </view>
@ -39,7 +39,7 @@
<view class="c-title"> <view class="c-title">
<image <image
class="c-icon" class="c-icon"
src="{{imageUrl}}/nrdl/cooperate-1.png" src="{{imageUrl}}za-images//nrdl/cooperate-1.png"
style="width: 32rpx; height: 30rpx; margin-right: 18rpx" style="width: 32rpx; height: 30rpx; margin-right: 18rpx"
></image> ></image>
自有输注中心 自有输注中心
@ -48,7 +48,7 @@
</view> </view>
<view class="card" wx:if="{{detail.IsCooperationInfusionCenter==1}}"> <view class="card" wx:if="{{detail.IsCooperationInfusionCenter==1}}">
<view class="c-title"> <view class="c-title">
<image class="c-icon" src="{{imageUrl}}/nrdl/inject-1.png" style="width: 36rpx; height: 36rpx"></image> <image class="c-icon" src="{{imageUrl}}za-images//nrdl/inject-1.png" style="width: 36rpx; height: 36rpx"></image>
合作输注中心 合作输注中心
</view> </view>
<view class="c-content">{{detail.CooperationInfusionCenterName}}</view> <view class="c-content">{{detail.CooperationInfusionCenterName}}</view>

4
src/gift/pages/giftDetail/index.ts

@ -20,8 +20,8 @@ Page({
this.setData({ this.setData({
id: options.id, id: options.id,
toastParams: { toastParams: {
doc: `<p style="text-indent: 24pt; line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">为让用户更好的享受再鼎gMG给力加油站的服务,gMG给力加油站平台向用户提供了能量兑换服务,并提供了丰富的礼品,平台注册用户可使用有效的能量兑换礼品。</span></p><p style="text-indent: 24pt; line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">gMG给力加油站的礼品库将提供:</span></p><p style="text-indent: 24pt; line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 微软雅黑;">1) </span><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">查看用户在能量商城选择兑换的商品信息;</span></p><p style="text-indent: 24pt; line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 微软雅黑;">2) </span><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">确认兑换商品的订单信息;</span></p><p style="text-indent: 24pt; line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 微软雅黑;">3) </span><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">实施兑换商品的物流配送服务。</span></p><p style="text-indent: 24pt; line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">基于以上服务内容,我们在此特别声明:</span></p><p style="text-indent: 24pt; line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">gMG给力加油站非常重视用户个人信息保护,我们制定了详细的<a style="color:#00A4ED" href="/pages/privacyAgreement/index?page=/gift/pages/giftDetail/index&id=${options.id}">《知情同意书》</a></span><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">,我们将按照公示的政策及相关法律法规的要求,对您的个人信息予以保护。为了完整的向您提供能量的商品兑换服务,gMG给力加油站将需要您提供用户真实姓名、手机号、地址信息,以便完成您所兑换商品的物流配送。其中,当用户准备对兑换商品进行结算时,平台会生成兑换该商品的订单,同时该订单中会载明订单号、所兑换的商品或服务信息、应支付的能量值。以上所有信息构成用户的“订单信息”,平台将使用订单信息来进行用户的身份核验、确定交易、支付结算、完成配送。</span></p><p style="text-indent: 24pt; line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">用户点击本协议的"同意"按钮即视为完全接受以上声明条款,在点击之前请用户再次确认已知悉并完全理解声明的全部内容。</span></p>`, doc: `<p style="text-indent: 24pt; line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">为让用户更好的享受再鼎gMG给力加油站的服务,gMG给力加油站平台向用户提供了能量兑换服务,并提供了丰富的礼品,平台注册用户可使用有效的能量兑换礼品。</span></p><p style="text-indent: 24pt; line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">gMG给力加油站的礼品库将提供:</span></p><p style="text-indent: 24pt; line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 微软雅黑;">1) </span><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">查看用户在能量商城选择兑换的商品信息;</span></p><p style="text-indent: 24pt; line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 微软雅黑;">2) </span><span style="color: rgb(89, 89, 8 ... (very long line, trimmed to 1000 chars)
// doc:` <p style="line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">为让用户更好的享受再鼎gMG给力加油站的服务,gMG给力加油站平台向用户提供了能量兑换服务,并提供了丰富的礼品,平台注册用户可使用有效的能量兑换礼品。</span></p><p style="line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">gMG给力加油站的礼品库将提供:</span></p><p style="line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 微软雅黑;">1) </span><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">查看用户在能量商城选择兑换的商品信息;</span></p><p style="line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 微软雅黑;">2) </span><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">确认兑换商品的订单信息;</span></p><p style="line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 微软雅黑;">3) </span><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">实施兑换商品的物流配送服务。</span></p><p style="line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">基于以上服务内容,我们在此特别声明:</span></p><p style="line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">gMG给力加油站非常重视用户个人信息保护,我们制定了详细的<a style="color:#00A4ED" href="/pages/privacyAgreement/index?page=/gift/pages/giftDetail/index&id=${options.id}">《知情同意书》</a></span><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">,我们将按照公示的政策及相关法律法规的要求,对您的个人信息予以保护。为了完整的向您提供能量的商品兑换服务,gMG给力加油站将需要您提供用户真实姓名、手机号、地址信息,以便完成您所兑换商品的物流配送。其中,当用户准备对兑换商品进行结算时,平台会生成兑换该商品的订单,同时该订单中会载明订单号、所兑换的商品或服务信息、应支付的能量值。以上所有信息构成用户的“订单信息”,平台将使用订单信息来进行用户的身份核验、确定交易、支付结算、完成配送。</span></p><p style="line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">用户点击本协议的"同意"按钮即视为完全接受以上声明条款,在点击之前请用户再次确认已知悉并完全理解声明的全部内容。</span></p>` // doc:` <p style="line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">为让用户更好的享受再鼎gMG给力加油站的服务,gMG给力加油站平台向用户提供了能量兑换服务,并提供了丰富的礼品,平台注册用户可使用有效的能量兑换礼品。</span></p><p style="line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">gMG给力加油站的礼品库将提供:</span></p><p style="line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 微软雅黑;">1) </span><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">查看用户在能量商城选择兑换的商品信息;</span></p><p style="line-height: 1.5;"><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 微软雅黑;">2) </span><span style="color: rgb(89, 89, 89); font-size: 14px; font-family: 宋体;">确认兑换商品的订单信 ... (very long line, trimmed to 1000 chars)
}, },
}); });
app.waitLogin().then(() => { app.waitLogin().then(() => {

2
src/gift/pages/giftList/index.ts

@ -102,7 +102,7 @@ Page({
}, },
handleBack() { handleBack() {
wx.reLaunch({ wx.reLaunch({
url: "/pages/my/index", url: "/patient/pages/my/index",
}); });
}, },
onReachBottom() { onReachBottom() {

10
src/gift/pages/giftList/index.wxml

@ -1,9 +1,9 @@
<view class="page"> <view class="page">
<navBar color="#222222" background="{{background}}" fixed title="礼品中心" back bind:back="handleBack"></navBar> <navBar color="#222222" background="{{background}}" fixed title="礼品中心" back bind:back="handleBack"></navBar>
<image class="bg" src="{{imageUrl}}1/my-bg.png?t={{Timestamp}}"></image> <image class="bg" src="{{imageUrl}}za-images/1/my-bg.png?t={{Timestamp}}"></image>
<view class="page-container" style="padding-top:{{bottom+26}}px"> <view class="page-container" style="padding-top:{{bottom+26}}px">
<view class="notice" wx:if="{{selfScore.expire.expireStatus==1}}"> <view class="notice" wx:if="{{selfScore.expire.expireStatus==1}}">
<image class="icon" src="{{imageUrl}}2/notice.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}za-images/2/notice.png?t={{Timestamp}}"></image>
你有{{selfScore.expire.expireScore}}能量将于7月1日过期 你有{{selfScore.expire.expireScore}}能量将于7月1日过期
</view> </view>
<view class="banner"> <view class="banner">
@ -17,18 +17,18 @@
</view> </view>
<view class="banner-footer"> <view class="banner-footer">
<view class="option" bind:tap="handlePirceDetail"> <view class="option" bind:tap="handlePirceDetail">
<image class="icon" style="width:52rpx;height: 50rpx;" src="{{imageUrl}}2/money.png?t={{Timestamp}}"></image> <image class="icon" style="width:52rpx;height: 50rpx;" src="{{imageUrl}}za-images/2/money.png?t={{Timestamp}}"></image>
能量明细 能量明细
</view> </view>
<view class="ver-line"></view> <view class="ver-line"></view>
<view class="option" bind:tap="handleMyGift"> <view class="option" bind:tap="handleMyGift">
<image class="icon" style="width:48rpx;height: 54rpx;" src="{{imageUrl}}2/gift.png?t={{Timestamp}}"></image> <image class="icon" style="width:48rpx;height: 54rpx;" src="{{imageUrl}}za-images/2/gift.png?t={{Timestamp}}"></image>
我的礼品 我的礼品
</view> </view>
</view> </view>
</view> </view>
<view class="list"> <view class="list">
<image class="list-title" src="{{imageUrl}}2/gift-list-title.png?t={{Timestamp}}"></image> <image class="list-title" src="{{imageUrl}}za-images/2/gift-list-title.png?t={{Timestamp}}"></image>
<view class="list-cate"> <view class="list-cate">
<view class="cate {{!cateId && 'active'}}" data-id="" bind:tap="handleCate">全部</view> <view class="cate {{!cateId && 'active'}}" data-id="" bind:tap="handleCate">全部</view>
<view class="cate {{cateId == item.cateId && 'active'}}" wx:for="{{cateList}}" wx:key="cateId" data-id="{{item.cateId}}" bind:tap="handleCate">{{item.cateName}}</view> <view class="cate {{cateId == item.cateId && 'active'}}" wx:for="{{cateList}}" wx:key="cateId" data-id="{{item.cateId}}" bind:tap="handleCate">{{item.cateName}}</view>

470
src/gift/pages/myHealthRecord/index.ts

@ -1,8 +1,8 @@
import dayjs from 'dayjs' import dayjs from 'dayjs';
const app = getApp<IAppOption>() const app = getApp<IAppOption>();
const licia = require('miniprogram-licia') const licia = require('miniprogram-licia');
let echarts: any = null let echarts: any = null;
Page({ Page({
data: { data: {
@ -109,39 +109,39 @@ Page({
app.zdGetTheme().then((res) => { app.zdGetTheme().then((res) => {
this.setData({ this.setData({
theme: res, theme: res,
}) });
}) });
}, },
async onShow() { async onShow() {
echarts = await require.async('../../compontnts/echart/echarts.js') echarts = await require.async('../../compontnts/echart/echarts.js');
this.ecDataTrendComponent = this.selectComponent('#mychart-dom-bar') this.ecDataTrendComponent = this.selectComponent('#mychart-dom-bar');
this.ecDataHormoneComponent = this.selectComponent('#mychart-hormone') this.ecDataHormoneComponent = this.selectComponent('#mychart-hormone');
this.setData({ this.setData({
calendarDate: dayjs().format('YYYY-MM'), calendarDate: dayjs().format('YYYY-MM'),
}) });
this.handleChangeType() this.handleChangeType();
app.waitLogin().then(() => { app.waitLogin().then(() => {
// 强制疾病患者以上身份 // 强制疾病患者以上身份
app.zdPermissionVerification(3, 0, `/gift/pages/myHealthRecord/index`).then(() => { app.zdPermissionVerification(3, 0, `/gift/pages/myHealthRecord/index`).then(() => {
app.mpBehavior({ PageName: 'PG_PATIENTHEALTHRECORD' }) app.zdMpBehavior({ PageName: 'PG_PATIENTHEALTHRECORD' });
app.getZdUserInfo(this, true, (res) => { app.getZdUserInfo(this, true, (res) => {
if (res.UserType != 4) { if (res.UserType != 4) {
this.setData({ this.setData({
tab: 2, tab: 2,
}) });
} }
this.getCale() this.getCale();
this.handleTabCallBack() this.handleTabCallBack();
this.getMedicationAlertAdl() this.getMedicationAlertAdl();
}) });
}) });
}) });
}, },
handleChangeInput() { handleChangeInput() {
if (Number(this.data.Num) > 100) { if (Number(this.data.Num) > 100) {
this.setData({ this.setData({
Num: 100, Num: 100,
}) });
} }
}, },
getCale() { getCale() {
@ -152,44 +152,44 @@ Page({
Month: this.data.calendarDate, Month: this.data.calendarDate,
}, },
}).then((res) => { }).then((res) => {
this.setCalendarTodos(res) this.setCalendarTodos(res);
}) });
}, },
setCalendarTodos({ adl = [], medication = [] }: { adl: any[]; medication: string[] }) { setCalendarTodos({ adl = [], medication = [] }: { adl: any[]; medication: string[] }) {
const theme = this.data.theme const theme = this.data.theme;
const calendar = this.selectComponent('#calendar').calendar const calendar = this.selectComponent('#calendar').calendar;
const adlDate = adl.map((item) => item.Date) const adlDate = adl.map((item) => item.Date);
const dates: any[] = [] const dates: any[] = [];
const intersectDate = licia.intersect(adlDate, medication) const intersectDate = licia.intersect(adlDate, medication);
const filterAdlDate = adl.filter((item) => !intersectDate.includes(item.Date)) const filterAdlDate = adl.filter((item) => !intersectDate.includes(item.Date));
const filterMedication = medication.filter((item) => !intersectDate.includes(item)) const filterMedication = medication.filter((item) => !intersectDate.includes(item));
const intersectAdlDate = adl.filter((item) => intersectDate.includes(item.Date)) const intersectAdlDate = adl.filter((item) => intersectDate.includes(item.Date));
const doc = theme === 'DRUG' ? 'doc' : ' ' const doc = theme === 'DRUG' ? 'doc' : ' ';
filterMedication.forEach((Date: string) => { filterMedication.forEach((Date: string) => {
dates.push({ dates.push({
year: Date.split('-')[0], year: Date.split('-')[0],
month: Date.split('-')[1], month: Date.split('-')[1],
date: Date.split('-')[2], date: Date.split('-')[2],
class: doc, class: doc,
}) });
}) });
intersectAdlDate.forEach(({ Date, TotalScore, LastTotalScore }) => { intersectAdlDate.forEach(({ Date, TotalScore, LastTotalScore }) => {
dates.push({ dates.push({
year: Date.split('-')[0], year: Date.split('-')[0],
month: Date.split('-')[1], month: Date.split('-')[1],
date: Date.split('-')[2], date: Date.split('-')[2],
class: TotalScore > 5 || TotalScore - LastTotalScore >= 2 ? `error ${doc}` : `primary ${doc}`, class: TotalScore > 5 || TotalScore - LastTotalScore >= 2 ? `error ${doc}` : `primary ${doc}`,
}) });
}) });
filterAdlDate.forEach(({ Date, TotalScore, LastTotalScore }) => { filterAdlDate.forEach(({ Date, TotalScore, LastTotalScore }) => {
dates.push({ dates.push({
year: Date.split('-')[0], year: Date.split('-')[0],
month: Date.split('-')[1], month: Date.split('-')[1],
date: Date.split('-')[2], date: Date.split('-')[2],
class: TotalScore > 5 || TotalScore - LastTotalScore >= 2 ? 'error' : 'primary', class: TotalScore > 5 || TotalScore - LastTotalScore >= 2 ? 'error' : 'primary',
}) });
}) });
calendar.setDateStyle(dates) calendar.setDateStyle(dates);
}, },
getMedicationAlertAdl() { getMedicationAlertAdl() {
wx.ajax({ wx.ajax({
@ -199,47 +199,47 @@ Page({
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
alertAdl: res, alertAdl: res,
}) });
}) });
}, },
handleWhenChangeMonth(e: { detail: { next: any } }) { handleWhenChangeMonth(e: { detail: { next: any } }) {
const current = e.detail.next const current = e.detail.next;
this.setData({ this.setData({
calendarDate: dayjs(`${current.year}-${current.month}`).format('YYYY-MM'), calendarDate: dayjs(`${current.year}-${current.month}`).format('YYYY-MM'),
}) });
this.getCale() this.getCale();
}, },
handleChangeType(e?: WechatMiniprogram.CustomEvent) { handleChangeType(e?: WechatMiniprogram.CustomEvent) {
let type = '' let type = '';
let callback = true let callback = true;
if (e) { if (e) {
type = e.currentTarget.dataset.type type = e.currentTarget.dataset.type;
} else { } else {
type = this.data.Type type = this.data.Type;
callback = false callback = false;
} }
let EndMonth = '' let EndMonth = '';
let BeginMonth = '' let BeginMonth = '';
if (type == '1') { if (type == '1') {
if (e) { if (e) {
app.mpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDDAILYCURVE' }) app.zdMpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDDAILYCURVE' });
} }
EndMonth = dayjs().format('YYYY-MM-DD') EndMonth = dayjs().format('YYYY-MM-DD');
BeginMonth = dayjs().subtract(6, 'd').format('YYYY-MM-DD') BeginMonth = dayjs().subtract(6, 'd').format('YYYY-MM-DD');
} else if (type == '2') { } else if (type == '2') {
if (e) { if (e) {
app.mpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDMONTHLYCURVE' }) app.zdMpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDMONTHLYCURVE' });
} }
EndMonth = dayjs().format('YYYY-MM') EndMonth = dayjs().format('YYYY-MM');
BeginMonth = dayjs().subtract(1, 'M').format('YYYY-MM') BeginMonth = dayjs().subtract(1, 'M').format('YYYY-MM');
} else if (type == '3') { } else if (type == '3') {
if (e) { if (e) {
app.mpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDYEARLYCURVE' }) app.zdMpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDYEARLYCURVE' });
} }
EndMonth = dayjs().format('YYYY') EndMonth = dayjs().format('YYYY');
BeginMonth = dayjs().subtract(1, 'y').format('YYYY') BeginMonth = dayjs().subtract(1, 'y').format('YYYY');
} else if (type == '4' && e) { } else if (type == '4' && e) {
app.mpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDTIMECURVE' }) app.zdMpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDTIMECURVE' });
} }
this.setData({ this.setData({
page: 0, page: 0,
@ -247,52 +247,52 @@ Page({
Num: '5', Num: '5',
EndMonth, EndMonth,
BeginMonth, BeginMonth,
}) });
if (callback) { if (callback) {
this.handleTabCallBack() this.handleTabCallBack();
} }
}, },
handleChange() { handleChange() {
this.handleTabCallBack() this.handleTabCallBack();
}, },
handleTab(e) { handleTab(e) {
const { index } = e.currentTarget.dataset const { index } = e.currentTarget.dataset;
this.setData({ this.setData({
tab: index, tab: index,
}) });
if (index == 1) { if (index == 1) {
app.mpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDCOMPREHENSIVEREPORT' }) app.zdMpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDCOMPREHENSIVEREPORT' });
} }
if (index == 2) { if (index == 2) {
app.mpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDDUALCOMPLIANCENOTES' }) app.zdMpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDDUALCOMPLIANCENOTES' });
} }
if (index == 3) { if (index == 3) {
app.mpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDMEDICATIONRECORD' }) app.zdMpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDMEDICATIONRECORD' });
} }
this.handleTabCallBack() this.handleTabCallBack();
}, },
handleTabCallBack() { handleTabCallBack() {
const tab = this.data.tab const tab = this.data.tab;
this.setData({ this.setData({
pagination: { pagination: {
page: 1, page: 1,
pages: 1, pages: 1,
count: 1, count: 1,
}, },
}) });
if (tab == 1) { if (tab == 1) {
this.getAllList() this.getAllList();
} }
if (tab == 2) { if (tab == 2) {
this.getList() this.getList();
} }
if (tab == 3) { if (tab == 3) {
this.getMedicationList() this.getMedicationList();
} }
this.getChart() this.getChart();
}, },
getAllList(newPage = 1) { getAllList(newPage = 1) {
const { BeginMonth, EndMonth, Type, Num } = this.data const { BeginMonth, EndMonth, Type, Num } = this.data;
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/adl/composite-list', url: '?r=zd/adl/composite-list',
@ -305,22 +305,22 @@ Page({
page: newPage, page: newPage,
}, },
}).then((res) => { }).then((res) => {
const list = res.list const list = res.list;
list.map((item) => { list.map((item) => {
let grade = 1 let grade = 1;
if (item.TotalScore < 5) { if (item.TotalScore < 5) {
grade = 1 grade = 1;
} else if (item.TotalScore >= 5 && item.TotalScore < 15) { } else if (item.TotalScore >= 5 && item.TotalScore < 15) {
grade = 2 grade = 2;
} else { } else {
grade = 3 grade = 3;
} }
item.grade = grade item.grade = grade;
item.fold = true item.fold = true;
return item return item;
}) });
const newList = res.page === 1 ? res.list : [...this.data.list, ...res.list] const newList = res.page === 1 ? res.list : [...this.data.list, ...res.list];
this.setData({ this.setData({
list: newList, list: newList,
pagination: { pagination: {
@ -328,26 +328,26 @@ Page({
pages: res.pages, pages: res.pages,
count: res.count, count: res.count,
}, },
}) });
}) });
}, },
onReachBottom() { onReachBottom() {
const { page, pages } = this.data.pagination const { page, pages } = this.data.pagination;
const tab = this.data.tab const tab = this.data.tab;
if (pages > page) { if (pages > page) {
if (tab == 1) { if (tab == 1) {
this.getAllList(page + 1) this.getAllList(page + 1);
} }
if (tab == 2) { if (tab == 2) {
this.getList(page + 1) this.getList(page + 1);
} }
if (tab == 3) { if (tab == 3) {
this.getMedicationList(page + 1) this.getMedicationList(page + 1);
} }
} }
}, },
getList(newPage = 1) { getList(newPage = 1) {
const { BeginMonth, EndMonth, Type, Num } = this.data const { BeginMonth, EndMonth, Type, Num } = this.data;
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/adl/list', url: '?r=zd/adl/list',
@ -360,22 +360,22 @@ Page({
page: newPage, page: newPage,
}, },
}).then((res) => { }).then((res) => {
const list = res.list const list = res.list;
list.map((item) => { list.map((item) => {
let grade = 1 let grade = 1;
if (item.TotalScore < 5) { if (item.TotalScore < 5) {
grade = 1 grade = 1;
} else if (item.TotalScore >= 5 && item.TotalScore < 15) { } else if (item.TotalScore >= 5 && item.TotalScore < 15) {
grade = 2 grade = 2;
} else { } else {
grade = 3 grade = 3;
} }
item.grade = grade item.grade = grade;
item.fold = true item.fold = true;
item.Type = 1 item.Type = 1;
return item return item;
}) });
const newList = res.page === 1 ? res.list : [...this.data.list, ...res.list] const newList = res.page === 1 ? res.list : [...this.data.list, ...res.list];
this.setData({ this.setData({
list: newList, list: newList,
pagination: { pagination: {
@ -383,11 +383,11 @@ Page({
pages: res.pages, pages: res.pages,
count: res.count, count: res.count,
}, },
}) });
}) });
}, },
getMedicationList(newPage = 1) { getMedicationList(newPage = 1) {
const { BeginMonth, EndMonth, Type, Num } = this.data const { BeginMonth, EndMonth, Type, Num } = this.data;
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/medication/list', url: '?r=zd/medication/list',
@ -400,22 +400,22 @@ Page({
page: newPage, page: newPage,
}, },
}).then((res) => { }).then((res) => {
const list = res.list const list = res.list;
list.map((item) => { list.map((item) => {
let grade = 1 let grade = 1;
if (item.TotalScore < 5) { if (item.TotalScore < 5) {
grade = 1 grade = 1;
} else if (item.TotalScore >= 5 && item.TotalScore < 15) { } else if (item.TotalScore >= 5 && item.TotalScore < 15) {
grade = 2 grade = 2;
} else { } else {
grade = 3 grade = 3;
} }
item.grade = grade item.grade = grade;
item.fold = true item.fold = true;
item.Type = 2 item.Type = 2;
return item return item;
}) });
const newList = res.page === 1 ? res.list : [...this.data.list, ...res.list] const newList = res.page === 1 ? res.list : [...this.data.list, ...res.list];
this.setData({ this.setData({
list: newList, list: newList,
pagination: { pagination: {
@ -423,11 +423,11 @@ Page({
pages: res.pages, pages: res.pages,
count: res.count, count: res.count,
}, },
}) });
}) });
}, },
getChart() { getChart() {
const { BeginMonth, EndMonth, Type, Num } = this.data const { BeginMonth, EndMonth, Type, Num } = this.data;
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/adl/list', url: '?r=zd/adl/list',
@ -446,12 +446,12 @@ Page({
defaultList: res.list, defaultList: res.list,
count: res.list.length, count: res.list.length,
defaultListLast: res.list.at(-1), defaultListLast: res.list.at(-1),
}) });
const chart1 = await this.initChart(res.list) const chart1 = await this.initChart(res.list);
const chart2 = await this.initHormoneChart(res.list) const chart2 = await this.initHormoneChart(res.list);
echarts.connect([chart1, chart2]) echarts.connect([chart1, chart2]);
} }
}) });
if (Number(Type) != 4) { if (Number(Type) != 4) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
@ -468,65 +468,65 @@ Page({
return { return {
Date: item.InjectionDate, Date: item.InjectionDate,
...item, ...item,
} };
}) });
const list = res.list const list = res.list;
const newList: any[] = this.mergeArr(list, medication) const newList: any[] = this.mergeArr(list, medication);
if (Number(Type) != 4) { if (Number(Type) != 4) {
this.setData({ this.setData({
defaultList: newList as never[], defaultList: newList as never[],
defaultListLast: newList.at(-1), defaultListLast: newList.at(-1),
count: list.length, count: list.length,
}) });
const chart1 = await this.initChart(newList as never[]) const chart1 = await this.initChart(newList as never[]);
const chart2 = await this.initHormoneChart(newList as never[]) const chart2 = await this.initHormoneChart(newList as never[]);
echarts.connect([chart1, chart2]) echarts.connect([chart1, chart2]);
} }
}) });
} }
}, },
mergeArr(array1: any[] = [], array2: any[] = []) { mergeArr(array1: any[] = [], array2: any[] = []) {
// 合并两个数组中相同Date字段的对象 // 合并两个数组中相同Date字段的对象
const mergedArray: any[] = [] const mergedArray: any[] = [];
const mergedMap = new Map() const mergedMap = new Map();
array1.concat(array2).forEach((obj) => { array1.concat(array2).forEach((obj) => {
const date = obj.Date const date = obj.Date;
if (mergedMap.has(date)) { if (mergedMap.has(date)) {
mergedMap.get(date).push(obj) mergedMap.get(date).push(obj);
} else { } else {
mergedMap.set(date, [obj]) mergedMap.set(date, [obj]);
} }
}) });
mergedMap.forEach((objs: any) => { mergedMap.forEach((objs: any) => {
if (objs.length === 1) { if (objs.length === 1) {
mergedArray.push(objs[0]) mergedArray.push(objs[0]);
} else { } else {
const mergedObj = objs.reduce((acc, cur) => ({ ...acc, ...cur })) const mergedObj = objs.reduce((acc, cur) => ({ ...acc, ...cur }));
mergedArray.push(mergedObj) mergedArray.push(mergedObj);
} }
}) });
// 按照Date字段对合并后的数组进行排序 // 按照Date字段对合并后的数组进行排序
mergedArray.sort((a, b) => { mergedArray.sort((a, b) => {
return a.Date.localeCompare(b.Date) return a.Date.localeCompare(b.Date);
}) });
return mergedArray return mergedArray;
}, },
initChart(defaultList = []) { initChart(defaultList = []) {
const { theme } = this.data const { theme } = this.data;
const list: any = defaultList const list: any = defaultList;
return new Promise((reslove) => { return new Promise((reslove) => {
this.ecDataTrendComponent.init((canvas, width, height, dpr) => { this.ecDataTrendComponent.init((canvas, width, height, dpr) => {
const chart = echarts.init(canvas, null, { const chart = echarts.init(canvas, null, {
width, width,
height, height,
devicePixelRatio: dpr, // new devicePixelRatio: dpr, // new
}) });
canvas.setChart(chart) canvas.setChart(chart);
const option: any = { const option: any = {
tooltip: { tooltip: {
@ -574,7 +574,7 @@ Page({
data: list.map((item) => dayjs(item.Date).format('MM-DD')), data: list.map((item) => dayjs(item.Date).format('MM-DD')),
axisLabel: { axisLabel: {
formatter() { formatter() {
return '' return '';
}, },
}, },
}, },
@ -647,7 +647,7 @@ Page({
endValue: 4, endValue: 4,
filterMode: 'none', filterMode: 'none',
}, },
} };
if (theme === 'DRUG') { if (theme === 'DRUG') {
const markLineData = list const markLineData = list
@ -669,8 +669,8 @@ Page({
color: '#25D9C8', color: '#25D9C8',
offset: [60, 0], offset: [60, 0],
}, },
} };
}) });
option.series.push({ option.series.push({
name: '用药', name: '用药',
data: list.map((item) => (item.InjectionBottles ? 0 : null)), data: list.map((item) => (item.InjectionBottles ? 0 : null)),
@ -693,7 +693,7 @@ Page({
symbol: ['none', 'none'], symbol: ['none', 'none'],
data: markLineData, data: markLineData,
}, },
}) });
// option.series.push({ // option.series.push({
// name: "用药时间", // name: "用药时间",
// data: list.map((item: any) => (item.InjectionBottles ? item.TotalScore : 0)), // data: list.map((item: any) => (item.InjectionBottles ? item.TotalScore : 0)),
@ -715,23 +715,23 @@ Page({
// }); // });
} }
chart.setOption(option) chart.setOption(option);
reslove(chart) reslove(chart);
return chart return chart;
}) });
}) });
}, },
initHormoneChart(defaultList = []) { initHormoneChart(defaultList = []) {
const { theme } = this.data const { theme } = this.data;
const list: any = defaultList const list: any = defaultList;
return new Promise((reslove) => { return new Promise((reslove) => {
this.ecDataHormoneComponent.init((canvas, width, height, dpr) => { this.ecDataHormoneComponent.init((canvas, width, height, dpr) => {
const chart = echarts.init(canvas, null, { const chart = echarts.init(canvas, null, {
width, width,
height, height,
devicePixelRatio: dpr, // new devicePixelRatio: dpr, // new
}) });
canvas.setChart(chart) canvas.setChart(chart);
const option: any = { const option: any = {
tooltip: { tooltip: {
@ -784,12 +784,12 @@ Page({
type: 'value', type: 'value',
minInterval: 1, minInterval: 1,
max(value) { max(value) {
return value.max + 20 > 999 ? 999 : value.max + 20 return value.max + 20 > 999 ? 999 : value.max + 20;
}, },
axisLabel: { axisLabel: {
// width: 20, // width: 20,
formatter(value: number) { formatter(value: number) {
return value return value;
}, },
}, },
}, },
@ -811,7 +811,7 @@ Page({
color: '#18474e', color: '#18474e',
z: 11, z: 11,
formatter({ value }) { formatter({ value }) {
return `${value}mg` return `${value}mg`;
}, },
}, },
itemStyle: { itemStyle: {
@ -860,7 +860,7 @@ Page({
endValue: 4, endValue: 4,
filterMode: 'none', filterMode: 'none',
}, },
} };
if (theme === 'DRUG') { if (theme === 'DRUG') {
const markLineData = list const markLineData = list
.filter((item) => item.InjectionBottles) .filter((item) => item.InjectionBottles)
@ -880,9 +880,9 @@ Page({
color: '#25D9C8', color: '#25D9C8',
offset: [60, 0], offset: [60, 0],
}, },
} };
}) });
const maxValue = Math.max(...list.map((item) => item.SteroidDailyDose)) const maxValue = Math.max(...list.map((item) => item.SteroidDailyDose));
option.series.push({ option.series.push({
name: '用药', name: '用药',
data: list.map((item) => (item.InjectionBottles ? 0 : null)), data: list.map((item) => (item.InjectionBottles ? 0 : null)),
@ -905,7 +905,7 @@ Page({
symbol: ['none', 'none'], symbol: ['none', 'none'],
data: markLineData, data: markLineData,
}, },
}) });
// option.series.push({ // option.series.push({
// name: "用药时间", // name: "用药时间",
// data: list.map((item: any) => (item.InjectionBottles ? item.TotalScore : 0)), // data: list.map((item: any) => (item.InjectionBottles ? item.TotalScore : 0)),
@ -927,68 +927,68 @@ Page({
// }); // });
} }
chart.setOption(option) chart.setOption(option);
reslove(chart) reslove(chart);
return chart return chart;
}) });
}) });
}, },
touchend(e) { touchend(e) {
const { type } = e.currentTarget.dataset const { type } = e.currentTarget.dataset;
const { page, defaultList } = this.data const { page, defaultList } = this.data;
if (type == 'left' && page > 0) { if (type == 'left' && page > 0) {
this.setData({ this.setData({
page: page - 1, page: page - 1,
}) });
this.initChart(defaultList) this.initChart(defaultList);
this.initHormoneChart(defaultList) this.initHormoneChart(defaultList);
} else if (type == 'right' && page < defaultList.length / 5 - 1) { } else if (type == 'right' && page < defaultList.length / 5 - 1) {
this.setData({ this.setData({
page: page + 1, page: page + 1,
}) });
this.initChart(defaultList) this.initChart(defaultList);
this.initHormoneChart(defaultList) this.initHormoneChart(defaultList);
} }
}, },
handleFoldAll() { handleFoldAll() {
const { list } = this.data const { list } = this.data;
this.setData({ this.setData({
list: list.map((item) => { list: list.map((item) => {
item.fold = !this.data.foldAll item.fold = !this.data.foldAll;
return item return item;
}), }),
foldAll: !this.data.foldAll, foldAll: !this.data.foldAll,
}) });
}, },
handleFold(e) { handleFold(e) {
const { index } = e.currentTarget.dataset const { index } = e.currentTarget.dataset;
this.setData({ this.setData({
[`list[${index}].fold`]: !this.data.list[index].fold, [`list[${index}].fold`]: !this.data.list[index].fold,
}) });
}, },
handleDetail(e) { handleDetail(e) {
const { id, isi } = e.currentTarget.dataset const { id, isi } = e.currentTarget.dataset;
const tab = this.data.tab const tab = this.data.tab;
if (isi == 1) { if (isi == 1) {
return return;
} }
if (tab == 1) { if (tab == 1) {
app.mpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDREPORTLIST' }) app.zdMpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDREPORTLIST' });
} }
if (tab == 2) { if (tab == 2) {
app.mpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDNOTESLIST' }) app.zdMpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDNOTESLIST' });
} }
wx.navigateTo({ wx.navigateTo({
url: `/pages/adlResult/index?id=${id}`, url: `/patient/pages/adlResult/index?id=${id}`,
}) });
}, },
handleDel(e) { handleDel(e) {
const { id, index, isi } = e.currentTarget.dataset const { id, index, isi } = e.currentTarget.dataset;
if (isi == 1) { if (isi == 1) {
return return;
} }
if (index != 0) return if (index != 0) return;
wx.showModal({ wx.showModal({
title: '确认删除?', title: '确认删除?',
confirmColor: '#cf5375', confirmColor: '#cf5375',
@ -1001,50 +1001,50 @@ Page({
Id: id, Id: id,
}, },
}).then(() => { }).then(() => {
this.handleTabCallBack() this.handleTabCallBack();
}) });
} }
}, },
}) });
}, },
handleAdd() { handleAdd() {
app.mpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDASSESSMENT' }) app.zdMpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDASSESSMENT' });
wx.navigateTo({ wx.navigateTo({
url: '/pages/adl/index', url: '/patient/pages/adl/index',
}) });
}, },
handleAddDrug() { handleAddDrug() {
app.mpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDMEDICATION' }) app.zdMpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDMEDICATION' });
wx.navigateTo({ wx.navigateTo({
url: '/pages/drugRecord/index', url: '/patient/pages/drugRecord/index',
}) });
}, },
handleChartDetail() { handleChartDetail() {
const that = this const that = this;
wx.navigateTo({ wx.navigateTo({
url: '/gift/pages/myHealthRecordChart/index', url: '/gift/pages/myHealthRecordChart/index',
success(res) { success(res) {
res.eventChannel.emit('acceptDataFromOpenerPage', { res.eventChannel.emit('acceptDataFromOpenerPage', {
list: that.data.defaultList, list: that.data.defaultList,
selectLegends: that.data.selectLegends, selectLegends: that.data.selectLegends,
}) });
}, },
}) });
}, },
handleDetailDrug(e) { handleDetailDrug(e) {
const { id, isi } = e.currentTarget.dataset const { id, isi } = e.currentTarget.dataset;
app.mpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDMEDICATIONLIST' }) app.zdMpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDMEDICATIONLIST' });
if (isi == 1) { if (isi == 1) {
return return;
} }
wx.navigateTo({ wx.navigateTo({
url: `/pages/drugRecord/index?id=${id}`, url: `/patient/pages/drugRecord/index?id=${id}`,
}) });
}, },
handleDelDrug(e) { handleDelDrug(e) {
const { id, isi } = e.currentTarget.dataset const { id, isi } = e.currentTarget.dataset;
if (isi == 1) { if (isi == 1) {
return return;
} }
wx.showModal({ wx.showModal({
title: '确认删除?', title: '确认删除?',
@ -1058,34 +1058,34 @@ Page({
Id: id, Id: id,
}, },
}).then(() => { }).then(() => {
this.handleTabCallBack() this.handleTabCallBack();
}) });
} }
}, },
}) });
}, },
toggleFold() { toggleFold() {
this.setData({ this.setData({
fold: !this.data.fold, fold: !this.data.fold,
}) });
}, },
handleShare() { handleShare() {
app.mpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDSHAREDUALCOMPLIANCEPOSTER' }) app.zdMpBehavior({ PageName: 'BTN_PATIENTHEALTHRECORDSHAREDUALCOMPLIANCEPOSTER' });
wx.navigateTo({ wx.navigateTo({
url: '/pages/adlShare/index', url: '/patient/pages/adlShare/index',
}) });
}, },
handleBack() { handleBack() {
wx.navigateBack({ wx.navigateBack({
fail() { fail() {
wx.reLaunch({ url: '/pages/index/index' }) wx.reLaunch({ url: '/patient/pages/index/index' });
}, },
}) });
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {
title: 'MG-ADL测评表:评估重症肌无力患者症状对生活质量的影响', title: 'MG-ADL测评表:评估重症肌无力患者症状对生活质量的影响',
path: '/pages/adl/index', path: '/patient/pages/adl/index',
} };
}, },
}) });

34
src/gift/pages/myHealthRecord/index.wxml

@ -11,7 +11,7 @@
</view> </view>
<view class="legend"> <view class="legend">
<view class="drugs" wx:if="{{theme === 'DRUG'}}"> <view class="drugs" wx:if="{{theme === 'DRUG'}}">
<image class="icon" src="{{imageUrl}}double-standard/adl-cure.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}za-images/double-standard/adl-cure.png?t={{Timestamp}}"></image>
用药 用药
</view> </view>
<view class="item item1">ADL评分异常</view> <view class="item item1">ADL评分异常</view>
@ -32,7 +32,7 @@
<view class="nav-item {{Type==3 && 'active'}}" bind:tap="handleChangeType" data-type="3">年度</view> <view class="nav-item {{Type==3 && 'active'}}" bind:tap="handleChangeType" data-type="3">年度</view>
<view class="nav-item {{Type==4 && 'active'}}" bind:tap="handleChangeType" data-type="4">次数</view> <view class="nav-item {{Type==4 && 'active'}}" bind:tap="handleChangeType" data-type="4">次数</view>
</view> </view>
<image class="fill" bind:tap="handleChartDetail" src="{{imageUrl}}1/fillscreen.png?t={{Timestamp}}"></image> <image class="fill" bind:tap="handleChartDetail" src="{{imageUrl}}za-images/1/fillscreen.png?t={{Timestamp}}"></image>
</view> </view>
<view class="c-content"> <view class="c-content">
<view class="search-num" wx:if="{{Type==4}}"> <view class="search-num" wx:if="{{Type==4}}">
@ -76,7 +76,7 @@
<van-icon class="icon" name="play" /> <van-icon class="icon" name="play" />
</view> </view>
<view class="result" wx:if="{{defaultListLast.TotalScore <=1 && defaultListLast.SteroidDailyDose <=5}}"> <view class="result" wx:if="{{defaultListLast.TotalScore <=1 && defaultListLast.SteroidDailyDose <=5}}">
<image class="icon" src="{{imageUrl}}double-standard/adl-success.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}za-images/double-standard/adl-success.png?t={{Timestamp}}"></image>
双达标达成! 双达标达成!
</view> </view>
</view> </view>
@ -89,17 +89,17 @@
ADL分数 ADL分数
</view> </view>
<view class="item" wx:if="{{theme === 'DRUG'}}"> <view class="item" wx:if="{{theme === 'DRUG'}}">
<image class="icon" src="{{imageUrl}}double-standard/adl-cure.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}za-images/double-standard/adl-cure.png?t={{Timestamp}}"></image>
用药时间 用药时间
</view> </view>
</view> </view>
</view> </view>
<view class="w-chart"> <view class="w-chart">
<!-- <view class="left" bind:tap="touchend" data-type="left" wx:if="{{page>0}}"> --> <!-- <view class="left" bind:tap="touchend" data-type="left" wx:if="{{page>0}}"> -->
<!-- <image class="icon" src="{{imageUrl}}1/left.png?t={{Timestamp}}"></image> --> <!-- <image class="icon" src="{{imageUrl}}za-images/1/left.png?t={{Timestamp}}"></image> -->
<!-- </view> --> <!-- </view> -->
<!-- <view class="right" bind:tap="touchend" data-type="right" wx:if="{{page < defaultList.length / 5 - 1}}"> --> <!-- <view class="right" bind:tap="touchend" data-type="right" wx:if="{{page < defaultList.length / 5 - 1}}"> -->
<!-- <image class="icon" src="{{imageUrl}}1/right.png?t={{Timestamp}}"></image> --> <!-- <image class="icon" src="{{imageUrl}}za-images/1/right.png?t={{Timestamp}}"></image> -->
<!-- </view> --> <!-- </view> -->
<ec-canvas id="mychart-dom-bar" ec="{{ ec }}"></ec-canvas> <ec-canvas id="mychart-dom-bar" ec="{{ ec }}"></ec-canvas>
</view> </view>
@ -117,16 +117,16 @@
<view class="unit">单位(mg)</view> <view class="unit">单位(mg)</view>
<view class="w-chart"> <view class="w-chart">
<!-- <view class="left" bind:tap="touchend" data-type="left" wx:if="{{page>0}}"> --> <!-- <view class="left" bind:tap="touchend" data-type="left" wx:if="{{page>0}}"> -->
<!-- <image class="icon" src="{{imageUrl}}1/left.png?t={{Timestamp}}"></image> --> <!-- <image class="icon" src="{{imageUrl}}za-images/1/left.png?t={{Timestamp}}"></image> -->
<!-- </view> --> <!-- </view> -->
<!-- <view class="right" bind:tap="touchend" data-type="right" wx:if="{{page < defaultList.length / 5 - 1}}"> --> <!-- <view class="right" bind:tap="touchend" data-type="right" wx:if="{{page < defaultList.length / 5 - 1}}"> -->
<!-- <image class="icon" src="{{imageUrl}}1/right.png?t={{Timestamp}}"></image> --> <!-- <image class="icon" src="{{imageUrl}}za-images/1/right.png?t={{Timestamp}}"></image> -->
<!-- </view> --> <!-- </view> -->
<ec-canvas id="mychart-hormone" ec="{{ ec }}"></ec-canvas> <ec-canvas id="mychart-hormone" ec="{{ ec }}"></ec-canvas>
</view> </view>
</view> </view>
<view class="share" bind:tap="handleShare"> <view class="share" bind:tap="handleShare">
<image class="icon" src="{{imageUrl}}double-standard/adl-share.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}za-images/double-standard/adl-share.png?t={{Timestamp}}"></image>
分享“双达标”海报 分享“双达标”海报
</view> </view>
</view> </view>
@ -276,7 +276,7 @@
<view class="none"></view> <view class="none"></view>
<view <view
class="bar" class="bar"
style="background: url({{imageUrl}}/1/adl-scurt.png?t={{Timestamp}}) no-repeat center / 100% 100% ;" style="background: url({{imageUrl}}za-images//1/adl-scurt.png?t={{Timestamp}}) no-repeat center / 100% 100% ;"
> >
<view class="num">0分</view> <view class="num">0分</view>
<view class="num">1分</view> <view class="num">1分</view>
@ -298,28 +298,28 @@
<image <image
wx:if="{{item[subItem.key] == 0}}" wx:if="{{item[subItem.key] == 0}}"
class="icon" class="icon"
src="{{imageUrl}}1/adl-scurt-icon.png?t={{Timestamp}}" src="{{imageUrl}}za-images/1/adl-scurt-icon.png?t={{Timestamp}}"
></image> ></image>
</view> </view>
<view class="sc-col"> <view class="sc-col">
<image <image
wx:if="{{item[subItem.key] == 1}}" wx:if="{{item[subItem.key] == 1}}"
class="icon" class="icon"
src="{{imageUrl}}1/adl-scurt-icon.png?t={{Timestamp}}" src="{{imageUrl}}za-images/1/adl-scurt-icon.png?t={{Timestamp}}"
></image> ></image>
</view> </view>
<view class="sc-col"> <view class="sc-col">
<image <image
wx:if="{{item[subItem.key] == 2}}" wx:if="{{item[subItem.key] == 2}}"
class="icon" class="icon"
src="{{imageUrl}}1/adl-scurt-icon.png?t={{Timestamp}}" src="{{imageUrl}}za-images/1/adl-scurt-icon.png?t={{Timestamp}}"
></image> ></image>
</view> </view>
<view class="sc-col"> <view class="sc-col">
<image <image
wx:if="{{item[subItem.key] == 3}}" wx:if="{{item[subItem.key] == 3}}"
class="icon" class="icon"
src="{{imageUrl}}1/adl-scurt-icon.png?t={{Timestamp}}" src="{{imageUrl}}za-images/1/adl-scurt-icon.png?t={{Timestamp}}"
></image> ></image>
</view> </view>
</view> </view>
@ -381,12 +381,12 @@
</view> </view>
</view> </view>
<image class="add" bind:tap="handleAdd" src="{{imageUrl}}1/adl-add.png?t={{Timestamp}}"></image> <image class="add" bind:tap="handleAdd" src="{{imageUrl}}za-images/1/adl-add.png?t={{Timestamp}}"></image>
<!-- <image --> <!-- <image -->
<!-- class="add" --> <!-- class="add" -->
<!-- wx:if="{{tab==3}}" --> <!-- wx:if="{{tab==3}}" -->
<!-- bind:tap="handleAddDrug" --> <!-- bind:tap="handleAddDrug" -->
<!-- src="{{imageUrl}}1.5/adl-add.png?t={{Timestamp}}" --> <!-- src="{{imageUrl}}za-images/1.5/adl-add.png?t={{Timestamp}}" -->
<!-- ></image> --> <!-- ></image> -->
<!-- <image class="add" wx:else bind:tap="handleAdd" src="{{imageUrl}}1/adl-add.png?t={{Timestamp}}"></image> --> <!-- <image class="add" wx:else bind:tap="handleAdd" src="{{imageUrl}}za-images/1/adl-add.png?t={{Timestamp}}"></image> -->
</view> </view>

574
src/gift/pages/myHealthRecordChart/index.ts

@ -1,287 +1,287 @@
/* eslint-disable */ /* eslint-disable */
const app = getApp<IAppOption>() const app = getApp<IAppOption>()
const licia = require('miniprogram-licia') const licia = require('miniprogram-licia')
import dayjs from 'dayjs' import dayjs from 'dayjs'
let echarts: any = null let echarts: any = null
Page({ Page({
data: { data: {
ec: { ec: {
lazyLoad: true, lazyLoad: true,
}, },
foldAll: true, foldAll: true,
BeginMonth: '', BeginMonth: '',
EndMonth: '', EndMonth: '',
Type: '1', Type: '1',
Num: '' as string | number, Num: '' as string | number,
fields: { fields: {
1: 'day', 1: 'day',
2: 'month', 2: 'month',
3: 'year', 3: 'year',
}, },
detail: {}, detail: {},
partNameList: app.globalData.partNameList, partNameList: app.globalData.partNameList,
list: [], list: [],
defaultList: [], defaultList: [],
count: 0, count: 0,
zdUserInfo: {}, zdUserInfo: {},
todayBg: '', todayBg: '',
selectLegends: {}, selectLegends: {},
page: 0, page: 0,
safeAreaLeft: 20, safeAreaLeft: 20,
theme: '', theme: '',
}, },
ecDataTrendComponent: null as any, ecDataTrendComponent: null as any,
async onLoad() { async onLoad() {
app.zdGetTheme().then((res) => { app.zdGetTheme().then((res) => {
this.setData({ this.setData({
theme: res, theme: res,
}) })
}) })
const that = this const that = this
that.getSystemInfo() that.getSystemInfo()
echarts = await require.async('../../../resource/components/echart/echarts.js') echarts = await require.async('../../compontnts/echart/echarts.js')
that.ecDataTrendComponent = that.selectComponent('#mychart-dom-bar') that.ecDataTrendComponent = that.selectComponent('#mychart-dom-bar')
const eventChannel = that.getOpenerEventChannel() const eventChannel = that.getOpenerEventChannel()
eventChannel.on('acceptDataFromOpenerPage', function (data) { eventChannel.on('acceptDataFromOpenerPage', function (data) {
console.log(data) console.log(data)
that.setData({ that.setData({
defaultList: data.list, defaultList: data.list,
selectLegends: { ...data.selectLegends }, selectLegends: { ...data.selectLegends },
zdUserInfo: app.globalData.zdUserInfo, zdUserInfo: app.globalData.zdUserInfo,
}) })
that.initChart(data.list) that.initChart(data.list)
}) })
that.initChart(that.data.defaultList as any) that.initChart(that.data.defaultList as any)
}, },
initChart(defaultList = []) { initChart(defaultList = []) {
const { selectLegends, theme } = this.data const { selectLegends, theme } = this.data
// const list = defaultList.slice(page * 15, (page + 1) * 8); // const list = defaultList.slice(page * 15, (page + 1) * 8);
const list = defaultList const list = defaultList
this.ecDataTrendComponent.init((canvas, width, height, dpr) => { this.ecDataTrendComponent.init((canvas, width, height, dpr) => {
let chart = echarts.init(canvas, null, { let chart = echarts.init(canvas, null, {
width: width, width: width,
height: height, height: height,
devicePixelRatio: dpr, // new devicePixelRatio: dpr, // new
}) })
canvas.setChart(chart) canvas.setChart(chart)
var option = { var option = {
dataZoom: [ dataZoom: [
{ {
type: 'inside', // 内置于坐标系中 type: 'inside', // 内置于坐标系中
// start: 0, // start: 0,
// end: 15, // end: 15,
startValue: 0, startValue: 0,
endValue: 15, endValue: 15,
xAxisIndex: [0], xAxisIndex: [0],
}, },
], ],
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
axisPointer: { axisPointer: {
type: 'shadow', type: 'shadow',
}, },
confine: true, confine: true,
backgroundColor: 'rgba(0, 0, 0, 0.5)', backgroundColor: 'rgba(0, 0, 0, 0.5)',
textStyle: { textStyle: {
color: '#fff', color: '#fff',
fontSize: 10, fontSize: 10,
}, },
order: 'seriesDesc', order: 'seriesDesc',
}, },
legend: { legend: {
bottom: 0, bottom: 0,
padding: 0, padding: 0,
itemGap: 5, itemGap: 5,
itemWidth: 8, itemWidth: 8,
itemHeight: 8, itemHeight: 8,
icon: 'circle', icon: 'circle',
selected: selectLegends, selected: selectLegends,
}, },
grid: { grid: {
top: '5', top: '5',
left: '0', left: '0',
right: '0', right: '0',
bottom: '15', bottom: '15',
containLabel: true, containLabel: true,
}, },
xAxis: [ xAxis: [
{ {
type: 'category', type: 'category',
axisTick: { axisTick: {
show: false, show: false,
}, },
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: '#8C8C8C', color: '#8C8C8C',
type: 'dashed', type: 'dashed',
}, },
}, },
axisLabel: { axisLabel: {
//x轴文字的配置 //x轴文字的配置
show: true, show: true,
interval: 0, //使x轴文字显示全 interval: 0, //使x轴文字显示全
rotate: -20, rotate: -20,
}, },
data: list.map((item) => item.Date), data: list.map((item) => item.Date),
}, },
], ],
yAxis: [ yAxis: [
{ {
type: 'value', type: 'value',
}, },
], ],
series: [ series: [
{ {
name: '延髓', name: '延髓',
type: 'bar', type: 'bar',
stack: 'Ad', stack: 'Ad',
emphasis: { emphasis: {
disabled: true, disabled: true,
focus: 'none', focus: 'none',
}, },
data: list.map((item) => item.MedullaTypeScore * 1), data: list.map((item) => item.MedullaTypeScore * 1),
barWidth: '16', barWidth: '16',
itemStyle: { itemStyle: {
// borderColor: "#fff", // borderColor: "#fff",
// borderWidth: 2, // borderWidth: 2,
color: '#7FBDA6', color: '#7FBDA6',
}, },
}, },
{ {
name: '呼吸', name: '呼吸',
type: 'bar', type: 'bar',
stack: 'Ad', stack: 'Ad',
emphasis: { emphasis: {
disabled: true, disabled: true,
focus: 'none', focus: 'none',
}, },
data: list.map((item) => item.BreathTypeScore * 1), data: list.map((item) => item.BreathTypeScore * 1),
itemStyle: { itemStyle: {
// borderColor: "#fff", // borderColor: "#fff",
// borderWidth: 2, // borderWidth: 2,
color: '#F1CE8F', color: '#F1CE8F',
}, },
}, },
{ {
name: '肢体', name: '肢体',
type: 'bar', type: 'bar',
stack: 'Ad', stack: 'Ad',
emphasis: { emphasis: {
disabled: true, disabled: true,
focus: 'none', focus: 'none',
}, },
data: list.map((item) => item.LimbsTypeScore * 1), data: list.map((item) => item.LimbsTypeScore * 1),
itemStyle: { itemStyle: {
// borderColor: "#fff", // borderColor: "#fff",
// borderWidth: 2, // borderWidth: 2,
color: '#9ED0DE', color: '#9ED0DE',
}, },
}, },
{ {
name: '眼肌', name: '眼肌',
type: 'bar', type: 'bar',
stack: 'Ad', stack: 'Ad',
emphasis: { emphasis: {
disabled: true, disabled: true,
focus: 'none', focus: 'none',
}, },
data: list.map((item) => item.EyeTypeScore * 1), data: list.map((item) => item.EyeTypeScore * 1),
itemStyle: { itemStyle: {
// borderColor: "#fff", // borderColor: "#fff",
// borderWidth: 2, // borderWidth: 2,
color: '#D37862', color: '#D37862',
}, },
}, },
{ {
name: '总分', name: '总分',
data: list.map((item) => item.TotalScore), data: list.map((item) => item.TotalScore),
type: 'line', type: 'line',
symbol: 'circle', symbol: 'circle',
connectNulls: true, connectNulls: true,
itemStyle: { itemStyle: {
color: '#CF5375', color: '#CF5375',
}, },
}, },
], ],
// dataZoom: { // dataZoom: {
// show: true, // 为true 滚动条出现 // show: true, // 为true 滚动条出现
// realtime: true, // realtime: true,
// type: "slider", // 有type这个属性,滚动条在最下面,也可以不行,写y:36,这表示距离顶端36px,一般就是在图上面。 // type: "slider", // 有type这个属性,滚动条在最下面,也可以不行,写y:36,这表示距离顶端36px,一般就是在图上面。
// height: 20, // 表示滚动条的高度,也就是粗细 // height: 20, // 表示滚动条的高度,也就是粗细
// start: 20, // 表示默认展示20%~80%这一段。 // start: 20, // 表示默认展示20%~80%这一段。
// end: 80, // end: 80,
// }, // },
} }
if (theme === 'DRUG') { if (theme === 'DRUG') {
let markLineData = list let markLineData = list
.filter((item) => item.InjectionBottles) .filter((item) => item.InjectionBottles)
.map((item) => { .map((item) => {
return { return {
name: '', name: '',
xAxis: item.Date, xAxis: item.Date,
lineStyle: { lineStyle: {
color: '#25D9C8', color: '#25D9C8',
cap: '', cap: '',
type: 'solid', type: 'solid',
}, },
label: { label: {
formatter: '', formatter: '',
position: 'insideEndBottom', position: 'insideEndBottom',
rotate: 0, rotate: 0,
color: '#25D9C8', color: '#25D9C8',
offset: [60, 0], offset: [60, 0],
}, },
} }
}) })
option.series.push({ option.series.push({
name: '用药', name: '用药',
data: list.map((item) => item.InjectionBottles), data: list.map((item) => item.InjectionBottles),
type: 'line', type: 'line',
symbol: 'none', symbol: 'none',
itemStyle: { itemStyle: {
color: '#25D9C8', color: '#25D9C8',
}, },
lineStyle: { lineStyle: {
width: 0, width: 0,
}, },
markLine: { markLine: {
symbol: ['none', 'none'], symbol: ['none', 'none'],
data: markLineData, data: markLineData,
}, },
}) })
} }
chart.setOption(option) chart.setOption(option)
return chart return chart
}) })
}, },
getSystemInfo() { getSystemInfo() {
wx.getSystemInfo({ wx.getSystemInfo({
success: (res) => { success: (res) => {
this.setData({ this.setData({
safeAreaLeft: res.safeArea.left || 20, safeAreaLeft: res.safeArea.left || 20,
}) })
}, },
}) })
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {
title: 'MG-ADL测评表:评估重症肌无力患者症状对生活质量的影响', title: 'MG-ADL测评表:评估重症肌无力患者症状对生活质量的影响',
path: '/pages/adl/index', path: '/patient/pages/adl/index',
} }
}, },
}) })

4
src/gift/pages/orderDetail/index.wxml

@ -1,10 +1,10 @@
<view class="page"> <view class="page">
<view class="status-line"> <view class="status-line">
<image class="icon" src="{{imageUrl}}2/order-status1.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}za-images/2/order-status1.png?t={{Timestamp}}"></image>
{{detail.statusName}} {{detail.statusName}}
</view> </view>
<view class="site"> <view class="site">
<image class="icon" src="{{imageUrl}}2/order-site.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}za-images/2/order-site.png?t={{Timestamp}}"></image>
<view class="wrap"> <view class="wrap">
<view class="title">{{detail.receiveUserName}} {{detail.receiveTelephone}}</view> <view class="title">{{detail.receiveUserName}} {{detail.receiveTelephone}}</view>
<view class="content">{{detail.receiveAddress}}</view> <view class="content">{{detail.receiveAddress}}</view>

2
src/gift/pages/orderEnd/index.wxml

@ -1,5 +1,5 @@
<view class="page"> <view class="page">
<image class="content-img" src="{{imageUrl}}2/order-end.png?t={{Timestamp}}"></image> <image class="content-img" src="{{imageUrl}}za-images/2/order-end.png?t={{Timestamp}}"></image>
<view class="title">下单成功</view> <view class="title">下单成功</view>
<view class="order-no">订单号:{{detail.orderNo}}</view> <view class="order-no">订单号:{{detail.orderNo}}</view>
<view class="detail-btn-bd" bind:tap="handleDetail">查看订单详情</view> <view class="detail-btn-bd" bind:tap="handleDetail">查看订单详情</view>

4
src/gift/pages/priceDetail/index.wxml

@ -1,11 +1,11 @@
<view class="page"> <view class="page">
<view <view
class="banner" class="banner"
style="background: url({{imageUrl}}/2/price-detail-banner-bg.png?t={{Timestamp}}) no-repeat top center / 100%;" style="background: url({{imageUrl}}za-images//2/price-detail-banner-bg.png?t={{Timestamp}}) no-repeat top center / 100%;"
> >
<view class="title">当前能量</view> <view class="title">当前能量</view>
<view class="num">{{score}}</view> <view class="num">{{score}}</view>
<image class="icon" src="{{imageUrl}}2/big-money.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}za-images/2/big-money.png?t={{Timestamp}}"></image>
</view> </view>
<view class="list"> <view class="list">
<view class="list-title">能量收支明细</view> <view class="list-title">能量收支明细</view>

8
src/gift/pages/scoreRule/index.wxml

@ -1,12 +1,12 @@
<view class="page" style="background:url({{imageUrl}}2/score-rule-bg.png?t={{Timestamp}}) no-repeat top center / 100%"> <view class="page" style="background:url({{imageUrl}}za-images/2/score-rule-bg.png?t={{Timestamp}}) no-repeat top center / 100%">
<navBar fixed title="" home="{{false}}" back bind:back="handleBack"></navBar> <navBar fixed title="" home="{{false}}" back bind:back="handleBack"></navBar>
<view class="page-container" style="padding-top:{{bottom+26}}px"> <view class="page-container" style="padding-top:{{bottom+26}}px">
<view class="banner"> <view class="banner">
<image class="b-title" src="{{imageUrl}}2/score-rule-title1.png?t={{Timestamp}}"></image> <image class="b-title" src="{{imageUrl}}za-images/2/score-rule-title1.png?t={{Timestamp}}"></image>
<view class="b-content">{{ list[0].content }}</view> <view class="b-content">{{ list[0].content }}</view>
</view> </view>
<view class="list"> <view class="list">
<image class="l-title" src="{{imageUrl}}2/score-rule-title2.png?t={{Timestamp}}"></image> <image class="l-title" src="{{imageUrl}}za-images/2/score-rule-title2.png?t={{Timestamp}}"></image>
<view class="l-tip">{{list[1].content}}</view> <view class="l-tip">{{list[1].content}}</view>
<view class="module" wx:for="{{list[1].children}}" wx:key="index"> <view class="module" wx:for="{{list[1].children}}" wx:key="index">
<view class="m-title"> <view class="m-title">
@ -32,7 +32,7 @@
</view> </view>
</view> </view>
<view class="list"> <view class="list">
<image class="l-title" src="{{imageUrl}}2/score-rule-title3.png?t={{Timestamp}}" style="width: 328rpx"></image> <image class="l-title" src="{{imageUrl}}za-images/2/score-rule-title3.png?t={{Timestamp}}" style="width: 328rpx"></image>
<view class="l-tip">{{list[2].content}}</view> <view class="l-tip">{{list[2].content}}</view>
<view class="module" wx:for="{{list[2].children}}" wx:key="index"> <view class="module" wx:for="{{list[2].children}}" wx:key="index">
<view class="m-title" wx:if="{{item.title}}"> <view class="m-title" wx:if="{{item.title}}">

2
src/gift/pages/siteEdit/index.wxml

@ -39,7 +39,7 @@
placeholder="请选择省市区、街道" placeholder="请选择省市区、街道"
/> />
<view class="site" bind:tap="handleSite"> <view class="site" bind:tap="handleSite">
<image class="icon" src="{{imageUrl}}2/site.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}za-images/2/site.png?t={{Timestamp}}"></image>
定位 定位
</view> </view>
</view> </view>

2
src/gift/pages/siteList/index.wxml

@ -8,7 +8,7 @@
<view class="content">{{item.receiveUserName}} {{item.receiveTelephone}}</view> <view class="content">{{item.receiveUserName}} {{item.receiveTelephone}}</view>
</view> </view>
<view class="edit" bind:tap="handleEdit" data-id="{{item.addressId}}"> <view class="edit" bind:tap="handleEdit" data-id="{{item.addressId}}">
<image class="edit-img" src="{{imageUrl}}2/edit.png?t={{Timestamp}}"></image> <image class="edit-img" src="{{imageUrl}}za-images/2/edit.png?t={{Timestamp}}"></image>
</view> </view>
</view> </view>
<pagination pagination="{{pagination}}"></pagination> <pagination pagination="{{pagination}}"></pagination>

12
src/gift/pages/vipCert/index.ts

@ -17,10 +17,10 @@ Page({
app.getZdUserInfo(this, true, (zdUserInfo) => { app.getZdUserInfo(this, true, (zdUserInfo) => {
if (zdUserInfo.UserType == 4) { if (zdUserInfo.UserType == 4) {
wx.reLaunch({ wx.reLaunch({
url: "/pages/my/index", url: "/patient/pages/my/index",
}); });
} }
app.zdPermissionVerification(3, 0, `/pages/index/index`); app.zdPermissionVerification(3, 0, `/patient/pages/index/index`);
}); });
}); });
}, },
@ -78,7 +78,7 @@ Page({
} }
const navUrl = { const navUrl = {
reslove: "/pages/index/index", reslove: "/patient/pages/index/index",
pending: "/gift/pages/vipPending/index", pending: "/gift/pages/vipPending/index",
nopending: "/gift/pages/vimStartPending/index", nopending: "/gift/pages/vimStartPending/index",
}[urlKey] as string; }[urlKey] as string;
@ -115,12 +115,12 @@ Page({
handleVisitors() { handleVisitors() {
app.globalData.anyWhere = true; app.globalData.anyWhere = true;
wx.reLaunch({ wx.reLaunch({
url: "/pages/index/index", url: "/patient/pages/index/index",
}); });
}, },
handleVip() { handleVip() {
wx.navigateTo({ wx.navigateTo({
url: "/pages/vipLogin/index", url: "/patient/pages/vipLogin/index",
}); });
}, },
handleBack() { handleBack() {
@ -128,7 +128,7 @@ Page({
}, },
handleVipScan() { handleVipScan() {
wx.navigateTo({ wx.navigateTo({
url: "/pages/vipLogin/index", url: "/patient/pages/vipLogin/index",
}); });
}, },
}); });

4
src/gift/pages/vipCert/index.wxml

@ -1,5 +1,5 @@
<view class="page"> <view class="page">
<image class="bg" mode="widthFix" src="{{imageUrl}}1/login-bg.png?t={{Timestamp}}"></image> <image class="bg" mode="widthFix" src="{{imageUrl}}za-images/1/login-bg.png?t={{Timestamp}}"></image>
<view class="page-container"> <view class="page-container">
<navBar title="专属服务用户进入" back="{{true}}" bind:back="handleBack"></navBar> <navBar title="专属服务用户进入" back="{{true}}" bind:back="handleBack"></navBar>
<view class="page-title">专属身份认证</view> <view class="page-title">专属身份认证</view>
@ -20,7 +20,7 @@
upload="{{!diagnoseImg}}" upload="{{!diagnoseImg}}"
> >
<view class="upload-container"> <view class="upload-container">
<image class="icon" wx:if="{{!diagnoseImg}}" src="{{imageUrl}}1/upload-cert.png?t={{Timestamp}}"></image> <image class="icon" wx:if="{{!diagnoseImg}}" src="{{imageUrl}}za-images/1/upload-cert.png?t={{Timestamp}}"></image>
<view class="name" wx:if="{{!diagnoseImg}}">点击上传</view> <view class="name" wx:if="{{!diagnoseImg}}">点击上传</view>
</view> </view>
</uploadFile> </uploadFile>

2
src/gift/pages/vipPending/index.ts

@ -11,7 +11,7 @@ Page({
}, },
handleVisitors() { handleVisitors() {
wx.reLaunch({ wx.reLaunch({
url: "/pages/index/index", url: "/patient/pages/index/index",
}); });
}, },
getCode() { getCode() {

2
src/gift/pages/vipPending/index.wxml

@ -1,5 +1,5 @@
<view class="page"> <view class="page">
<image class="bg" mode="widthFix" src="{{imageUrl}}1/login-bg.png?t={{Timestamp}}"></image> <image class="bg" mode="widthFix" src="{{imageUrl}}za-images/1/login-bg.png?t={{Timestamp}}"></image>
<view class="page-container"> <view class="page-container">
<navBar title="" back="{{true}}" bind:back="handleBack"></navBar> <navBar title="" back="{{true}}" bind:back="handleBack"></navBar>
<view class="page-title">提交成功,审核中</view> <view class="page-title">提交成功,审核中</view>

2
src/gift/pages/vipReject/index.ts

@ -16,7 +16,7 @@ Page({
}, },
handleVisitors() { handleVisitors() {
wx.reLaunch({ wx.reLaunch({
url: "/pages/index/index", url: "/patient/pages/index/index",
}); });
}, },
handleBack() { handleBack() {

8
src/gift/pages/vipReject/index.wxml

@ -1,12 +1,12 @@
<view class="page"> <view class="page">
<image class="bg" mode="widthFix" src="{{imageUrl}}1/login-bg.png?t={{Timestamp}}"></image> <image class="bg" mode="widthFix" src="{{imageUrl}}za-images/1/login-bg.png?t={{Timestamp}}"></image>
<view class="page-container"> <view class="page-container">
<navBar title="" back="{{true}}" bind:back="handleBack"></navBar> <navBar title="" back="{{true}}" bind:back="handleBack"></navBar>
<view class="tip"> <view class="tip">
<image class="icon" src="{{imageUrl}}1/warn.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}za-images/1/warn.png?t={{Timestamp}}"></image>
<text class="text">未通过原因:{{zdUserInfo.UseDrugsRejectReason}}</text> <text class="text">未通过原因:{{zdUserInfo.UseDrugsRejectReason}}</text>
</view> </view>
<image class="page-icon" src="{{imageUrl}}1/cert-reject.png?t={{Timestamp}}"></image> <image class="page-icon" src="{{imageUrl}}za-images/1/cert-reject.png?t={{Timestamp}}"></image>
<view class="page-title">审核未通过</view> <view class="page-title">审核未通过</view>
<view class="sub-title">很遗憾您的审核未通过</view> <view class="sub-title">很遗憾您的审核未通过</view>
<view class="footer"> <view class="footer">
@ -17,7 +17,7 @@
</view> </view>
<view class="ohter"> <view class="ohter">
<view class="col" bind:tap="handleVisitors"> <view class="col" bind:tap="handleVisitors">
<image class="icon" src="{{imageUrl}}1/look.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}za-images/1/look.png?t={{Timestamp}}"></image>
回到首页 回到首页
</view> </view>
</view> </view>

2
src/gift/pages/vipStartPending/index.ts

@ -5,7 +5,7 @@ Page({
onLoad() {}, onLoad() {},
handleVisitors() { handleVisitors() {
wx.reLaunch({ wx.reLaunch({
url: "/pages/index/index", url: "/patient/pages/index/index",
}); });
}, },
handleBack() { handleBack() {

4
src/gift/pages/vipStartPending/index.wxml

@ -1,8 +1,8 @@
<view class="page"> <view class="page">
<image class="bg" mode="widthFix" src="{{imageUrl}}1/login-mask-bg.png?t={{Timestamp}}"></image> <image class="bg" mode="widthFix" src="{{imageUrl}}za-images/1/login-mask-bg.png?t={{Timestamp}}"></image>
<view class="page-container"> <view class="page-container">
<navBar title="" back="{{true}}" bind:back="handleBack"></navBar> <navBar title="" back="{{true}}" bind:back="handleBack"></navBar>
<image class="page-icon" src="{{imageUrl}}1/cert-pending.png?t={{Timestamp}}"></image> <image class="page-icon" src="{{imageUrl}}za-images/1/cert-pending.png?t={{Timestamp}}"></image>
<view class="page-title">提交成功,审核中</view> <view class="page-title">提交成功,审核中</view>
<view class="sub-title"> <view class="sub-title">
<view>人工审核周期24小时~48小时</view> <view>人工审核周期24小时~48小时</view>

31
src/pages/login/index.ts

@ -106,8 +106,8 @@ Page({
}, },
showMsg: false, showMsg: false,
}) })
.then((res) => { .then(() => {
this.submitCallback(res); this.submitCallback();
}) })
.catch((err) => { .catch((err) => {
if (err.data.code == 100) { if (err.data.code == 100) {
@ -132,8 +132,8 @@ Page({
}, },
showMsg: false, showMsg: false,
}) })
.then((res) => { .then(() => {
this.submitCallback(res); this.submitCallback();
}) })
.catch((err) => { .catch((err) => {
if (err.data.code == 100) { if (err.data.code == 100) {
@ -147,21 +147,20 @@ Page({
}); });
} }
}, },
submitCallback(res) { submitCallback() {
console.log('DEBUGPRINT[79]: index.ts:112: res=', res); app.updateLoginInfo((res) => {
app.globalData.loginType = res.loginType; if (res.isLogin == 1) {
app.globalData.isLogin = res.isLogin; if (res.loginType == 2) {
if (res.isLogin == 1) { wx.reLaunch({
if (res.loginType == 2) { url: '/pages/home/index',
wx.reLaunch({ });
url: '/pages/home/index', } else {
}); this.handleShowPopup();
}
} else { } else {
this.handleShowPopup(); this.handleShowPopup();
} }
} else { });
this.handleShowPopup();
}
}, },
handleShowPopup() { handleShowPopup() {
this.setData({ this.setData({

10
src/pages/my/index.ts

@ -40,11 +40,11 @@ Page({
method: 'POST', method: 'POST',
url: '?r=xd/user/reg-logout', url: '?r=xd/user/reg-logout',
data: {}, data: {},
}).then((res) => { }).then(() => {
app.globalData.isLogin = res.isLogin; app.startLogin(() => {
app.globalData.loginType = res.loginType; wx.reLaunch({
wx.reLaunch({ url: '/pages/start/index',
url: '/pages/start/index', });
}); });
}); });
} }

2
src/patient/pages/adlResult/index.ts

@ -224,7 +224,7 @@ Page({
handleMyHealth() { handleMyHealth() {
app.zdMpBehavior({ PageName: 'BTN_PATIENTASSESSMENTRESULTGETNOTES' }); app.zdMpBehavior({ PageName: 'BTN_PATIENTASSESSMENTRESULTGETNOTES' });
wx.navigateTo({ wx.navigateTo({
url: '/gift/patient/pages/myHealthRecord/index', url: '/patient/pages/myHealthRecord/index',
}); });
}, },
handleShare() { handleShare() {

2
src/patient/pages/adlTest/index.wxml

@ -44,7 +44,7 @@
</view> </view>
</view> </view>
<view class="select"> <view class="select">
<view class="item" wx:for="{{5}}" data-id="{{(item+1)*5}}" bind:tap="handleHorSelect"> <view class="item" wx:for="{{5}}" wx:key="index" data-id="{{(item+1)*5}}" bind:tap="handleHorSelect">
<image class="i-icon" src="{{imageUrl}}za-images/double-standard/adl-drug.png?t={{Timestamp}}"></image> <image class="i-icon" src="{{imageUrl}}za-images/double-standard/adl-drug.png?t={{Timestamp}}"></image>
<view class="name">{{item+1}}片</view> <view class="name">{{item+1}}片</view>
<view wx:if="{{SteroidDailyDose===(item+1)*5}}" class="i-active"><van-icon name="success" /></view> <view wx:if="{{SteroidDailyDose===(item+1)*5}}" class="i-active"><van-icon name="success" /></view>

2
src/patient/pages/doctor/index.wxml

@ -101,7 +101,7 @@
<view <view
class="dtp-item" class="dtp-item"
bind:tap="handleDetail" bind:tap="handleDetail"
data-url="/gift/patient/pages/dtpDurg/index?id={{item.Id}}" data-url="/patient/pages/dtpDurg/index?id={{item.Id}}"
wx:for="{{dtpList}}" wx:for="{{dtpList}}"
wx:key="index" wx:key="index"
> >

8
src/patient/pages/index/index.ts

@ -479,15 +479,15 @@ Page({
}); });
} else if (MedicineAuditSwitch === '1') { } else if (MedicineAuditSwitch === '1') {
const pendPath = { const pendPath = {
0: '/gift/patient/pages/vipPending/index', 0: '/patient/pages/vipPending/index',
1: '/gift/patient/pages/vipStartPending/index', 1: '/patient/pages/vipStartPending/index',
}[isFollow]; }[isFollow];
const url = { const url = {
1: pendPath, 1: pendPath,
2: '/gift/patient/pages/vipReject/index', 2: '/patient/pages/vipReject/index',
}[UseDrugsAuditStatus]; }[UseDrugsAuditStatus];
wx.navigateTo({ wx.navigateTo({
url: url || '/gift/patient/pages/vipCert/index', url: url || '/patient/pages/vipCert/index',
}); });
} else { } else {
wx.showToast({ wx.showToast({

4
src/patient/pages/index/index.wxml

@ -107,7 +107,7 @@
<view <view
class="other" class="other"
catch:tap="routerTo" catch:tap="routerTo"
data-url="/gift/patient/pages/myHealthRecord/index" data-url="/gift/pages/myHealthRecord/index"
data-code="{{card.code}}" data-code="{{card.code}}"
> >
<image <image
@ -161,7 +161,7 @@
<view <view
class="more" class="more"
catch:tap="routerTo" catch:tap="routerTo"
data-url="/gift/patient/pages/myHealthRecord/index" data-url="/patient/pages/myHealthRecord/index"
data-code="{{card.code}}" data-code="{{card.code}}"
> >
查看健康档案 查看健康档案

8
src/patient/pages/my/index.ts

@ -112,15 +112,15 @@ Page({
}) })
} else if (MedicineAuditSwitch === '1') { } else if (MedicineAuditSwitch === '1') {
const pendPath = { const pendPath = {
0: '/gift/patient/pages/vipPending/index', 0: '/patient/pages/vipPending/index',
1: '/gift/patient/pages/vipStartPending/index', 1: '/patient/pages/vipStartPending/index',
}[isFollow] }[isFollow]
const url = { const url = {
1: pendPath, 1: pendPath,
2: '/gift/patient/pages/vipReject/index', 2: '/patient/pages/vipReject/index',
}[UseDrugsAuditStatus] }[UseDrugsAuditStatus]
wx.navigateTo({ wx.navigateTo({
url: url || '/gift/patient/pages/vipCert/index', url: url || '/patient/pages/vipCert/index',
}) })
} else { } else {
wx.showToast({ wx.showToast({

6
src/patient/pages/my/index.wxml

@ -35,9 +35,9 @@
<text class="sub">能量</text> <text class="sub">能量</text>
</view> </view>
<view class="content"> <view class="content">
<view bind:tap="routerTo" data-url="/gift/patient/pages/priceDetail/index">能量明细</view> <view bind:tap="routerTo" data-url="/patient/pages/priceDetail/index">能量明细</view>
<text class="line"></text> <text class="line"></text>
<view bind:tap="routerTo" data-url="/gift/patient/pages/scoreRule/index">能量规则</view> <view bind:tap="routerTo" data-url="/patient/pages/scoreRule/index">能量规则</view>
</view> </view>
</view> </view>
</view> </view>
@ -46,7 +46,7 @@
class="option" class="option"
style="width: 54rpx; height: 60rpx" style="width: 54rpx; height: 60rpx"
bind:tap="routerTo" bind:tap="routerTo"
data-url="/gift/patient/pages/giftList/index" data-url="/patient/pages/giftList/index"
> >
<image <image
class="icon" class="icon"

2
src/patient/pages/referral/index.ts

@ -110,7 +110,7 @@ Page({
}, },
handleAdl() { handleAdl() {
wx.navigateTo({ wx.navigateTo({
url: '/gift/patient/pages/myHealthRecord/index', url: '/patient/pages/myHealthRecord/index',
}); });
}, },
}); });

2
src/patient/pages/uploadCert/index.ts

@ -142,7 +142,7 @@ Page({
}) })
}, },
handleVip() { handleVip() {
this.createDisease('/gift/patient/pages/vipCert/index') this.createDisease('/patient/pages/vipCert/index')
}, },
createDisease(navUrl: string) { createDisease(navUrl: string) {
const { registrationSource, registChannel, regBusinessId } = app.globalData const { registrationSource, registChannel, regBusinessId } = app.globalData

Loading…
Cancel
Save