Browse Source

众测问题处理

dev
kola-web 1 month 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. 69
      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. 35
      src/patient/pages/personalInformation/index.scss
  28. 8
      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 @@ -6,3 +6,5 @@ svn add . --no-ignore --force
# Commit the changes with a message
svn ci -m "版本更新"
exit

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

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

19
src/components/toast/index.scss

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

1
src/components/toast/index.wxml

@ -686,7 +686,6 @@ @@ -686,7 +686,6 @@
style="background: url({{imageUrl}}bg13.png?t={{Timestamp}}) no-repeat top center/100%"
>
<view class="title">感谢您的信任</view>
<view class="content">医生可远程关注您的健康状况啦</view>
<view class="container">
<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({ @@ -54,7 +54,7 @@ Page({
},
onShow() {
app.waitLogin({ type: [2] }).then((_res) => {
app.mpBehavior({ doctor:true, PageName: 'PG_DoctorIMDetail' })
app.mpBehavior({ doctor: true, PageName: 'PG_DoctorIMDetail' })
this.getDoctorDetail()
this.getPatientDetail()
this.getMessageList()
@ -89,7 +89,10 @@ Page({ @@ -89,7 +89,10 @@ Page({
res.LastAdlTimeName = dayjs(res.LastAdlTime).from(dayjs().format('YYYY-MM-DD')).replace(' ', '')
}
this.setData({
patientDetail: res,
patientDetail: {
...res,
BecomePatientTime: dayjs(res.BecomePatientTime).format('YYYY-MM-DD'),
},
})
})
},
@ -168,7 +171,7 @@ Page({ @@ -168,7 +171,7 @@ Page({
})
},
handleSendDate() {
app.mpBehavior({ doctor:true, PageName: 'BTN_DoctorIMDetailClinicHours' })
app.mpBehavior({ doctor: true, PageName: 'BTN_DoctorIMDetailClinicHours' })
const {
messageList,
doctor: { Clinic },
@ -223,7 +226,7 @@ Page({ @@ -223,7 +226,7 @@ Page({
})
},
handleSendShow() {
app.mpBehavior({ doctor:true, PageName: 'BTN_DoctorIMDetailSendMessage' })
app.mpBehavior({ doctor: true, PageName: 'BTN_DoctorIMDetailSendMessage' })
this.setData({
messageListShow: true,
})
@ -360,7 +363,7 @@ Page({ @@ -360,7 +363,7 @@ Page({
})
},
handlePatientDetail() {
app.mpBehavior({ doctor:true, PageName: 'BTN_DoctorIMDetailPatient' })
app.mpBehavior({ doctor: true, PageName: 'BTN_DoctorIMDetailPatient' })
wx.navigateTo({
url: `/pages/d_patientDetail/index?id=${this.data.patientId}`,
})

4
src/pages/d_interactiveDoctor/index.wxml

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
<view class="edc" wx:if="{{patientDetail.IsEDC==='1'}}">EDC患者</view>
</view>
</view>
<view class="date">入组时间:2025-08-10</view>
<view class="date">注册时间:{{patientDetail.BecomePatientTime}}</view>
</view>
<view class="detail" bind:tap="handlePatientDetail">查看档案</view>
</view>
@ -138,7 +138,7 @@ @@ -138,7 +138,7 @@
</view>
</view>
<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>

2
src/pages/d_patient/index.wxml

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

1
src/pages/d_patientDetail/index.ts

@ -219,6 +219,7 @@ Page({ @@ -219,6 +219,7 @@ Page({
detail: {
...res,
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 @@ @@ -28,7 +28,7 @@
<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>
</view>
<view class="date">入组时间:2025-08-10</view>
<view class="date">注册时间:{{detail.BecomePatientTime}}</view>
</view>
</view>
</view>

8
src/pages/home/index.ts

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

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

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

69
src/patient/pages/index/index.scss

@ -4,8 +4,8 @@ page { @@ -4,8 +4,8 @@ page {
}
.page-title {
width: 226rpx;
height: 33rpx;
width: 266rpx;
height: 34rpx;
}
.page {
position: relative;
@ -128,24 +128,26 @@ page { @@ -128,24 +128,26 @@ page {
}
.qol {
margin: $page-margin;
padding: 192rpx 36rpx 0;
height: 272rpx;
padding: 188rpx 36rpx 0;
height: 280rpx;
box-sizing: border-box;
position: relative;
.date {
width: 368rpx;
position: absolute;
width: 320rpx;
height: 48rpx;
font-size: 28rpx;
color: #b982ff;
top: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
background: #ffffff;
border-radius: 48rpx 48rpx 48rpx 48rpx;
font-size: 24rpx;
color: #b982ff;
}
.btn {
width: 200rpx;
height: 48rpx;
font-size: 28rpx;
width: 216rpx;
height: 60rpx;
font-size: 32rpx;
color: #b982ff;
display: flex;
align-items: center;
@ -155,8 +157,8 @@ page { @@ -155,8 +157,8 @@ page {
border-radius: 48rpx 48rpx 48rpx 48rpx;
border: 1rpx solid #ffffff;
.icon {
width: 32rpx;
height: 32rpx;
width: 44rpx;
height: 44rpx;
}
}
}
@ -389,16 +391,47 @@ page { @@ -389,16 +391,47 @@ page {
}
.content {
font-size: 32rpx;
color: rgba(33, 29, 46, 1);
font-weight: bold;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
.title {
min-height: 84rpx;
font-size: 32rpx;
line-height: 42rpx;
color: rgba(33, 29, 46, 1);
font-weight: bold;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-line-clamp: 2;
-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({ @@ -7,7 +7,7 @@ Page({
today: dayjs().format('YYYY年MM月DD日 dddd'),
configList: [],
infoList: [],
infoList: [] as any,
storyList: [],
zdUserInfo: {} as any,
anyWhere: false,
@ -512,4 +512,54 @@ Page({ @@ -512,4 +512,54 @@ Page({
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 @@ @@ -78,12 +78,12 @@
<view
class="qol"
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"
data-url="/patient/pages/qolReport/index"
>
<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>
</view>
@ -144,7 +144,13 @@ @@ -144,7 +144,13 @@
indicator-color="rgba(39, 58, 101, 0.2)"
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="card"
@ -160,6 +166,26 @@ @@ -160,6 +166,26 @@
</view>
<view class="content">
<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

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

@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
<view class="date" wx:if="{{message.showTime}}">{{message.msgCreateTimeName}}</view>
<view class="doctor" wx:if="{{message.msgFromType==='2'}}">
<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 class="d-container">
<view class="guide" wx:if="{{message.msgContentType==='5'}}">

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

@ -52,6 +52,7 @@ @@ -52,6 +52,7 @@
</view>
<view class="footer">
<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:elif="{{ item.Status==100}}">已删除</view>
<view class="btn" wx:elif="{{item.Status==3 && item.ReplayVideoUrl}}">看回放</view>

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

@ -1,8 +1,15 @@ @@ -1,8 +1,15 @@
page {
background-color: #f6f8f9;
}
.page {
padding: 40rpx;
padding-bottom: 200rpx;
.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%;
padding: 30rpx 38rpx;
box-sizing: border-box;
.banner-new {
@ -169,20 +176,20 @@ @@ -169,20 +176,20 @@
// border-radius: 24rpx 24rpx 24rpx 24rpx;
// }
// }
}
.cancellation {
margin: 58rpx -38rpx 0;
height: 96rpx;
text-align: center;
line-height: 96rpx;
font-size: 32rpx;
color: rgba(195, 148, 255, 1);
border-top: 1px solid rgba(246, 248, 249, 1);
border-bottom: 1px solid rgba(246, 248, 249, 1);
&:last-of-type {
margin-top: 0;
border: none;
}
.cancellation {
margin: 32rpx 0 24rpx;
height: 88rpx;
background: #ffffff;
border-radius: 156rpx 156rpx 156rpx 156rpx;
text-align: center;
line-height: 96rpx;
font-size: 32rpx;
color: #c394ff;
&:last-of-type {
margin-top: 0;
border: none;
}
}

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

@ -59,9 +59,9 @@ @@ -59,9 +59,9 @@
<image
wx:if="{{item.id==1}}"
class="icon"
src="{{imageUrl}}{{zdUserInfo.Gender==2 ? 'icon58' : 'icon56'}}.png?t={{Timestamp}}"
src="{{imageUrl}}{{zdUserInfo.Gender==1 ? 'icon58' : 'icon56'}}.png?t={{Timestamp}}"
></image>
{{item.value}}{{item.id}}
{{item.value}}
</view>
</view>
</view>
@ -124,9 +124,9 @@ @@ -124,9 +124,9 @@
</view>
</view>
</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>
<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>
<van-popup

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

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

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

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

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

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

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

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
<view class="page">
<view
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="p-item active">

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

@ -165,7 +165,20 @@ page { @@ -165,7 +165,20 @@ page {
padding: 20rpx 40rpx calc(20rpx + env(safe-area-inset-bottom));
background-color: #fff;
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 {
flex: 1;
height: 88rpx;
font-size: 38rpx;
color: #ffffff;

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

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

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

@ -110,6 +110,10 @@ @@ -110,6 +110,10 @@
</view>
<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>
</view>

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

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

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

@ -334,6 +334,56 @@ Page({ @@ -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) {
if (e.from === 'button') {
const { id, index, type } = e.target.dataset

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

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
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;"
>
<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="tags">
<view class="scroll">
@ -46,6 +46,21 @@ @@ -46,6 +46,21 @@
</view>
<view class="inner">
<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>

Loading…
Cancel
Save