Browse Source

2.2.2 stash

dev
kola-web 6 days ago
parent
commit
fda038af27
  1. 2
      src/components/popup/index.wxml
  2. 2
      src/components/toast/index.scss
  3. 2
      src/components/toast/index.wxml
  4. 4
      src/pages/d_patientDetail/index.scss
  5. 25
      src/pages/d_patientDetail/index.wxml
  6. 25
      src/pages/d_qolDetail/index.scss
  7. 139
      src/pages/d_qolDetail/index.wxml
  8. 92
      src/patient/pages/doctor/index.scss
  9. 18
      src/patient/pages/doctor/index.wxml
  10. 4
      src/patient/pages/hospital/index.scss
  11. 68
      src/patient/pages/index/index.scss
  12. 26
      src/patient/pages/index/index.ts
  13. 44
      src/patient/pages/index/index.wxml
  14. 2
      src/patient/pages/liveDetail/index.scss
  15. 6
      src/patient/pages/liveDetail/index.wxml
  16. 41
      src/patient/pages/liveResult/index.scss
  17. 8
      src/patient/pages/liveResult/index.wxml
  18. 3
      src/patient/pages/medical/index.json
  19. 96
      src/patient/pages/medical/index.scss
  20. 167
      src/patient/pages/medical/index.ts
  21. 67
      src/patient/pages/medical/index.wxml
  22. 17
      src/patient/pages/medicalDetail/index.scss
  23. 19
      src/patient/pages/medicalDetail/index.ts
  24. 34
      src/patient/pages/qolReport/index.ts
  25. 2
      src/patient/pages/repositoryDetail/index.scss

2
src/components/popup/index.wxml

@ -126,7 +126,7 @@ @@ -126,7 +126,7 @@
</view>
<view class="popup13" wx:if="{{type==='popup13'}}">
<view class="popup-container">
<view class="title">了解双通道临采/院内用药</view>
<view class="title">了解双通道/临采/院内用药</view>
<view class="scroll">
<view class="s-title">什么是“双通道”?</view>
<view class="content">

2
src/components/toast/index.scss

