Browse Source

众测问题处理

dev
kola-web 2 months ago
parent
commit
55680f540a
  1. 2
      dist.ps1
  2. 2
      src/components/patient-tab-bar/index.scss
  3. 19
      src/components/toast/index.scss
  4. 1
      src/components/toast/index.wxml
  5. 2
      src/doc/pages/doc1/index.ts
  6. 6
      src/doc/pages/doc2/index.ts
  7. BIN
      src/images/bg13.png
  8. BIN
      src/images/bg14.png
  9. BIN
      src/images/bg16.png
  10. BIN
      src/images/bg19.png
  11. BIN
      src/images/icon74.png
  12. BIN
      src/images/start.png
  13. BIN
      src/images/title7.png
  14. BIN
      src/images/za-images/live-banner.png
  15. 13
      src/pages/d_interactiveDoctor/index.ts
  16. 4
      src/pages/d_interactiveDoctor/index.wxml
  17. 2
      src/pages/d_patient/index.wxml
  18. 1
      src/pages/d_patientDetail/index.ts
  19. 2
      src/pages/d_patientDetail/index.wxml
  20. 8
      src/pages/home/index.ts
  21. 14
      src/patient/pages/enterInfo/index.wxml
  22. 65
      src/patient/pages/index/index.scss
  23. 52
      src/patient/pages/index/index.ts
  24. 32
      src/patient/pages/index/index.wxml
  25. 2
      src/patient/pages/interactivePatient/index.wxml
  26. 1
      src/patient/pages/live/index.wxml
  27. 21
      src/patient/pages/personalInformation/index.scss
  28. 6
      src/patient/pages/personalInformation/index.wxml
  29. 10
      src/patient/pages/qol/index.scss
  30. 2
      src/patient/pages/qol/index.ts
  31. 12
      src/patient/pages/qol/index.wxml
  32. 2
      src/patient/pages/qolAdd/index.wxml
  33. 13
      src/patient/pages/qolReport/index.scss
  34. 5
      src/patient/pages/qolReport/index.ts
  35. 4
      src/patient/pages/qolReport/index.wxml
  36. 13
      src/patient/pages/qolResult/index.scss
  37. 24
      src/patient/pages/repository/index.scss
  38. 50
      src/patient/pages/repository/index.ts
  39. 17
      src/patient/pages/repository/index.wxml

2
dist.ps1

@ -6,3 +6,5 @@ svn add . --no-ignore --force
# Commit the changes with a message # Commit the changes with a message
svn ci -m "版本更新" svn ci -m "版本更新"
exit

2
src/components/patient-tab-bar/index.scss

