Browse Source

登录拦截调整

dev
kola-web 4 weeks ago
parent
commit
fed56d9a43
  1. 11
      src/app.ts
  2. 2
      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. 4
      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. 15
      src/pages/login/index.ts
  28. 6
      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

11
src/app.ts

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

2
src/components/customTable/index.wxml

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
<view class="none draw_canvas" data-type="text"></view>
<view
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"
>
<view class="num-normal draw_canvas" data-type="text" data-text="0分">0分</view>

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

@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
<view class="page">
<view
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
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"
data-id="2"
>
<image
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-index="0"
catch:tap="handleVideo"
@ -20,36 +20,36 @@ @@ -20,36 +20,36 @@
</view>
<view
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"
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">
<image
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-index="0"
catch:tap="handleVideo"
></image>
<image
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-index="1"
catch:tap="handleVideo"
></image>
<image
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-index="2"
catch:tap="handleVideo"
></image>
<image
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-index="3"
catch:tap="handleVideo"
@ -58,17 +58,17 @@ @@ -58,17 +58,17 @@
</view>
<view
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"
data-id="4"
></view>
<view
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"
data-id="5"
></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>
<video

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

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

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

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
<view
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="content">

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

@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
<view class="page">
<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="title">{{detail.Name}}</view>
<view class="tags">
<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}} -->
自有输注中心
</view>
<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}} -->
合作输注中心
</view>
@ -23,13 +23,13 @@ @@ -23,13 +23,13 @@
<view class="options">
<view class="option" bind:tap="handleSite" wx:if="{{detail.Address}}">
<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 class="name">地址</view>
</view>
<view class="option" bind:tap="handlePhone">
<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 class="name">电话</view>
</view>
@ -39,7 +39,7 @@ @@ -39,7 +39,7 @@
<view class="c-title">
<image
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"
></image>
自有输注中心
@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
</view>
<view class="card" wx:if="{{detail.IsCooperationInfusionCenter==1}}">
<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 class="c-content">{{detail.CooperationInfusionCenterName}}</view>

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