@ -2641,6 +2641,7 @@ @@ -2641,6 +2641,7 @@
}
.popup-medical-guide {
margin-bottom: -120rpx;
.popup-container {
.container {
padding: 424rpx 0 0;
@ -2681,6 +2682,7 @@ @@ -2681,6 +2682,7 @@
color: #b982ff;
line-height: 48rpx;
text-align: center;
font-weight: bold;
}
.scroll {
margin-top: 32rpx;

2
src/components/toast/index.wxml

@ -800,7 +800,7 @@ @@ -800,7 +800,7 @@
</view>
<view class="popup-question-toast" wx:if="{{type == 'question-toast'}}">
<view class="popup-container">
<view class="title">生活质量自评</view>
<view class="title">{{params.title}}</view>
<view class="scroll">{{params.content}}</view>
</view>
</view>

4
src/pages/d_patientDetail/index.scss

@ -248,7 +248,7 @@ page { @@ -248,7 +248,7 @@ page {
}
}
.k-footer {
margin-top: 34rpx;
margin-top: 24rpx;
display: flex;
align-items: center;
justify-content: space-between;
@ -330,7 +330,7 @@ page { @@ -330,7 +330,7 @@ page {
}
}
.k-footer {
margin-top: 34rpx;
margin-top: 24rpx;
display: flex;
align-items: center;
justify-content: space-between;

25
src/pages/d_patientDetail/index.wxml

@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
src="{{imageUrl}}icon62.png?t={{Timestamp}}"
></image>
</view>
<view class="reg-date">注册时间:{{detail.BecomePatientTime}}</view>
<view class="reg-date">邀约时间:{{detail.InviteTime}}</view>
<view class="options">
<view class="o-item" bind:tap="handleRemark">备注</view>
<view class="o-item" bind:tap="handleSend">发消息</view>
@ -74,7 +74,9 @@ @@ -74,7 +74,9 @@
<view class="title">生活质量自评</view>
<block wx:if="{{qolDetail.TotalScore}}">
<view class="content">
<view class="num {{qolDetail.TotalScore>=0 && 'status1'}} {{qolDetail.TotalScore>=40 && 'status2'}} {{qolDetail.TotalScore>=80 && 'status3'}}">
<view
class="num {{qolDetail.TotalScore>=0 && 'status1'}} {{qolDetail.TotalScore>=40 && 'status2'}} {{qolDetail.TotalScore>=80 && 'status3'}}"
>
{{qolDetail.TotalScore}}
<text class="sub">分</text>
</view>
@ -93,11 +95,19 @@ @@ -93,11 +95,19 @@
<view class="row">
<view class="col">
<view class="label">视觉功能</view>
<view class="num {{qolDetail.VisionScore>=0 && 'status1'}} {{qolDetail.VisionScore>=40 && 'status2'}} {{qolDetail.VisionScore>=80 && 'status3'}}">{{qolDetail.VisionScore}}分</view>
<view
class="num {{qolDetail.VisionScore>=0 && 'status1'}} {{qolDetail.VisionScore>=40 && 'status2'}} {{qolDetail.VisionScore>=80 && 'status3'}}"
>
{{qolDetail.VisionScore}}分
</view>
</view>
<view class="col">
<view class="label">外观影响</view>
<view class="num {{qolDetail.AppearanceScore>=0 && 'status1'}} {{qolDetail.AppearanceScore>=40 && 'status2'}} {{qolDetail.AppearanceScore>=80 && 'status3'}}">{{qolDetail.AppearanceScore}}分</view>
<view
class="num {{qolDetail.AppearanceScore>=0 && 'status1'}} {{qolDetail.AppearanceScore>=40 && 'status2'}} {{qolDetail.AppearanceScore>=80 && 'status3'}}"
>
{{qolDetail.AppearanceScore}}分
</view>
</view>
</view>
<view class="k-footer">
@ -136,9 +146,8 @@ @@ -136,9 +146,8 @@
</view>
</view>
<view class="chart-list">
<view class="chart-title" id="qol">指标趋势</view>
<view class="chart-card">
<view class="chart-card-title">生活质量评分</view>
<view class="chart-card" id="qol">
<view class="chart-card-title">生活质量评分趋势</view>
<view class="chart-filter">
<picker class="type" mode="selector" range="{{typeRange}}" range-key="value" bind:change="handleTypeChange">
{{typeName}}
@ -183,7 +192,7 @@ @@ -183,7 +192,7 @@
</view>
</view>
<view class="chart-card chart-card-legend" wx:if="{{list4Show || list5Show || list6Show}}">
<view class="chart-card-title" id="hormone">激素周用量记录曲线</view>
<view class="chart-card-title" id="hormone">激素用量趋势</view>
<view class="chart-filter">
<picker
class="type"

25
src/pages/d_qolDetail/index.scss

@ -3,7 +3,7 @@ page { @@ -3,7 +3,7 @@ page {
}
.nav-tabs {
view {
--tab-font-size: 28rpx;
--tab-font-size: 32rpx;
}
}
@ -39,6 +39,7 @@ page { @@ -39,6 +39,7 @@ page {
margin: 24rpx 0 0;
border-radius: 12rpx;
overflow: hidden;
border: 1px solid #fff;
.thead {
display: grid;
grid-template-columns: auto 240rpx 240rpx;
@ -63,7 +64,6 @@ page { @@ -63,7 +64,6 @@ page {
grid-template-columns: auto 240rpx 240rpx;
background-color: #ffffff;
text-align: center;
border-radius: 12rpx 12rpx 0 0;
border-bottom: 1px solid #eee4ff;
&:last-of-type {
border: none;
@ -80,6 +80,12 @@ page { @@ -80,6 +80,12 @@ page {
&:last-of-type {
border: none;
}
&.red {
color: #ef3939;
}
&.green {
color: #1ec580;
}
}
}
}
@ -105,6 +111,7 @@ page { @@ -105,6 +111,7 @@ page {
display: flex;
flex-wrap: nowrap;
border-radius: 12rpx;
border: 1px solid #fff;
.table1 {
flex-shrink: 0;
position: sticky;
@ -235,6 +242,15 @@ page { @@ -235,6 +242,15 @@ page {
display: flex;
align-items: center;
text-align: left;
&.red {
color: #ef3939;
}
&.green {
color: #1ec580;
}
&:first-of-type {
color: #211d2e !important;
}
}
}
.mtr {
@ -244,6 +260,11 @@ page { @@ -244,6 +260,11 @@ page {
}
}
}
.table-none {
display: block;
margin: 30rpx auto;
width: 80%;
}
}
.page-footer {

139
src/pages/d_qolDetail/index.wxml

@ -26,15 +26,17 @@ @@ -26,15 +26,17 @@
<view class="td">{{item.CreateDate}}</view>
<block wx:if="{{tab==0}}">
<view class="td">{{item.TotalScore}}</view>
<view class="td">{{item.changeTotalScore}}</view>
<view class="td {{item.changeTotalScore >= 0 ? 'green' : 'red'}}">{{item.changeTotalScore}}</view>
</block>
<block wx:elif="{{tab==1}}">
<view class="td">{{item.VisionScore}}</view>
<view class="td">{{item.changeVisionScore}}</view>
<view class="td {{item.changeVisionScore >= 0 ? 'green' : 'red'}}">{{item.changeVisionScore}}</view>
</block>
<block wx:elif="{{tab==2}}">
<view class="td">{{item.AppearanceScore}}</view>
<view class="td">{{item.changeAppearanceScore}}</view>
<view class="td {{item.changeAppearanceScore >= 0 ? 'green' : 'red'}}">
{{item.changeAppearanceScore}}
</view>
</block>
</view>
</view>
@ -46,7 +48,7 @@ @@ -46,7 +48,7 @@
<van-tab title="按答题选项">
<view class="page2">
<view class="title">{{detail.Name}}的GO-QOL生活质量评测详情</view>
<view class="scroll">
<view class="scroll" wx:if="{{list2.length}}">
<view class="table1">
<view class="thead">
<view class="taside">类型</view>
@ -120,56 +122,153 @@ @@ -120,56 +122,153 @@
</view>
<view class="tbody">
<view class="tr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[0].answerList[item.Question1]}}</view>
<view
class="td {{item.Question1 >= list2[index-1].Question1 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[0].answerList[item.Question1]}}({{item.Question1>=4?3:item.Question1}}分)
</view>
</view>
<view class="tr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[1].answerList[item.Question2]}}</view>
<view
class="td {{item.Question2 >= list2[index-1].Question2 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[1].answerList[item.Question2]}}({{item.Question2>=4?3:item.Question2}}分)
</view>
</view>
<view class="tr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[2].answerList[item.Question3]}}</view>
<view
class="td {{item.Question3 >= list2[index-1].Question3 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[2].answerList[item.Question3]}}({{item.Question3>=4?3:item.Question3}}分)
</view>
</view>
<view class="tr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[3].answerList[item.Question4]}}</view>
<view
class="td {{item.Question4 >= list2[index-1].Question4 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[3].answerList[item.Question4]}}({{item.Question4>=4?3:item.Question4}}分)
</view>
</view>
<view class="tr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[4].answerList[item.Question5]}}</view>
<view
class="td {{item.Question5 >= list2[index-1].Question5 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[4].answerList[item.Question5]}}({{item.Question5>=4?3:item.Question5}}分)
</view>
</view>
<view class="tr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[5].answerList[item.Question6]}}</view>
<view
class="td {{item.Question6 >= list2[index-1].Question6 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[5].answerList[item.Question6]}}({{item.Question6>=4?3:item.Question6}}分)
</view>
</view>
<view class="tr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[6].answerList[item.Question7]}}</view>
<view
class="td {{item.Question7 >= list2[index-1].Question7 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[6].answerList[item.Question7]}}({{item.Question7>=4?3:item.Question7}}分)
</view>
</view>
<view class="tr mtr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[7].answerList[item.Question8]}}</view>
<view
class="td {{item.Question8 >= list2[index-1].Question8 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[7].answerList[item.Question8]}}({{item.Question8>=4?3:item.Question8}}分)
</view>
</view>
<view class="tr mtr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[8].answerList[item.Question9]}}</view>
<view
class="td {{item.Question9 >= list2[index-1].Question9 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[8].answerList[item.Question9]}}({{item.Question9>=4?3:item.Question9}}分)
</view>
</view>
<view class="tr mtr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[9].answerList[item.Question10]}}</view>
<view
class="td {{item.Question10 >= list2[index-1].Question10 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[9].answerList[item.Question10]}}({{item.Question10>=4?3:item.Question10}}分)
</view>
</view>
<view class="tr mtr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[10].answerList[item.Question11]}}</view>
<view
class="td {{item.Question11 >= list2[index-1].Question11 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[10].answerList[item.Question11]}}({{item.Question11>=4?3:item.Question11}}分)
</view>
</view>
<view class="tr mtr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[11].answerList[item.Question12]}}</view>
<view
class="td {{item.Question12 >= list2[index-1].Question12 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[11].answerList[item.Question12]}}({{item.Question12>=4?3:item.Question12}}分)
</view>
</view>
<view class="tr mtr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[12].answerList[item.Question13]}}</view>
<view
class="td {{item.Question13 >= list2[index-1].Question13 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[12].answerList[item.Question13]}}({{item.Question13>=4?3:item.Question13}}分)
</view>
</view>
<view class="tr mtr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[13].answerList[item.Question14]}}</view>
<view
class="td {{item.Question14 >= list2[index-1].Question14 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[13].answerList[item.Question14]}}({{item.Question14>=4?3:item.Question14}}分)
</view>
</view>
<view class="tr mtr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[14].answerList[item.Question15]}}</view>
<view
class="td {{item.Question15 >= list2[index-1].Question15 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[14].answerList[item.Question15]}}({{item.Question15>=4?3:item.Question15}}分)
</view>
</view>
<view class="tr mtr">
<view class="td" wx:for="{{list2}}" wx:key="index">{{qolList[15].answerList[item.Question16]}}</view>
<view
class="td {{item.Question16 >= list2[index-1].Question16 ? 'green' : 'red'}}"
wx:for="{{list2}}"
wx:key="index"
>
{{qolList[15].answerList[item.Question16]}}({{item.Question16>=4?3:item.Question16}}分)
</view>
</view>
</view>
</view>
</view>
<image wx:else class="table-none" src="{{imageUrl}}none.png?t={{Timestamp}}"></image>
</view>
</van-tab>
</van-tabs>

92
src/patient/pages/doctor/index.scss

@ -136,9 +136,9 @@ page { @@ -136,9 +136,9 @@ page {
flex-shrink: 0;
display: inline-block;
vertical-align: 2rpx;
padding: 6rpx 12rpx;
font-size: 22rpx;
line-height: 1;
padding: 2rpx 12rpx;
font-size: 24rpx;
line-height: 32rpx;
color: #ffffff;
background: linear-gradient(90deg, #ffd650 0%, #f8a61a 100%);
border-radius: 6rpx;
@ -167,49 +167,55 @@ page { @@ -167,49 +167,55 @@ page {
height: 36rpx;
}
}
.tag {
margin-right: 22rpx;
display: inline-block;
padding: 4rpx 16rpx 4rpx 16rpx;
line-height: 1;
font-size: 24rpx;
color: #b982ff;
border-radius: 6rpx;
border: 1px solid #b982ff;
}
.medical {
margin-right: 22rpx;
vertical-align: bottom;
padding: 4rpx 8rpx;
line-height: 1;
font-size: 24rpx;
color: #ffffff;
border-radius: 6rpx;
display: inline-flex;
.tags {
margin-top: 10rpx;
display: flex;
align-items: center;
gap: 2rpx;
background: linear-gradient(210deg, #1ec580 0%, #4feaaa 100%);
.m-icon {
width: 28rpx;
height: 28rpx;
.tag {
margin-right: 22rpx;
padding: 0 12rpx;
font-size: 24rpx;
color: #b982ff;
line-height: 32rpx;
border-radius: 6rpx;
border: 1px solid #b982ff;
box-sizing: border-box;
}
}
.drug {
vertical-align: middle;
padding-right: 8rpx;
display: inline-block;
font-size: 22rpx;
color: #b982ff;
line-height: 1;
border-radius: 8rpx;
background-color: #f5dfe6;
.drug-icon {
.medical {
margin-right: 22rpx;
box-sizing: border-box;
padding: 0 12rpx 0 8rpx;
font-size: 24rpx;
line-height: 36rpx;
color: #ffffff;
border-radius: 6rpx;
display: flex;
align-items: center;
gap: 2rpx;
background: linear-gradient(210deg, #1ec580 0%, #4feaaa 100%);
.m-icon {
width: 28rpx;
height: 28rpx;
}
}
.drug {
padding-right: 8rpx;
display: inline-flex;
align-items: center;
gap: 8rpx;
font-size: 24rpx;
color: #b982ff;
line-height: 1;
border-radius: 8rpx;
vertical-align: middle;
padding: 8rpx 10rpx;
width: 16rpx;
height: 20rpx;
background-color: #b982ff;
height: 36rpx;
background-color: #f5dfe6;
.drug-icon {
border-radius: 8rpx;
padding: 8rpx 10rpx;
width: 16rpx;
height: 20rpx;
background-color: #b982ff;
}
}
}
}

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

@ -84,14 +84,16 @@ @@ -84,14 +84,16 @@
src="{{imageUrl}}icon90.png?t={{Timestamp}}"
></image>
</view>
<view class="tag" wx:if="{{item.DoctorNum>0}}">{{item.DoctorNum}}名医生</view>
<view class="medical" wx:if="{{item.isReimbursement==1}}">
<image class="m-icon" src="{{imageUrl}}icon132.png?t={{Timestamp}}"></image>
医保
</view>
<view class="drug" wx:if="{{item.IsHaveDrug==1}}">
<image class="drug-icon" src="{{imageUrl}}za-images//nrdl/drug.png"></image>
院内有药
<view class="tags">
<view class="tag" wx:if="{{item.DoctorNum>0}}">{{item.DoctorNum}}名医生</view>
<view class="medical" wx:if="{{item.isReimbursement==1}}">
<image class="m-icon" src="{{imageUrl}}icon132.png?t={{Timestamp}}"></image>
医保
</view>
<view class="drug" wx:if="{{item.IsHaveDrug==1}}">
<image class="drug-icon" src="{{imageUrl}}za-images//nrdl/drug.png"></image>
院内有药
</view>
</view>
</view>
</view>

4
src/patient/pages/hospital/index.scss

@ -71,11 +71,11 @@ page { @@ -71,11 +71,11 @@ page {
display: flex;
align-items: flex-start;
.icon {
margin-top: 6rpx;
flex-shrink: 0;
margin-right: 10rpx;
width: 36rpx;
height: 36rpx;
vertical-align: -8rpx;
}
}
.site-num {
@ -144,7 +144,7 @@ page { @@ -144,7 +144,7 @@ page {
.module-container {
background: linear-gradient(180deg, #f5eeff 0%, #ffffff 8.38%, #ffffff 100%);
box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.05);
border: 1rpx solid #ebecee;
border: 1px solid #FFFFFF;
border-radius: 24rpx;
.m-header {
padding: 38rpx 32rpx 0;

68
src/patient/pages/index/index.scss

@ -106,7 +106,7 @@ page { @@ -106,7 +106,7 @@ page {
grid-template-columns: repeat(2, 1fr);
gap: 30rpx;
.k-qol {
padding: 48rpx 32rpx 22rpx;
padding: 48rpx 0rpx 22rpx 32rpx;
background: linear-gradient(
180deg,
rgba(239, 226, 255, 0.52) 0%,
@ -129,22 +129,24 @@ page { @@ -129,22 +129,24 @@ page {
}
}
.none {
margin: 30rpx -32rpx -100rpx;
margin: 30rpx -32rpx -70rpx;
width: 318rpx;
height: 170rpx;
display: block;
}
.content {
margin-top: 12rpx;
height: 96rpx;
height: 128rpx;
display: flex;
align-self: baseline;
justify-content: space-between;
.num {
padding-top: 22rpx;
white-space: nowrap;
font-size: 62rpx;
color: #ffa300;
font-size: 60rpx;
color: transparent;
font-weight: bold;
background-clip: text;
-webkit-background-clip: text;
.sub {
font-size: 28rpx;
color: #69686e;
@ -152,21 +154,22 @@ page { @@ -152,21 +154,22 @@ page {
}
}
.status1 {
color: #ef3939;
background-image: linear-gradient(to bottom, #ffa0a0 0%, #ff7a7a 100%);
}
.status2 {
color: #ffa300;
background-image: linear-gradient(to bottom, #ffbe4a 0%, #ffa300 100%);
}
.status3 {
color: #1ec580;
background-image: linear-gradient(to bottom, #69e7b3 0%, #59cc9c 100%);
}
.icon {
width: 96rpx;
height: 96rpx;
margin-left: -20rpx;
width: 128rpx;
height: 128rpx;
}
}
.k-footer {
margin-top: 34rpx;
margin-top: 28rpx;
display: flex;
align-items: center;
justify-content: space-between;
@ -179,19 +182,20 @@ page { @@ -179,19 +182,20 @@ page {
color: rgba(76, 66, 107, 0.51);
}
.add {
margin-right: 16rpx;
flex-shrink: 0;
width: 76rpx;
height: 76rpx;
width: 64rpx;
height: 64rpx;
}
}
}
.k-hormones {
position: relative;
padding: 48rpx 32rpx 22rpx;
padding: 48rpx 0rpx 22rpx 32rpx;
background: linear-gradient(
180deg,
rgba(239, 226, 255, 0.52) 0%,
rgba(255, 255, 255, 0.96) 26.03%,
rgba(255, 227, 253, 0.52) 0%,
rgba(255, 255, 255, 0.96) 25.17%,
#ffffff 100%
);
border-radius: 32rpx 32rpx 32rpx 32rpx;
@ -219,21 +223,24 @@ page { @@ -219,21 +223,24 @@ page {
}
}
.none {
margin: 30rpx -32rpx -100rpx;
margin: 30rpx -32rpx -70rpx;
width: 318rpx;
height: 170rpx;
display: block;
}
.content {
margin-top: 12rpx;
height: 96rpx;
height: 128rpx;
display: flex;
align-self: baseline;
justify-content: space-between;
.num {
padding-top: 22rpx;
white-space: nowrap;
font-size: 62rpx;
color: #b982ff;
background-image: linear-gradient(to bottom, #e98ff8 0%, #b073ff 100%);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
font-weight: bold;
.sub {
font-size: 28rpx;
@ -244,7 +251,7 @@ page { @@ -244,7 +251,7 @@ page {
}
}
.k-footer {
margin-top: 34rpx;
margin-top: 28rpx;
display: flex;
align-items: center;
justify-content: space-between;
@ -257,9 +264,10 @@ page { @@ -257,9 +264,10 @@ page {
color: rgba(76, 66, 107, 0.51);
}
.add {
margin-right: 16rpx;
flex-shrink: 0;
width: 76rpx;
height: 76rpx;
width: 64rpx;
height: 64rpx;
}
}
}
@ -271,20 +279,20 @@ page { @@ -271,20 +279,20 @@ page {
gap: 30rpx;
.k-item {
flex: 1;
background: linear-gradient(0, #ffffff 0%, #f8f3ff 100%);
border-radius: 32rpx 32rpx 32rpx 32rpx;
border: 2rpx solid #ffffff;
.wrap {
padding: 28rpx 0 40rpx 26rpx;
padding: 40rpx 0 40rpx 24rpx;
height: 168rpx;
box-sizing: border-box;
border-radius: 32rpx 32rpx 32rpx 32rpx;
.title {
font-size: 36rpx;
color: #b982ff;
color: #fff;
font-weight: bold;
}
.content {
margin-top: 8rpx;
font-size: 28rpx;
color: rgba(76, 66, 107, 0.51);
color: rgba(255, 255, 255, 0.6);
}
}
.icon {

26
src/patient/pages/index/index.ts

@ -46,7 +46,7 @@ Page({ @@ -46,7 +46,7 @@ Page({
toastShow: false,
toastType: '',
toastParams: {} as any,
toastParams: {close:true} as any,
sliderTop: 0,
@ -143,7 +143,7 @@ Page({ @@ -143,7 +143,7 @@ Page({
this.setData({
toastShow: data3.showAlert,
toastType: 'medical-guide',
toastParams: {},
toastParams: { close: true },
})
}
@ -395,6 +395,19 @@ Page({ @@ -395,6 +395,19 @@ Page({
},
})
},
handleHormone() {
const { hormoneDetail } = this.data
if (hormoneDetail.recordId > 0) {
wx.navigateTo({
url: `/patient/pages/hormones/index?id=${hormoneDetail.recordId}`,
})
}
else {
wx.navigateTo({
url: '/patient/pages/hormonesStart/index',
})
}
},
handleReg() {
app.zdPermissionVerification(3, 0, '')
},
@ -560,7 +573,14 @@ Page({ @@ -560,7 +573,14 @@ Page({
toastShow: true,
toastType: 'question-toast',
toastParams: {
content: { 1: '???', 2: '???' }[type],
title: {
1: '生活质量自评',
2: '激素记录',
}[type],
content: {
1: 'GO-QOL生活质量量表,是《中国甲状腺相关眼病诊断和治疗指南(2022年)》中提及的唯一可居家自测的甲状腺眼病评估量表,反映了疾病对患者生活质量的影响。得分越低影响越大,让患者主观感受清晰可见。',
2: '激素治疗不是“越多越好”。《中国甲状腺相关眼病诊断和治疗指南(2022年)》指出,剂量越高短期效果可能越好,但不良反应也会更大,并且同一疗程需严格控制累积剂量。 激素相关风险包括肝损伤、血压升高、血糖升高、电解质紊乱、消化道出血和感染等,且风险与用药剂量和用药时间相关。 规范记录每次用药时间、剂量与不适反应,可帮助及时发现风险线索,便于医生综合评估疗效与安全性并调整方案;这是用药安全管理的关键一步。',
}[type],
close: true,
},
})

44
src/patient/pages/index/index.wxml

@ -36,13 +36,15 @@ @@ -36,13 +36,15 @@
<image class="more" src="{{imageUrl}}icon118.png?t={{Timestamp}}"></image>
</view>
<view class="kkd1" wx:if="{{qolShow && hormoneShow}}">
<view class="k-qol" bind:tap="routerTo" data-url="/patient/pages/qolReport/index">
<view class="k-qol" catch:tap="handleAddQol">
<view class="title" catch:tap="handleQuestionToast" data-type="1">
生活质量自评
<image class="k-question" src="{{imageUrl}}icon120.png?t={{Timestamp}}"></image>
</view>
<view class="content" wx:if="{{qolDetail.TotalScore}}">
<view class="num {{qolDetail.TotalScore>=0 && 'status1'}} {{qolDetail.TotalScore>=40 && 'status2'}} {{qolDetail.TotalScore>=80 && 'status3'}}">
<view
class="num {{qolDetail.TotalScore>=0 && 'status1'}} {{qolDetail.TotalScore>=40 && 'status2'}} {{qolDetail.TotalScore>=80 && 'status3'}}"
>
{{qolDetail.TotalScore}}
<text class="sub">分</text>
</view>
@ -64,10 +66,10 @@ @@ -64,10 +66,10 @@
<block wx:if="{{qolDetail.CreateTime}}">最近 {{qolDetail.CreateDate}}</block>
</view>
<view class="no-tip" wx:else>记录主观感受</view>
<image class="add" catch:tap="handleAddQol" src="{{imageUrl}}icon127.png?t={{Timestamp}}"></image>
<image class="add" src="{{imageUrl}}icon127.png?t={{Timestamp}}"></image>
</view>
</view>
<view class="k-hormones" bind:tap="routerTo" data-url="/patient/pages/qolReport/index?scrollId=proit-hormone">
<view class="k-hormones" bind:tap="handleHormone">
<image
class="status"
wx:if="{{hormoneDetail.medicationMethod==1}}"
@ -96,35 +98,14 @@ @@ -96,35 +98,14 @@
<image class="none" wx:else src="{{imageUrl}}bg45.png?t={{Timestamp}}"></image>
<view class="k-footer">
<view class="date" wx:if="{{hormoneDetail.dosage}}">最近 {{hormoneDetail.createTime}}</view>
<view class="no-tip" wx:else>关注不良反应</view>
<image
class="add"
wx:if="{{hormoneDetail.recordId>0}}"
catch:tap="routerTo"
data-url="/patient/pages/hormones/index?id={{hormoneDetail.recordId}}"
src="{{imageUrl}}icon127.png?t={{Timestamp}}"
></image>
<image
class="add"
wx:else
catch:tap="routerTo"
data-url="/patient/pages/hormonesStart/index"
src="{{imageUrl}}icon127.png?t={{Timestamp}}"
></image>
<view class="no-tip" wx:else>遵医嘱安全用药</view>
<image class="add" src="{{imageUrl}}icon127.png?t={{Timestamp}}"></image>
</view>
</view>
</view>
<view class="kkd2" wx:if="{{medicalInsuranceShow && hospitalMapShow}}">
<view
class="k-item"
bind:tap="routerTo"
data-status="{{hospitalMapJump}}"
data-url="/patient/pages/doctor/index"
>
<view
class="wrap"
style="background: url('{{imageUrl}}icon128.png?t={{Timestamp}}') no-repeat bottom right/122rpx 134rpx"
>
<view class="k-item" bind:tap="routerTo" data-status="{{hospitalMapJump}}" data-url="/patient/pages/doctor/index">
<view class="wrap" style="background: url('{{imageUrl}}icon128.png?t={{Timestamp}}') no-repeat center/cover">
<view class="title">就诊地图</view>
<view class="content">附近的医院</view>
</view>
@ -135,10 +116,7 @@ @@ -135,10 +116,7 @@
data-status="{{medicalInsuranceJump}}"
data-url="/patient/pages/medical/index"
>
<view
class="wrap"
style="background: url('{{imageUrl}}icon129.png?t={{Timestamp}}') no-repeat bottom right/122rpx 134rpx"
>
<view class="wrap" style="background: url('{{imageUrl}}icon129.png?t={{Timestamp}}') no-repeat center/cover">
<view class="title">医保查询</view>
<view class="content">政策轻松查询</view>
</view>

2
src/patient/pages/liveDetail/index.scss

@ -300,7 +300,7 @@ @@ -300,7 +300,7 @@
position: fixed;
z-index: 2;
right: 14rpx;
bottom: 264rpx;
bottom: 364rpx;
width: 84rpx;
height: 84rpx;
box-shadow: 0 4rpx 24rpx 0 rgba(51, 5, 109, 0.17);

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

@ -1,9 +1,9 @@ @@ -1,9 +1,9 @@
<page-meta page-style="{{ toastShow || toastShow ? 'overflow: hidden;' : '' }}" />
<navbar fixed title="" custom-style="background:{{background}}">
<van-icon name="arrow-left" slot="left" size="18px" color="#000" bind:tap="handleBack" />
</navbar>
<page-meta page-style="{{ toastShow || toastShow ? 'overflow: hidden;' : '' }}" />
<view
class="page"
style="background: url('{{imageUrl}}bg10.png?t={{Timestamp}}') no-repeat top center/100% 610rpx;padding-top:{{pageTop+22}}px;"
@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
<view class="info">
<view class="date">{{detail.BeginTime}}</view>
<view class="stat">
<view class="s-item" bind:tap="handleShare" wx:if="{{detail.ShareNum}}">
<view class="s-item" bind:tap="handleShare" wx:if="{{detail.ShareNum && detail.PosterUrl}}">
<image class="icon" src="{{imageUrl}}icon39.png?t={{Timestamp}}"></image>
{{detail.ShareNum}}
</view>

41
src/patient/pages/liveResult/index.scss

@ -7,16 +7,16 @@ page { @@ -7,16 +7,16 @@ page {
background: linear-gradient(180deg, #ece4fa 0%, #f6f8f9 100%) no-repeat top center/100% 412rpx;
.page-container {
.card {
margin: 0 34rpx 0;
margin: 0 40rpx 0;
display: flex;
justify-content: center;
align-items: center;
gap: 24rpx;
.icon {
width: 148rpx;
height: 148rpx;
}
.wrap {
padding-top: 18rpx;
.status {
font-size: 48rpx;
color: #b982ff;
@ -31,14 +31,14 @@ page { @@ -31,14 +31,14 @@ page {
color: #b982ff;
font-weight: bold;
}
.h1{
.h1 {
margin-left: 10rpx;
}
}
}
}
.container {
margin: 52rpx 34rpx 0;
margin: 52rpx 40rpx 0;
padding: 50rpx 0 66rpx;
background: linear-gradient(180deg, rgba(244, 235, 255, 0.77) 0%, #ffffff 35.06%, #ffffff 100%);
box-shadow: 0rpx 4rpx 24rpx 0rpx rgba(70, 67, 81, 0.04);
@ -90,36 +90,9 @@ page { @@ -90,36 +90,9 @@ page {
}
}
.qol {
margin: 32rpx 34rpx 0;
position: relative;
height: 202rpx;
margin: 32rpx 40rpx 0;
box-shadow: 0 4rpx 12rpx rgba(70, 67, 81, 0.04);
.title {
padding-top: 2rpx;
padding-left: 46rpx;
font-size: 28rpx;
color: #ffffff;
width: 208rpx;
text-align: center;
}
.content {
padding: 88rpx 0 0 40rpx;
font-size: 28rpx;
color: #827f8c;
}
.btn {
position: absolute;
top: 86rpx;
right: 40rpx;
width: 190rpx;
height: 64rpx;
font-size: 32rpx;
color: #ffffff;
line-height: 64rpx;
text-align: center;
background: linear-gradient(351deg, #ffd300 0%, #ec7c2f 100%);
border-radius: 56rpx 56rpx 56rpx 56rpx;
}
height: 228rpx;
}
.go-live {
position: fixed;
@ -148,7 +121,7 @@ page { @@ -148,7 +121,7 @@ page {
white-space: nowrap;
justify-content: center;
border-radius: 122rpx;
box-shadow: 0 4rpx 12rpx rgba(70, 67, 81, 0.4);
box-shadow: 0 4rpx 12rpx rgba(70, 67, 81, 0.12);
background: linear-gradient(0deg, #ffffff 0%, #e8d6ff 100%);
border: 1px solid #ffffff;
outline: none;

8
src/patient/pages/liveResult/index.wxml

@ -38,13 +38,9 @@ @@ -38,13 +38,9 @@
</view>
<view
class="qol"
style="background: url('{{imageUrl}}bg47.png?t={{Timestamp}}') no-repeat top center/100% 202rpx"
style="background: url('{{imageUrl}}bg47.png?t={{Timestamp}}') no-repeat top center/100% 228rpx"
bind:tap="handleAddQol"
>
<view class="title">2022年指南推荐</view>
<view class="content">分数越高,生活质量越高</view>
<view class="btn">立即测试</view>
</view>
></view>
<view class="go-live" wx:if="{{detail.BeginTimeValue * 1 < dateValue * 1 && detail.Type==1}}" bind:tap="handleLive">
立即进入直播间
</view>

3
src/patient/pages/medical/index.json

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
{
"usingComponents": {
"navbar": "/components/navbar/index",
"pickerArea": "/components/pickerArea/index"
"pickerArea": "/components/pickerArea/index",
"van-popup": "@vant/weapp/popup/index"
}
}

96
src/patient/pages/medical/index.scss

@ -56,7 +56,7 @@ page { @@ -56,7 +56,7 @@ page {
justify-content: space-between;
color: #adacb2;
font-size: 36rpx;
.disable{
.disable {
position: absolute;
top: 0;
left: 0;
@ -111,3 +111,97 @@ page { @@ -111,3 +111,97 @@ page {
}
}
}
.select-hostipal {
background-color: #f6f8f9;
position: relative;
.s-header {
background: linear-gradient(180deg, #f1e6ff 0%, #f6f8f9 29.75%, #f6f8f9 100%);
padding-bottom: 34rpx;
.title {
padding: 48rpx 40rpx 0;
font-size: 40rpx;
color: #211d2e;
font-weight: bold;
}
.search {
margin: 30rpx 40rpx 0;
padding: 0 30rpx;
display: flex;
align-items: center;
background: #ffffff;
border-radius: 98rpx 98rpx 98rpx 98rpx;
.icon {
width: 40rpx;
height: 40rpx;
}
.input {
flex: 1;
padding-left: 12rpx;
font-size: 32rpx;
color: #211d2e;
height: 80rpx;
line-height: 80rpx;
}
.input-place {
color: #adacb2;
}
}
}
.s-list {
padding: 0 40rpx 200rpx;
height: 45vh;
overflow-y: auto;
.s-item {
margin-bottom: 24rpx;
padding: 30rpx 32rpx;
font-size: 36rpx;
color: #211d2e;
line-height: 48rpx;
background-color: #ffffff;
border-radius: 32rpx;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12rpx;
border: 1px solid #fff;
.icon {
opacity: 0;
width: 48rpx;
height: 48rpx;
}
&.active {
color: #b982ff;
background: linear-gradient(180deg, #f9f4ff 0%, #f9f4ff 100%);
.icon {
opacity: 1;
}
}
}
.s-none {
display: block;
margin: 0 auto;
width: 80%;
}
}
.s-footer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
box-sizing: border-box;
padding: 30rpx 40rpx 64rpx;
background: #ffffff;
box-shadow: 0rpx -2rpx 26rpx 0rpx rgba(0, 0, 0, 0.08);
.btn {
height: 88rpx;
font-size: 32rpx;
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(344deg, #ffbcf9 0%, #b982ff 100%);
border-radius: 100rpx 100rpx 100rpx 100rpx;
}
}
}

167
src/patient/pages/medical/index.ts

@ -4,19 +4,124 @@ Page({ @@ -4,19 +4,124 @@ Page({
data: {
bannerList: [],
LNG: '' as number | string,
LAT: '' as number | string,
provinceName: '',
provinceId: '',
cityName: '',
cityId: '',
searchName: '',
hostipalName: '',
hostipalId: '',
hospitalPolicyId: '',
hostipalList: [] as any[],
selectHostipalList: [] as any[],
hIndex: '',
show: false,
},
onLoad() {
app.waitLogin({ type: [1] }).then(() => {
app.mpBehavior({ PageName: 'PG_PatientMedicalInsuranceInquiry' })
this.getBanner()
this.handleToggleSite()
})
},
handleToggleSite() {
if (!this.data.LNG) {
wx.getSetting({
success: (res) => {
if (
res.authSetting['scope.userFuzzyLocation'] != undefined
&& res.authSetting['scope.userFuzzyLocation'] == true
) {
// 获取当前位置
this.getFuzzyLocation()
}
else if (res.authSetting['scope.userFuzzyLocation'] == undefined) {
// 获取当前位置
this.getFuzzyLocation()
}
else {
wx.showModal({
title: '请求授权当前位置',
content: '需要获取您的地理位置,请确认授权',
confirmColor: '#8c75d0',
success: (res) => {
if (res.cancel) {
// 取消授权
wx.showToast({
title: '拒绝授权',
icon: 'none',
duration: 1000,
})
}
else if (res.confirm) {
// 确定授权,通过wx.openSetting发起授权请求
wx.openSetting({
success: (res) => {
if (res.authSetting['scope.userFuzzyLocation'] == true) {
wx.showToast({
title: '授权成功',
icon: 'success',
duration: 1000,
})
// 再次授权,调用wx.getLocation的API
this.getFuzzyLocation()
}
else {
wx.showToast({
title: '授权失败',
icon: 'none',
duration: 1000,
})
}
},
})
}
},
})
}
},
})
}
else {
this.setData({
LNG: '',
LAT: '',
})
this.getLocationInfo()
}
},
getFuzzyLocation() {
wx.getFuzzyLocation({
success: (res) => {
this.setData({
LNG: res.longitude,
LAT: res.latitude,
})
this.getLocationInfo()
},
})
},
getLocationInfo() {
wx.ajax({
method: 'GET',
url: '?r=zd/hospital/location-info',
data: {
lng: this.data.LNG,
lat: this.data.LAT,
},
}).then((res) => {
this.setData({
provinceId: res.ProvinceId,
provinceName: res.ProvinceName,
cityId: res.CityId,
cityName: res.CityName,
})
this.getHosList()
})
},
getBanner() {
@ -30,6 +135,9 @@ Page({ @@ -30,6 +135,9 @@ Page({
})
})
},
handleSite() {
app.mpBehavior({ PageName: 'BTN_PatientMedicalInsuranceInquirySelectCity' })
},
handleChangeSite(e: WechatMiniprogram.CustomEvent) {
const detail = e.detail
this.setData({
@ -41,6 +149,13 @@ Page({ @@ -41,6 +149,13 @@ Page({
hostipalName: '',
hospitalPolicyId: '',
})
if (!detail.ProvinceId) {
wx.showToast({
icon: 'none',
title: '请选择省份',
})
return
}
this.getHosList()
},
getHosList() {
@ -53,24 +168,65 @@ Page({ @@ -53,24 +168,65 @@ Page({
cityId,
},
}).then((res) => {
if (res.length == 0) {
wx.showToast({
title: `${cityId ? '城市' : '省份'}暂无医保医院信息`,
icon: 'none',
})
}
this.setData({
hostipalList: res.map((item) => {
return { id: item.hospitalId, name: item.hospitalName, pId: item.hospitalPolicyId }
hostipalList: res.map((item, index) => {
return { id: item.hospitalId, name: item.hospitalName, pId: item.hospitalPolicyId, index }
}),
})
})
},
handleChange(e) {
const { hostipalList } = this.data
const hItem = hostipalList[e.detail.value]
handleSearch() {
const { searchName, hostipalList } = this.data
this.setData({
selectHostipalList: hostipalList.filter(item => !searchName || item.name.includes(searchName)),
})
},
handleHostipal() {
app.mpBehavior({ PageName: 'BTN_PatientMedicalInsuranceInquirySelectHospital' })
this.setData({
show: true,
searchName: '',
hIndex: '',
selectHostipalList: [...this.data.hostipalList],
})
},
handleSelectHos(e) {
const { index } = e.currentTarget.dataset
this.setData({
hIndex: index,
})
},
handleHosSure() {
const { hostipalList, hIndex } = this.data
if (!hIndex) {
wx.showToast({
icon: 'none',
title: '请选择医院',
})
}
const hItem = hostipalList[hIndex]
this.setData({
show: false,
hostipalName: hItem.name,
hostipalId: hItem.id,
hospitalPolicyId: hItem.pId,
})
},
onHosClose() {
this.setData({
show: false,
hIndex: '',
})
},
handleHostipalDisable() {
const { provinceId, hostipalList } = this.data
app.mpBehavior({ PageName: 'BTN_PatientMedicalInsuranceInquirySelectHospital' })
if (provinceId && !hostipalList.length) {
wx.showToast({
title: '暂无医院',
@ -84,6 +240,7 @@ Page({ @@ -84,6 +240,7 @@ Page({
})
},
handleSubmit() {
app.mpBehavior({ PageName: 'BTN_PatientMedicalInsuranceInquirySearch' })
if (!this.data.hostipalId) {
wx.showToast({
icon: 'none',

67
src/patient/pages/medical/index.wxml

@ -1,3 +1,5 @@ @@ -1,3 +1,5 @@
<page-meta page-style="{{ show ? 'overflow: hidden;' : '' }}" />
<navbar fixed title="" custom-style="background:{{background}}" z-index="10">
<van-icon name="arrow-left" slot="left" size="18px" color="#000" bind:tap="handleBack" />
</navbar>
@ -21,10 +23,9 @@ @@ -21,10 +23,9 @@
pid="{{provinceId}}"
cid="{{cityId}}"
cname="{{cityName}}"
required="{{true}}"
bind:ok="handleChangeSite"
>
<view class="picker-content">
<view class="picker-content" bind:tap="handleSite">
<block wx:if="{{provinceName}}">{{provinceName}}{{provinceName == cityName ? '' : cityName}}</block>
<block wx:else>选择省份城市</block>
<van-icon name="arrow-down" />
@ -36,14 +37,12 @@ @@ -36,14 +37,12 @@
<image class="icon" src="{{imageUrl}}icon111.png?t={{Timestamp}}"></image>
我就诊的医院
</view>
<picker mode="selector" range="{{hostipalList}}" range-key="name" bind:change="handleChange">
<view class="picker-content">
<block wx:if="{{hostipalName}}">{{hostipalName}}</block>
<block wx:else>选择就诊医院</block>
<van-icon name="arrow-down" />
<view wx:if="{{!provinceId || !hostipalList.length}}" class="disable" catch:tap="handleHostipalDisable"></view>
</view>
</picker>
<view class="picker-content" bind:tap="handleHostipal">
<block wx:if="{{hostipalName}}">{{hostipalName}}</block>
<block wx:else>选择就诊医院</block>
<van-icon name="arrow-down" />
<view wx:if="{{!provinceId || !hostipalList.length}}" class="disable" catch:tap="handleHostipalDisable"></view>
</view>
</view>
<view class="submit-btn" bind:tap="handleSubmit">医保查询</view>
</view>
@ -64,3 +63,51 @@ @@ -64,3 +63,51 @@
></image>
</view>
</view>
<van-popup
show="{{ show }}"
position="bottom"
round
closeable
bind:close="onHosClose"
safe-area-inset-bottom="{{false}}"
>
<view class="select-hostipal">
<view class="s-header">
<view class="title">选择医院</view>
<view class="search">
<image class="icon" src="{{imageUrl}}icon138.png?t={{Timestamp}}"></image>
<input
class="input"
placeholder-class="input-place"
type="text"
model:value="{{searchName}}"
placeholder="请输入医院名称搜索"
confirm-type="search"
bindconfirm="handleSearch"
/>
</view>
</view>
<view class="s-list">
<view
class="s-item {{item.index === hIndex && 'active'}}"
wx:for="{{selectHostipalList}}"
wx:key="index"
bind:tap="handleSelectHos"
data-index="{{item.index}}"
>
{{item.name}}
<image class="icon" src="{{imageUrl}}icon139.png?t={{Timestamp}}"></image>
</view>
<image
wx:if="{{!selectHostipalList.length}}"
class="s-none"
mode="widthFix"
src="{{imageUrl}}none.png?t={{Timestamp}}"
></image>
</view>
<view class="s-footer">
<view class="btn" bind:tap="handleHosSure">确认</view>
</view>
</view>
</van-popup>

17
src/patient/pages/medicalDetail/index.scss

@ -98,12 +98,13 @@ page { @@ -98,12 +98,13 @@ page {
.row {
margin-top: 32rpx;
.r-title {
font-size: 32rpx;
font-size: 36rpx;
color: #211d2e;
font-weight: bold;
display: flex;
align-items: center;
gap: 12rpx;
line-height: 44rpx;
&::before {
content: '';
width: 6rpx;
@ -115,9 +116,9 @@ page { @@ -115,9 +116,9 @@ page {
.r-content {
margin-top: 24rpx;
padding-bottom: 32rpx;
font-size: 32rpx;
font-size: 36rpx;
color: #211d2e;
line-height: 40rpx;
line-height: 64rpx;
white-space: pre-line;
word-break: break-all;
border-bottom: 1px solid #f6f8f9;
@ -125,17 +126,19 @@ page { @@ -125,17 +126,19 @@ page {
}
.tip {
margin-top: 32rpx;
font-size: 32rpx;
font-size: 36rpx;
color: #b982ff;
}
.feedback {
margin: 24rpx 0 0;
font-size: 32rpx;
margin: 48rpx 0 0;
font-size: 36rpx;
color: #b982ff;
display: flex;
align-items: center;
justify-content: center;
gap: 12rpx;
text-decoration: underline;
text-underline-offset: 6rpx;
.icon {
width: 44rpx;
height: 44rpx;
@ -154,7 +157,7 @@ page { @@ -154,7 +157,7 @@ page {
align-items: center;
justify-content: space-between;
gap: 22rpx;
box-shadow: 0 -10rpx 10rpx #f6f8f9;
box-shadow: 0 -6rpx 34rpx rgba(0, 0, 0, 0.1);
.btn {
height: 88rpx;
text-align: center;

19
src/patient/pages/medicalDetail/index.ts

@ -20,6 +20,7 @@ Page({ @@ -20,6 +20,7 @@ Page({
id: options.id,
})
app.waitLogin({ type: [1] }).then(() => {
app.mpBehavior({ PageName: 'PG_PatientMedicalInsurancePolicy' })
this.getDetail()
})
},
@ -45,12 +46,14 @@ Page({ @@ -45,12 +46,14 @@ Page({
return medicationMethodList.map(item => item.medicationMethodName).join('、')
},
handleInfo() {
app.mpBehavior({ PageName: 'BTN_PatientMedicalInsurancePolicyMedication' })
this.setData({
popupShow: true,
popupType: 'popup13',
})
},
handleFeedback() {
app.mpBehavior({ PageName: 'BTN_PatientMedicalInsurancePolicyError' })
wx.ajax({
method: 'POST',
url: '?r=xd/hospital-policy/add-feedback',
@ -65,9 +68,15 @@ Page({ @@ -65,9 +68,15 @@ Page({
})
},
handleConsult() {
this.setData({
show: true,
})
app.mpBehavior({ PageName: 'BTN_PatientMedicalInsurancePolicyConsult' })
if (this.data.detail.telephone) {
this.setData({
show: true,
})
}
else {
this.handleCustomerService()
}
},
onClose() {
this.setData({
@ -86,6 +95,7 @@ Page({ @@ -86,6 +95,7 @@ Page({
this.onClose()
},
handleCustomerService() {
app.mpBehavior({ PageName: 'PG_PatientMedicalInsurancePolicyCustomerService' })
this.setData({
popupShow: true,
popupType: 'popup12',
@ -99,6 +109,7 @@ Page({ @@ -99,6 +109,7 @@ Page({
this.onClose()
},
handleHostipal() {
app.mpBehavior({ PageName: 'BTN_PatientMedicalInsurancePolicyHospital' })
wx.navigateTo({
url: `/patient/pages/hospital/index?id=${this.data.detail.hospitalId || ''}`,
})
@ -107,7 +118,7 @@ Page({ @@ -107,7 +118,7 @@ Page({
const { popupType } = this.data
if (popupType === 'popup13') {
wx.navigateTo({
url:`/patient/pages/repositoryDetail/index?id=${this.data.detail.picTextId}`,
url: `/patient/pages/repositoryDetail/index?id=${this.data.detail.picTextId}`,
})
}
this.handlePopupCancel()

34
src/patient/pages/qolReport/index.ts

@ -7,6 +7,7 @@ Page({ @@ -7,6 +7,7 @@ Page({
data: {
footerBtnShow: false,
hormoneDetail: { recordId: '' },
qolDetail: {} as any,
// 默认月度
type: '2',
@ -47,12 +48,28 @@ Page({ @@ -47,12 +48,28 @@ Page({
app.waitLogin({ type: [1] }).then(() => {
this.handleChangeType()
this.getList()
this.getQol()
this.getHormone()
if (options.scrollId) {
this.scrollPoint(`#${options.scrollId}`)
}
})
},
getQol() {
wx.ajax({
method: 'GET',
url: '?r=xd/qol/index',
data: {},
}).then((res) => {
this.setData({
qolDetail: {
...res.newRecord,
isTodayRecord: res.isTodayRecord,
CreateDate: dayjs(res.newRecord.CreateTime).format('MM-DD'),
},
})
})
},
getHormone() {
wx.ajax({
method: 'GET',
@ -546,8 +563,21 @@ Page({ @@ -546,8 +563,21 @@ Page({
},
handleQol() {
this.handleHideFooterBtn()
wx.navigateTo({
url: '/patient/pages/qol/index',
const { qolDetail } = this.data
const url
= qolDetail.Id && qolDetail.isTodayRecord
? `/patient/pages/qolAdd/index?id=${qolDetail.Id}&edit=1`
: `/patient/pages/qol/index`
wx.redirectTo({
url,
success() {
if (qolDetail.isTodayRecord) {
wx.showToast({
icon: 'none',
title: '每日仅录入1次,您可修改选项',
})
}
},
})
},
handleHormoneDetail(e) {

2
src/patient/pages/repositoryDetail/index.scss

@ -3,6 +3,8 @@ @@ -3,6 +3,8 @@
box-sizing: border-box;
margin-top: -20rpx;
padding: 40rpx 30rpx 200rpx;
max-width: 100vw;
overflow-x: hidden;
.banner {
.title {

Loading…
Cancel
Save