@ -6,7 +6,7 @@
height: 48rpx; height: 48rpx;
} }
.name { .name {
font-size: 20rpx; font-size: 26rpx;
color: rgba(105, 104, 110, 1); color: rgba(105, 104, 110, 1);
&.active { &.active {
color: rgba(33, 29, 46, 1); color: rgba(33, 29, 46, 1);

19
src/components/toast/index.scss

@ -2328,30 +2328,27 @@
position: relative; position: relative;
padding: 100rpx 32rpx 32rpx; padding: 100rpx 32rpx 32rpx;
width: 630rpx; width: 630rpx;
height: 516rpx; height: 544rpx;
box-sizing: border-box; box-sizing: border-box;
.title { .title {
font-size: 40rpx; font-size: 48rpx;
color: #ffffff; color: #ffffff;
font-weight: bold; font-weight: bold;
} font-style: italic;
.content {
font-size: 32rpx;
color: #ffffff;
} }
.container { .container {
margin-top: 60rpx; margin-top: 76rpx;
font-size: 32rpx; font-size: 40rpx;
color: #211d2e; color: #211D2E;
text-align: center; text-align: center;
line-height: 48rpx; line-height: 68rpx;
.line { .line {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.high { .high {
color: #b982ff; color: #B982FF;
font-weight: bold; font-weight: bold;
} }
} }

1
src/components/toast/index.wxml

@ -686,7 +686,6 @@
style="background: url({{imageUrl}}bg13.png?t={{Timestamp}}) no-repeat top center/100%" style="background: url({{imageUrl}}bg13.png?t={{Timestamp}}) no-repeat top center/100%"
> >
<view class="title">感谢您的信任</view> <view class="title">感谢您的信任</view>
<view class="content">医生可远程关注您的健康状况啦</view>
<view class="container"> <view class="container">
<view class="line"> <view class="line">
您的 您的

2
src/doc/pages/doc1/index.ts

File diff suppressed because one or more lines are too long

6
src/doc/pages/doc2/index.ts

File diff suppressed because one or more lines are too long

BIN
src/images/bg13.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 272 KiB

After

Width:  |  Height:  |  Size: 256 KiB

BIN
src/images/bg14.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 272 KiB

After

Width:  |  Height:  |  Size: 264 KiB

BIN
src/images/bg16.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 KiB

After

Width:  |  Height:  |  Size: 265 KiB

BIN
src/images/bg19.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB

BIN
src/images/icon74.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
src/images/start.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 2.9 MiB

BIN
src/images/title7.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

BIN
src/images/za-images/live-banner.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 492 KiB

After

Width:  |  Height:  |  Size: 238 KiB

13
src/pages/d_interactiveDoctor/index.ts

@ -54,7 +54,7 @@ Page({
}, },
onShow() { onShow() {
app.waitLogin({ type: [2] }).then((_res) => { app.waitLogin({ type: [2] }).then((_res) => {
app.mpBehavior({ doctor:true, PageName: 'PG_DoctorIMDetail' }) app.mpBehavior({ doctor: true, PageName: 'PG_DoctorIMDetail' })
this.getDoctorDetail() this.getDoctorDetail()
this.getPatientDetail() this.getPatientDetail()
this.getMessageList() this.getMessageList()
@ -89,7 +89,10 @@ Page({
res.LastAdlTimeName = dayjs(res.LastAdlTime).from(dayjs().format('YYYY-MM-DD')).replace(' ', '') res.LastAdlTimeName = dayjs(res.LastAdlTime).from(dayjs().format('YYYY-MM-DD')).replace(' ', '')
} }
this.setData({ this.setData({
patientDetail: res, patientDetail: {
...res,
BecomePatientTime: dayjs(res.BecomePatientTime).format('YYYY-MM-DD'),
},
}) })
}) })
}, },
@ -168,7 +171,7 @@ Page({
}) })
}, },
handleSendDate() { handleSendDate() {
app.mpBehavior({ doctor:true, PageName: 'BTN_DoctorIMDetailClinicHours' }) app.mpBehavior({ doctor: true, PageName: 'BTN_DoctorIMDetailClinicHours' })
const { const {
messageList, messageList,
doctor: { Clinic }, doctor: { Clinic },
@ -223,7 +226,7 @@ Page({
}) })
}, },
handleSendShow() { handleSendShow() {
app.mpBehavior({ doctor:true, PageName: 'BTN_DoctorIMDetailSendMessage' }) app.mpBehavior({ doctor: true, PageName: 'BTN_DoctorIMDetailSendMessage' })
this.setData({ this.setData({
messageListShow: true, messageListShow: true,
}) })
@ -360,7 +363,7 @@ Page({
}) })
}, },
handlePatientDetail() { handlePatientDetail() {
app.mpBehavior({ doctor:true, PageName: 'BTN_DoctorIMDetailPatient' }) app.mpBehavior({ doctor: true, PageName: 'BTN_DoctorIMDetailPatient' })
wx.navigateTo({ wx.navigateTo({
url: `/pages/d_patientDetail/index?id=${this.data.patientId}`, url: `/pages/d_patientDetail/index?id=${this.data.patientId}`,
}) })

4
src/pages/d_interactiveDoctor/index.wxml

@ -15,7 +15,7 @@
<view class="edc" wx:if="{{patientDetail.IsEDC==='1'}}">EDC患者</view> <view class="edc" wx:if="{{patientDetail.IsEDC==='1'}}">EDC患者</view>
</view> </view>
</view> </view>
<view class="date">入组时间:2025-08-10</view> <view class="date">注册时间:{{patientDetail.BecomePatientTime}}</view>
</view> </view>
<view class="detail" bind:tap="handlePatientDetail">查看档案</view> <view class="detail" bind:tap="handlePatientDetail">查看档案</view>
</view> </view>
@ -138,7 +138,7 @@
</view> </view>
</view> </view>
<view class="avatar"> <view class="avatar">
<image class="a-img" mode="aspectFill" src="{{imageUrl}}za-images/5/doctor.png?t={{Timestamp}}"></image> <image class="a-img" mode="aspectFill" src="{{doctor.Img}}"></image>
</view> </view>
</view> </view>
</view> </view>

2
src/pages/d_patient/index.wxml

@ -35,7 +35,7 @@
<view class="edc" wx:if="{{item.IsEDC==1}}">EDC患者</view> <view class="edc" wx:if="{{item.IsEDC==1}}">EDC患者</view>
</view> </view>
</view> </view>
<view class="replay-date">入组时间:{{item.BecomePatientTime}}</view> <view class="replay-date">注册时间:{{item.BecomePatientTime}}</view>
</view> </view>
<view class="send" catch:tap="handleSend" data-index="{{index}}">消息</view> <view class="send" catch:tap="handleSend" data-index="{{index}}">消息</view>
</view> </view>

1
src/pages/d_patientDetail/index.ts

@ -219,6 +219,7 @@ Page({
detail: { detail: {
...res, ...res,
hideName: res.Name.replace(/^(.)(.*)$/, (_, first, rest) => first + '*'.repeat(rest.length)), hideName: res.Name.replace(/^(.)(.*)$/, (_, first, rest) => first + '*'.repeat(rest.length)),
BecomePatientTime: res.BecomePatientTime ? dayjs(res.BecomePatientTime).format('YYYY-MM-DD') : '',
}, },
}) })
}) })