@ -20,8 +20,8 @@ Page({ @@ -20,8 +20,8 @@ Page({
this.setData({
id: options.id,
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="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="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: 宋体;">确认兑换商品的订单信 ... (very long line, trimmed to 1000 chars)
},
});
app.waitLogin().then(() => {

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

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

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

@ -1,9 +1,9 @@ @@ -1,9 +1,9 @@
<view class="page">
<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="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日过期
</view>
<view class="banner">
@ -17,18 +17,18 @@ @@ -17,18 +17,18 @@
</view>
<view class="banner-footer">
<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 class="ver-line"></view>
<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 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="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>

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

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

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

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
</view>
<view class="legend">
<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 class="item item1">ADL评分异常</view>
@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
<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>
<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 class="c-content">
<view class="search-num" wx:if="{{Type==4}}">
@ -76,7 +76,7 @@ @@ -76,7 +76,7 @@
<van-icon class="icon" name="play" />
</view>
<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>
@ -89,17 +89,17 @@ @@ -89,17 +89,17 @@
ADL分数
</view>
<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 class="w-chart">
<!-- <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 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> -->
<ec-canvas id="mychart-dom-bar" ec="{{ ec }}"></ec-canvas>
</view>
@ -117,16 +117,16 @@ @@ -117,16 +117,16 @@
<view class="unit">单位(mg)</view>
<view class="w-chart">
<!-- <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 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> -->
<ec-canvas id="mychart-hormone" ec="{{ ec }}"></ec-canvas>
</view>
</view>
<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>
@ -276,7 +276,7 @@ @@ -276,7 +276,7 @@
<view class="none"></view>
<view
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">1分</view>
@ -298,28 +298,28 @@ @@ -298,28 +298,28 @@
<image
wx:if="{{item[subItem.key] == 0}}"
class="icon"
src="{{imageUrl}}1/adl-scurt-icon.png?t={{Timestamp}}"
src="{{imageUrl}}za-images/1/adl-scurt-icon.png?t={{Timestamp}}"
></image>
</view>
<view class="sc-col">
<image
wx:if="{{item[subItem.key] == 1}}"
class="icon"
src="{{imageUrl}}1/adl-scurt-icon.png?t={{Timestamp}}"
src="{{imageUrl}}za-images/1/adl-scurt-icon.png?t={{Timestamp}}"
></image>
</view>
<view class="sc-col">
<image
wx:if="{{item[subItem.key] == 2}}"
class="icon"
src="{{imageUrl}}1/adl-scurt-icon.png?t={{Timestamp}}"
src="{{imageUrl}}za-images/1/adl-scurt-icon.png?t={{Timestamp}}"
></image>
</view>
<view class="sc-col">
<image
wx:if="{{item[subItem.key] == 3}}"
class="icon"
src="{{imageUrl}}1/adl-scurt-icon.png?t={{Timestamp}}"
src="{{imageUrl}}za-images/1/adl-scurt-icon.png?t={{Timestamp}}"
></image>
</view>
</view>
@ -381,12 +381,12 @@ @@ -381,12 +381,12 @@
</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 -->
<!-- class="add" -->
<!-- wx:if="{{tab==3}}" -->
<!-- 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 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>

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

@ -48,7 +48,7 @@ Page({ @@ -48,7 +48,7 @@ Page({
const that = this
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')
@ -281,7 +281,7 @@ Page({ @@ -281,7 +281,7 @@ Page({
onShareAppMessage() {
return {
title: 'MG-ADL测评表:评估重症肌无力患者症状对生活质量的影响',
path: '/pages/adl/index',
path: '/patient/pages/adl/index',
}
},
})

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

@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
<view class="page">
<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}}
</view>
<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="title">{{detail.receiveUserName}} {{detail.receiveTelephone}}</view>
<view class="content">{{detail.receiveAddress}}</view>

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<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="order-no">订单号:{{detail.orderNo}}</view>
<view class="detail-btn-bd" bind:tap="handleDetail">查看订单详情</view>

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

@ -1,11 +1,11 @@ @@ -1,11 +1,11 @@
<view class="page">
<view
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="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 class="list">
<view class="list-title">能量收支明细</view>

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

@ -1,12 +1,12 @@ @@ -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>
<view class="page-container" style="padding-top:{{bottom+26}}px">
<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>
<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="module" wx:for="{{list[1].children}}" wx:key="index">
<view class="m-title">
@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
</view>
</view>
<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="module" wx:for="{{list[2].children}}" wx:key="index">
<view class="m-title" wx:if="{{item.title}}">

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

@ -39,7 +39,7 @@ @@ -39,7 +39,7 @@
placeholder="请选择省市区、街道"
/>
<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>

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

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
<view class="content">{{item.receiveUserName}} {{item.receiveTelephone}}</view>
</view>
<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>
<pagination pagination="{{pagination}}"></pagination>

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

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

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<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">
<navBar title="专属服务用户进入" back="{{true}}" bind:back="handleBack"></navBar>
<view class="page-title">专属身份认证</view>
@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
upload="{{!diagnoseImg}}"
>
<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>
</uploadFile>

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

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

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<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">
<navBar title="" back="{{true}}" bind:back="handleBack"></navBar>
<view class="page-title">提交成功,审核中</view>

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

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

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

@ -1,12 +1,12 @@ @@ -1,12 +1,12 @@
<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">
<navBar title="" back="{{true}}" bind:back="handleBack"></navBar>
<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>
</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="sub-title">很遗憾您的审核未通过</view>
<view class="footer">
@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
</view>
<view class="ohter">
<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>

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

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

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

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
<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">
<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="sub-title">
<view>人工审核周期24小时~48小时</view>

15
src/pages/login/index.ts

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

6
src/pages/my/index.ts

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

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

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

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

@ -44,7 +44,7 @@ @@ -44,7 +44,7 @@
</view>
</view>
<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>
<view class="name">{{item+1}}片</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 @@ @@ -101,7 +101,7 @@
<view
class="dtp-item"
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:key="index"
>

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

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

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

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

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

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

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

@ -35,9 +35,9 @@ @@ -35,9 +35,9 @@
<text class="sub">能量</text>
</view>
<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>
<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>
@ -46,7 +46,7 @@ @@ -46,7 +46,7 @@
class="option"
style="width: 54rpx; height: 60rpx"
bind:tap="routerTo"
data-url="/gift/patient/pages/giftList/index"
data-url="/patient/pages/giftList/index"
>
<image
class="icon"

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

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

Loading…
Cancel
Save