2
src/pages/d_patientDetail/index.wxml

@ -28,7 +28,7 @@
<image wx:if="{{showTel}}" class="tel-icon" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image> <image wx:if="{{showTel}}" class="tel-icon" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
<image wx:else class="tel-icon" src="{{imageUrl}}icon62.png?t={{Timestamp}}"></image> <image wx:else class="tel-icon" src="{{imageUrl}}icon62.png?t={{Timestamp}}"></image>
</view> </view>
<view class="date">入组时间:2025-08-10</view> <view class="date">注册时间:{{detail.BecomePatientTime}}</view>
</view> </view>
</view> </view>
</view> </view>

8
src/pages/home/index.ts

@ -351,10 +351,10 @@ Page({
handleQuestion(e) { handleQuestion(e) {
const { question } = e.currentTarget.dataset const { question } = e.currentTarget.dataset
const content = { const content = {
1: '???', 1: '累计邀约的患者数',
2: '???', 2: '本月新邀约的患者数',
3: '???', 3: '有参与“中国甲状腺眼病登记项目”的患者。需要医生在小程序内的患者详情页进行自主标识。',
4: '???', 4: '根据GO-QOL变化情况激素用量情况,判断筛选的不达标需干预的患者。',
}[question] }[question]
wx.showModal({ wx.showModal({
content: content, content: content,

14
src/patient/pages/enterInfo/index.wxml

@ -31,18 +31,12 @@
<view class="row-title">患者性别</view> <view class="row-title">患者性别</view>
<view class="row"> <view class="row">
<view class="item {{gender==2 && 'active'}}" bind:tap="handleGender" data-id="2"> <view class="item {{gender==2 && 'active'}}" bind:tap="handleGender" data-id="2">
<image <image class="icon" src="{{imageUrl}}{{gender==2 ? 'icon57' : 'icon55'}}.png?t={{Timestamp}}"></image>
class="icon"
src="{{imageUrl}}{{gender==2 ? 'icon57' : 'icon55'}}.png?t={{Timestamp}}"
></image>
女性用户
</view> </view>
<view class="item {{gender==1 && 'active'}}" bind:tap="handleGender" data-id="1"> <view class="item {{gender==1 && 'active'}}" bind:tap="handleGender" data-id="1">
<image <image class="icon" src="{{imageUrl}}{{gender==1 ? 'icon58' : 'icon56'}}.png?t={{Timestamp}}"></image>
class="icon"
src="{{imageUrl}}{{gender==1 ? 'icon58' : 'icon56'}}.png?t={{Timestamp}}"
></image>
男性用户
</view> </view>
</view> </view>
<view class="row-title">患者年龄范围</view> <view class="row-title">患者年龄范围</view>

65
src/patient/pages/index/index.scss

@ -4,8 +4,8 @@ page {
} }
.page-title { .page-title {
width: 226rpx; width: 266rpx;
height: 33rpx; height: 34rpx;
} }
.page { .page {
position: relative; position: relative;
@ -128,24 +128,26 @@ page {
} }
.qol { .qol {
margin: $page-margin; margin: $page-margin;
padding: 192rpx 36rpx 0; padding: 188rpx 36rpx 0;
height: 272rpx; height: 280rpx;
box-sizing: border-box; box-sizing: border-box;
position: relative;
.date { .date {
width: 368rpx; position: absolute;
width: 320rpx;
height: 48rpx; height: 48rpx;
font-size: 28rpx; top: 0;
color: #b982ff; right: 0;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: #ffffff; font-size: 24rpx;
border-radius: 48rpx 48rpx 48rpx 48rpx; color: #b982ff;
} }
.btn { .btn {
width: 200rpx; width: 216rpx;
height: 48rpx; height: 60rpx;
font-size: 28rpx; font-size: 32rpx;
color: #b982ff; color: #b982ff;
display: flex; display: flex;
align-items: center; align-items: center;
@ -155,8 +157,8 @@ page {
border-radius: 48rpx 48rpx 48rpx 48rpx; border-radius: 48rpx 48rpx 48rpx 48rpx;
border: 1rpx solid #ffffff; border: 1rpx solid #ffffff;
.icon { .icon {
width: 32rpx; width: 44rpx;
height: 32rpx; height: 44rpx;
} }
} }
} }
@ -389,16 +391,47 @@ page {
} }
.content { .content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
.title {
min-height: 84rpx;
font-size: 32rpx; font-size: 32rpx;
line-height: 42rpx;
color: rgba(33, 29, 46, 1); color: rgba(33, 29, 46, 1);
font-weight: bold; font-weight: bold;
.title {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 3; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
.footer {
display: flex;
justify-content: flex-end;
gap: 32rpx;
.f-item {
display: flex;
align-items: center;
font-size: 28rpx;
color: #adacb2;
.icon {
margin-right: 8rpx;
width: 36rpx;
height: 36rpx;
}
}
.share {
padding: 0;
background-color: transparent;
margin: 0;
&::after {
border: none;
outline: none;
}
}
}
} }
} }

52
src/patient/pages/index/index.ts

@ -7,7 +7,7 @@ Page({
today: dayjs().format('YYYY年MM月DD日 dddd'), today: dayjs().format('YYYY年MM月DD日 dddd'),
configList: [], configList: [],
infoList: [], infoList: [] as any,
storyList: [], storyList: [],
zdUserInfo: {} as any, zdUserInfo: {} as any,
anyWhere: false, anyWhere: false,
@ -512,4 +512,54 @@ Page({
regGuide: false, regGuide: false,
}) })
}, },
handleToggleSave(e) {
const { index, sindex } = e.currentTarget.dataset
const list = this.data.infoList
const { Id, IsCollect } = list[index][sindex]
app.zdPermissionVerification(3, 3, `patient/pages/repository/index`).then(() => {
if (IsCollect == 1) {
wx.ajax({
method: 'POST',
url: '?r=zd/pic-text/cancel-collection',
data: {
ContentId: Id,
},
loading: true,
}).then(() => {
list[index][sindex].IsCollect = 0
list[index][sindex].CollectionPeopleNum = list[index][sindex].CollectionPeopleNum - 1
wx.showToast({
title: '取消收藏',
icon: 'none',
})
this.setData({
infoList: list,
})
})
} else {
wx.ajax({
method: 'POST',
url: '?r=zd/pic-text/collection',
data: {
ContentId: Id,
},
loading: true,
}).then(() => {
wx.showToast({
title: '收藏成功',
icon: 'none',
})
list[index][sindex].IsCollect = 1
list[index][sindex].CollectionPeopleNum = Number(list[index][sindex].CollectionPeopleNum) + 1
this.setData({
timeToastType: '10',
saveLock: true,
})
this.setData({
infoList: list,
})
})
}
})
},
}) })

32
src/patient/pages/index/index.wxml

@ -78,12 +78,12 @@
<view <view
class="qol" class="qol"
wx:if="{{card.code == 'adl' && card.showStatus == 1}}" wx:if="{{card.code == 'adl' && card.showStatus == 1}}"
style="background: url('{{imageUrl}}bg14.png?t={{Timestamp}}') no-repeat top center/100%" style="background: url('{{imageUrl}}bg{{qolDetail.CreateTime ? 14 : 19}}.png?t={{Timestamp}}') no-repeat top center/100%"
bind:tap="routerTo" bind:tap="routerTo"
data-url="/patient/pages/qolReport/index" data-url="/patient/pages/qolReport/index"
> >
<view class="date" wx:if="{{qolDetail.CreateTime}}">最近一次评测 {{qolDetail.CreateDate}}</view> <view class="date" wx:if="{{qolDetail.CreateTime}}">最近一次评测 {{qolDetail.CreateDate}}</view>
<view class="btn" wx:else catch:tap="routerTo" data-url="/patient/pages/qol/index"> <view class="btn" catch:tap="routerTo" data-url="/patient/pages/qol/index">
立即自测 立即自测
<image class="icon" src="{{imageUrl}}icon73.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}icon73.png?t={{Timestamp}}"></image>
</view> </view>
@ -144,7 +144,13 @@
indicator-color="rgba(39, 58, 101, 0.2)" indicator-color="rgba(39, 58, 101, 0.2)"
indicator-dots="{{infoList.length > 1}}" indicator-dots="{{infoList.length > 1}}"
> >
<swiper-item class="swiper-item" wx:for="{{infoList}}" wx:for-item="info" wx:key="index"> <swiper-item
class="swiper-item"
wx:for="{{infoList}}"
wx:for-item="info"
wx:for-index="infoIndex"
wx:key="index"
>
<view class="book-list"> <view class="book-list">
<view <view
class="card" class="card"
@ -160,6 +166,26 @@
</view> </view>
<view class="content"> <view class="content">
<view class="title">{{item.Title}}</view> <view class="title">{{item.Title}}</view>
<view class="footer">
<view class="f-item">
<image class="icon" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
<block wx:if="{{~~item.OpenNum}}">{{item.OpenNum}}</block>
</view>
<view
class="f-item {{detail.IsCollect == 1 && 'active'}}"
catch:tap="handleToggleSave"
data-index="{{infoIndex}}"
data-sindex="{{index}}"
>
<image
wx:if="{{item.IsCollect == 1}}"
class="icon"
src="{{imageUrl}}icon59.png?t={{Timestamp}}"
></image>
<image wx:else class="icon" src="{{imageUrl}}icon60.png?t={{Timestamp}}"></image>
<block wx:if="{{~~item.CollectionPeopleNum}}">{{item.CollectionPeopleNum}}</block>
</view>
</view>
</view> </view>
</view> </view>
<view <view

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

@ -33,7 +33,7 @@
<view class="date" wx:if="{{message.showTime}}">{{message.msgCreateTimeName}}</view> <view class="date" wx:if="{{message.showTime}}">{{message.msgCreateTimeName}}</view>
<view class="doctor" wx:if="{{message.msgFromType==='2'}}"> <view class="doctor" wx:if="{{message.msgFromType==='2'}}">
<view class="avatar"> <view class="avatar">
<image class="a-img" mode="aspectFill" src="{{imageUrl}}za-images//5/doctor.png?t={{Timestamp}}"></image> <image class="a-img" mode="aspectFill" src="{{doctorDetail.doctorAvatar}}"></image>
</view> </view>
<view class="d-container"> <view class="d-container">
<view class="guide" wx:if="{{message.msgContentType==='5'}}"> <view class="guide" wx:if="{{message.msgContentType==='5'}}">

1
src/patient/pages/live/index.wxml

@ -52,6 +52,7 @@
</view> </view>
<view class="footer"> <view class="footer">
<view class="people" wx:if="{{item.SignUpPeopleNum * 1}}">{{item.SignUpPeopleNum}}人已报名</view> <view class="people" wx:if="{{item.SignUpPeopleNum * 1}}">{{item.SignUpPeopleNum}}人已报名</view>
<view wx:else></view>
<view class="btn active" wx:if="{{ item.Status==99}}">已取消</view> <view class="btn active" wx:if="{{ item.Status==99}}">已取消</view>
<view class="btn active" wx:elif="{{ item.Status==100}}">已删除</view> <view class="btn active" wx:elif="{{ item.Status==100}}">已删除</view>
<view class="btn" wx:elif="{{item.Status==3 && item.ReplayVideoUrl}}">看回放</view> <view class="btn" wx:elif="{{item.Status==3 && item.ReplayVideoUrl}}">看回放</view>

21
src/patient/pages/personalInformation/index.scss

@ -1,8 +1,15 @@
page {
background-color: #f6f8f9;
}
.page { .page {
padding: 40rpx;
padding-bottom: 200rpx; padding-bottom: 200rpx;
.page-container { .page-container {
padding: 48rpx 40rpx;
border-radius: 24rpx 24rpx 24rpx 24rpx;
border: 2rpx solid #ffffff;
background: linear-gradient(180deg, #faf6ff 0%, #ffffff 8%, #ffffff 100%);
width: 100%; width: 100%;
padding: 30rpx 38rpx;
box-sizing: border-box; box-sizing: border-box;
.banner-new { .banner-new {
@ -169,22 +176,22 @@
// border-radius: 24rpx 24rpx 24rpx 24rpx; // border-radius: 24rpx 24rpx 24rpx 24rpx;
// } // }
// } // }
}
.cancellation { .cancellation {
margin: 58rpx -38rpx 0; margin: 32rpx 0 24rpx;
height: 96rpx; height: 88rpx;
background: #ffffff;
border-radius: 156rpx 156rpx 156rpx 156rpx;
text-align: center; text-align: center;
line-height: 96rpx; line-height: 96rpx;
font-size: 32rpx; font-size: 32rpx;
color: rgba(195, 148, 255, 1); color: #c394ff;
border-top: 1px solid rgba(246, 248, 249, 1);
border-bottom: 1px solid rgba(246, 248, 249, 1);
&:last-of-type { &:last-of-type {
margin-top: 0; margin-top: 0;
border: none; border: none;
} }
} }
}
.picker { .picker {
font-size: 28rpx; font-size: 28rpx;

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

@ -59,9 +59,9 @@
<image <image
wx:if="{{item.id==1}}" wx:if="{{item.id==1}}"
class="icon" class="icon"
src="{{imageUrl}}{{zdUserInfo.Gender==2 ? 'icon58' : 'icon56'}}.png?t={{Timestamp}}" src="{{imageUrl}}{{zdUserInfo.Gender==1 ? 'icon58' : 'icon56'}}.png?t={{Timestamp}}"
></image> ></image>
{{item.value}}{{item.id}} {{item.value}}
</view> </view>
</view> </view>
</view> </view>
@ -124,9 +124,9 @@
</view> </view>
</view> </view>
</view> </view>
</view>
<view class="cancellation" bind:tap="routerTo" data-url="/pages/login/index?back=1">切换医生端</view> <view class="cancellation" bind:tap="routerTo" data-url="/pages/login/index?back=1">切换医生端</view>
<view wx:if="{{zdUserInfo.IsRootUser==1}}" class="cancellation" bind:tap="handleLogout">注销账号</view> <view wx:if="{{zdUserInfo.IsRootUser==1}}" class="cancellation" bind:tap="handleLogout">注销账号</view>
</view>
</view> </view>
<van-popup <van-popup

10
src/patient/pages/qol/index.scss

@ -14,16 +14,15 @@ page {
.module1 { .module1 {
margin: 32rpx 40rpx 0; margin: 32rpx 40rpx 0;
padding: 214rpx 40rpx 0; padding: 214rpx 40rpx 0;
height: 1212rpx; height: 1034rpx;
box-sizing: border-box; box-sizing: border-box;
.content { .content {
font-size: 32rpx; font-size: 32rpx;
color: #69686e; color: #211d2e;
line-height: 56rpx; line-height: 56rpx;
} }
.container { .container {
margin-top: 32rpx; margin-top: 32rpx;
background: #f6f8f9;
border-radius: 24rpx 24rpx 24rpx 24rpx; border-radius: 24rpx 24rpx 24rpx 24rpx;
.title { .title {
padding-top: 32rpx; padding-top: 32rpx;
@ -42,7 +41,7 @@ page {
} }
} }
.progress { .progress {
margin: 30rpx 30rpx 0; margin: 30rpx 2rpx 0;
padding-bottom: 32rpx; padding-bottom: 32rpx;
.row { .row {
display: flex; display: flex;
@ -81,6 +80,7 @@ page {
} }
} }
.r-content { .r-content {
padding-bottom: 38rpx;
font-size: 32rpx; font-size: 32rpx;
color: #69686e; color: #69686e;
line-height: 56rpx; line-height: 56rpx;
@ -94,7 +94,7 @@ page {
} }
} }
.tip { .tip {
margin-top: 26rpx; margin-top: -10rpx;
font-size: 32rpx; font-size: 32rpx;
color: #69686e; color: #69686e;
text-align: right; text-align: right;

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

@ -3,7 +3,7 @@ const app = getApp<IAppOption>()
Page({ Page({
data: {}, data: {},
onLoad() { onLoad() {
app.waitLogin({ type: [0, 1] }).then(() => {}) app.waitLogin({ type: [1] }).then(() => {})
}, },
handleAdd() { handleAdd() {
wx.navigateTo({ wx.navigateTo({

12
src/patient/pages/qol/index.wxml

@ -23,8 +23,8 @@
<view class="line"></view> <view class="line"></view>
</view> </view>
<view class="r-content"> <view class="r-content">
<text class="name">初诊时</text> <text class="name">初诊时:</text>
了解疾病对你生活造成了多大影响,作为基线记录。 作为基线记录生活影响
<text class="reference">[3]</text> <text class="reference">[3]</text>
</view> </view>
</view> </view>
@ -35,8 +35,8 @@
<view class="line"></view> <view class="line"></view>
</view> </view>
<view class="r-content"> <view class="r-content">
<text class="name">治疗过程中:</text> <text class="name">诊疗中:</text>
分数上升说明你的主观感受得到改善,让你不再怀疑"是不是治疗白做了?" 分数上升说明主观改善
<text class="reference">[4]</text> <text class="reference">[4]</text>
</view> </view>
</view> </view>
@ -47,8 +47,8 @@
<view class="line"></view> <view class="line"></view>
</view> </view>
<view class="r-content"> <view class="r-content">
<text class="name">病情稳定期:</text> <text class="name">病情期:</text>
判断是否还需要心理支持或功能康复训练。 判断是否还需更多支持
<text class="reference">[2-3]</text> <text class="reference">[2-3]</text>
</view> </view>
</view> </view>

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

@ -4,7 +4,7 @@
<view class="page"> <view class="page">
<view <view
class="page-header" class="page-header"
style="background: url('{{imageUrl}}bg18.png?t={{Timestamp}}') no-repeat top center/100% 412rpx;padding-top:{{pageTop+20}}px;" style="background:#fff url('{{imageUrl}}bg18.png?t={{Timestamp}}') no-repeat top center/100% 412rpx;padding-top:{{pageTop+20}}px;"
> >
<view class="progress"> <view class="progress">
<view class="p-item active"> <view class="p-item active">

13
src/patient/pages/qolReport/index.scss

@ -165,7 +165,20 @@ page {
padding: 20rpx 40rpx calc(20rpx + env(safe-area-inset-bottom)); padding: 20rpx 40rpx calc(20rpx + env(safe-area-inset-bottom));
background-color: #fff; background-color: #fff;
box-shadow: 0 8rpx 32rpx rgba(25, 0, 57, 0.07); box-shadow: 0 8rpx 32rpx rgba(25, 0, 57, 0.07);
display: flex;
align-items: center;
.home {
padding: 0 34rpx;
text-align: center;
font-size: 28rpx;
color: #b982ff;
.icon {
width: 44rpx;
height: 44rpx;
}
}
.btn { .btn {
flex: 1;
height: 88rpx; height: 88rpx;
font-size: 38rpx; font-size: 38rpx;
color: #ffffff; color: #ffffff;

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

@ -317,6 +317,11 @@ Page({
url: '/patient/pages/qol/index', url: '/patient/pages/qol/index',
}) })
}, },
handleHome() {
wx.reLaunch({
url: '/patient/pages/index/index',
})
},
handleBack() { handleBack() {
wx.navigateBack({ wx.navigateBack({
fail() { fail() {

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

@ -110,6 +110,10 @@
</view> </view>
<view class="page-footer"> <view class="page-footer">
<view class="home" bind:tap="handleHome">
<image class="icon" src="{{imageUrl}}icon74.png?t={{Timestamp}}"></image>
<view>首页</view>
</view>
<view class="btn" bind:tap="handleQol">评测</view> <view class="btn" bind:tap="handleQol">评测</view>
</view> </view>
</view> </view>

13
src/patient/pages/qolResult/index.scss

@ -189,10 +189,15 @@ p age {
} }
} }
.report { .report {
margin-top: 152rpx; margin-top: 88rpx;
font-size: 32rpx; height: 88rpx;
color: #b982ff; display: flex;
text-align: center; align-items: center;
justify-content: center;
font-size: 36rpx;
color: #ffffff;
background: linear-gradient(197deg, #ffbcf9 0%, #b982ff 100%);
border-radius: 100rpx 100rpx 100rpx 100rpx;
} }
} }

24
src/patient/pages/repository/index.scss

@ -98,12 +98,16 @@ page {
} }
.inner { .inner {
flex: 1; flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
padding-bottom: 20rpx; padding-bottom: 20rpx;
.title { .title {
font-size: 32rpx; font-size: 32rpx;
color: rgba(33, 29, 46, 1); color: rgba(33, 29, 46, 1);
font-weight: bold; font-weight: bold;
line-height: 42rpx; line-height: 42rpx;
min-height: 84rpx;
} }
.date { .date {
margin-top: 10rpx; margin-top: 10rpx;
@ -129,28 +133,18 @@ page {
} }
} }
.footer { .footer {
margin-top: 10rpx;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
gap: 32rpx;
.f-item { .f-item {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 22rpx; font-size: 28rpx;
color: #b6b7ba; color: #adacb2;
.icon { .icon {
margin-right: 8rpx; margin-right: 8rpx;
width: 32rpx; width: 36rpx;
height: 32rpx; height: 36rpx;
}
&.active {
color: #e04775;
}
&::after {
margin: 18rpx;
content: '';
width: 2rpx;
height: 20rpx;
background-color: #f3f3f4;
} }
} }
.share { .share {

50
src/patient/pages/repository/index.ts

@ -334,6 +334,56 @@ Page({
}, },
}) })
}, },
handleToggleSave(e) {
const { index } = e.currentTarget.dataset
const list = this.data.list
const { Id, IsCollect } = list[index]
app.zdPermissionVerification(3, 3, `patient/pages/repository/index`).then(() => {
if (IsCollect == 1) {
wx.ajax({
method: 'POST',
url: '?r=zd/pic-text/cancel-collection',
data: {
ContentId: Id,
},
loading: true,
}).then(() => {
list[index].IsCollect = 0
list[index].CollectionPeopleNum = list[index].CollectionPeopleNum - 1
wx.showToast({
title: '取消收藏',
icon: 'none',
})
this.setData({
list,
})
})
} else {
wx.ajax({
method: 'POST',
url: '?r=zd/pic-text/collection',
data: {
ContentId: Id,
},
loading: true,
}).then(() => {
wx.showToast({
title: '收藏成功',
icon: 'none',
})
list[index].IsCollect = 1
list[index].CollectionPeopleNum = Number(list[index].CollectionPeopleNum) + 1
this.setData({
timeToastType: '10',
saveLock: true,
})
this.setData({
list,
})
})
}
})
},
onShareAppMessage(e: any) { onShareAppMessage(e: any) {
if (e.from === 'button') { if (e.from === 'button') {
const { id, index, type } = e.target.dataset const { id, index, type } = e.target.dataset

17
src/patient/pages/repository/index.wxml

@ -2,7 +2,7 @@
class="page" class="page"
style="--name: rgba(185, 130, 255, 1); --tag-bg: rgba(224, 71, 117, 0.13);background: url('{{imageUrl}}bg10.png?t={{Timestamp}}') no-repeat top center/100% 610rpx;padding-top:{{pageTop+22}}px;" style="--name: rgba(185, 130, 255, 1); --tag-bg: rgba(224, 71, 117, 0.13);background: url('{{imageUrl}}bg10.png?t={{Timestamp}}') no-repeat top center/100% 610rpx;padding-top:{{pageTop+22}}px;"
> >
<navbar fixed title="了解TED" custom-style="background:{{background}}"></navbar> <navbar fixed z-index="1000" title="了解TED" custom-style="background:{{background}}"></navbar>
<view class="sticky"> <view class="sticky">
<view class="tags"> <view class="tags">
<view class="scroll"> <view class="scroll">
@ -46,6 +46,21 @@
</view> </view>
<view class="inner"> <view class="inner">
<view class="title">{{item.Title}}</view> <view class="title">{{item.Title}}</view>
<view class="footer">
<view class="f-item">
<image class="icon" src="{{imageUrl}}icon63.png?t={{Timestamp}}"></image>
<block wx:if="{{~~item.OpenNum}}">{{item.OpenNum}}</block>
</view>
<view
class="f-item {{detail.IsCollect == 1 && 'active'}}"
catch:tap="handleToggleSave"
data-index="{{index}}"
>
<image wx:if="{{item.IsCollect == 1}}" class="icon" src="{{imageUrl}}icon59.png?t={{Timestamp}}"></image>
<image wx:else class="icon" src="{{imageUrl}}icon60.png?t={{Timestamp}}"></image>
<block wx:if="{{~~item.CollectionPeopleNum}}">{{item.CollectionPeopleNum}}</block>
</view>
</view>
</view> </view>
</view> </view>
</view> </view>

Loading…
Cancel
Save