Browse Source

bug处理

main
kola-web 3 months ago
parent
commit
971af0654b
  1. 2
      src/components/customRecord/index.scss
  2. 1
      src/components/customRecord/index.ts
  3. 49
      src/custom-tab-bar/index.scss
  4. 15
      src/custom-tab-bar/index.wxml
  5. 2
      src/module1/pages/auditDoctorDetail/index.wxml
  6. 6
      src/module1/pages/chatRoom/index.scss
  7. 2
      src/module1/pages/chatRoom/index.ts
  8. 2
      src/module1/pages/chatRoom/index.wxml
  9. 11
      src/module1/pages/chatRoomInfo/index.scss
  10. 9
      src/module1/pages/entryCases/index.scss
  11. 2
      src/module1/pages/entryCases/index.wxml
  12. 3
      src/module1/pages/setCaseDoctor/index.ts
  13. 11
      src/pages/cases/index.wxml
  14. 11
      src/pages/chatRoomList/index.ts
  15. 2
      src/pages/chatRoomList/index.wxml

2
src/components/customRecord/index.scss

@ -1,5 +1,7 @@
.record { .record {
&.record-slot { &.record-slot {
width: 100%;
height: 100%;
border: none; border: none;
} }
.icon { .icon {

1
src/components/customRecord/index.ts

@ -11,6 +11,7 @@ Component({
value: false, value: false,
}, },
}, },
externalClasses: ["custom-record"],
/** /**
* *

49
src/custom-tab-bar/index.scss

@ -76,25 +76,30 @@
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.dot {
position: absolute;
top: 10rpx;
right: 40rpx;
width: 10rpx;
height: 10rpx;
border-radius: 50%;
background-color: red;
}
.icon { .icon-wrap {
display: block; position: relative;
width: 48rpx;
height: 48rpx;
}
.icon-active {
display: none;
width: 48rpx; width: 48rpx;
height: 48rpx; height: 48rpx;
.icon {
display: block;
width: 100%;
height: 100%;
}
.icon-active {
display: none;
width: 100%;
height: 100%;
}
.dot {
position: absolute;
top: 0;
right: 0;
width: 10rpx;
height: 10rpx;
border-radius: 50%;
background-color: #ED4F39;
}
} }
.name { .name {
margin-top: 8rpx; margin-top: 8rpx;
@ -103,11 +108,13 @@
line-height: 21rpx; line-height: 21rpx;
} }
&.active { &.active {
.icon { .icon-wrap {
display: none; .icon {
} display: none;
.icon-active { }
display: block; .icon-active {
display: block;
}
} }
.name { .name {
color: rgba(0, 180, 197, 1); color: rgba(0, 180, 197, 1);

15
src/custom-tab-bar/index.wxml

@ -1,11 +1,6 @@
<view class="tabbar"> <view class="tabbar">
<block wx:for="{{tabbar}}" wx:key="index"> <block wx:for="{{tabbar}}" wx:key="index">
<view <view class="custom" wx:if="{{item.custom && userInfo.DoctorLevel<3}}" bind:tap="handleTab" data-index="{{index}}">
class="custom"
wx:if="{{item.custom && userInfo.DoctorLevel<3}}"
bind:tap="handleTab"
data-index="{{index}}"
>
<image class="add" src="{{imageUrl}}tabbar/add.png?t={{Timestamp}}"></image> <image class="add" src="{{imageUrl}}tabbar/add.png?t={{Timestamp}}"></image>
<view class="popup-tip" wx:if="{{showEntryCase}}"> <view class="popup-tip" wx:if="{{showEntryCase}}">
<view class="content"> <view class="content">
@ -27,9 +22,11 @@
bind:tap="handleTab" bind:tap="handleTab"
data-index="{{index}}" data-index="{{index}}"
> >
<view class="dot" wx:if="{{notice && index===3}}"></view> <view class="icon-wrap">
<image class="icon" src="{{imageUrl}}tabbar/{{item.icon}}?t={{Timestamp}}"></image> <view class="dot" wx:if="{{notice && index===3}}"></view>
<image class="icon-active" src="{{imageUrl}}tabbar/{{item.iconActive}}?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}tabbar/{{item.icon}}?t={{Timestamp}}"></image>
<image class="icon-active" src="{{imageUrl}}tabbar/{{item.iconActive}}?t={{Timestamp}}"></image>
</view>
<view class="name">{{item.name}}</view> <view class="name">{{item.name}}</view>
</view> </view>
</block> </block>

2
src/module1/pages/auditDoctorDetail/index.wxml

@ -83,7 +83,7 @@
<van-dialog <van-dialog
custom-style="background:transparent" custom-style="background:transparent"
use-slot use-slot
width="324" width="90vw"
show="{{ showReject }}" show="{{ showReject }}"
showCancelButton showCancelButton
confirm-button-color="rgba(0, 180, 197, 1)" confirm-button-color="rgba(0, 180, 197, 1)"

6
src/module1/pages/chatRoom/index.scss

@ -21,7 +21,7 @@ page {
border: 2rpx solid #ffffff; border: 2rpx solid #ffffff;
display: flex; display: flex;
gap: 28rpx; gap: 28rpx;
align-items: flex-start; align-items: center;
.photos { .photos {
position: relative; position: relative;
padding: 4rpx; padding: 4rpx;
@ -306,6 +306,10 @@ page {
gap: 12rpx; gap: 12rpx;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.custom-record{
width: 48rpx;
height: 48rpx;
}
.icon { .icon {
width: 48rpx; width: 48rpx;
height: 48rpx; height: 48rpx;

2
src/module1/pages/chatRoom/index.ts

@ -118,7 +118,7 @@ Page({
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
roomDoctors: res.roomDoctors, roomDoctors: res.roomDoctors,
newRoomDoctors: res.roomDoctors.slice(0, 4), newRoomDoctors: { ...res }.roomDoctors.slice(0, 4),
case: res.case, case: res.case,
chatGroupInfo: res.chatGroupInfo, chatGroupInfo: res.chatGroupInfo,
chatDoctor: res.chatDoctor, chatDoctor: res.chatDoctor,

2
src/module1/pages/chatRoom/index.wxml

@ -130,7 +130,7 @@
</view> </view>
<view class="page-footer" wx:if="{{case.caseStatus!=='4'}}"> <view class="page-footer" wx:if="{{case.caseStatus!=='4'}}">
<view class="header"> <view class="header">
<customRecord bind:file="handleSendAudio" slotIcon> <customRecord class="custom-record" bind:file="handleSendAudio" slotIcon>
<image class="icon" src="{{imageUrl}}icon-voice.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}icon-voice.png?t={{Timestamp}}"></image>
</customRecord> </customRecord>
<input <input

11
src/module1/pages/chatRoomInfo/index.scss

@ -7,24 +7,27 @@ page {
padding: 32rpx; padding: 32rpx;
border-radius: 16rpx; border-radius: 16rpx;
background-color: #fff; background-color: #fff;
display: flex; display: grid;
flex-wrap: wrap; grid-template-columns: repeat(4, 1fr);
gap: 28rpx; gap: 28rpx;
.user { .user {
width: 25%;
flex-shrink: 0; flex-shrink: 0;
.avatar { .avatar {
margin: 0 auto;
display: block; display: block;
width: 102rpx; width: 102rpx;
height: 102rpx; height: 102rpx;
} }
.name { .name {
margin-top: 14rpx; margin: 14rpx auto 0;
text-align: center; text-align: center;
font-size: 24rpx; font-size: 24rpx;
color: rgba(133, 133, 133, 1); color: rgba(133, 133, 133, 1);
line-height: 28rpx; line-height: 28rpx;
max-width: 4em; max-width: 4em;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
} }
} }
.add { .add {

9
src/module1/pages/entryCases/index.scss

@ -151,9 +151,10 @@ page {
height: 198rpx; height: 198rpx;
border-radius: 16rpx; border-radius: 16rpx;
background: linear-gradient(to bottom, #fff 0%, #fff 34%, #f6f6f6 34%, #f6f6f6 100%); background: linear-gradient(to bottom, #fff 0%, #fff 34%, #f6f6f6 34%, #f6f6f6 100%);
.record-btn { .custom-record {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center;
} }
.r-title { .r-title {
margin-top: 12rpx; margin-top: 12rpx;
@ -212,11 +213,11 @@ page {
text-overflow: ellipsis; text-overflow: ellipsis;
max-width: 13em; max-width: 13em;
} }
.preview{ .preview {
font-size: 32rpx; font-size: 32rpx;
color: #01B4C5; color: #01b4c5;
} }
.del{ .del {
position: absolute; position: absolute;
top: -16rpx; top: -16rpx;
right: -16rpx; right: -16rpx;

2
src/module1/pages/entryCases/index.wxml

@ -54,7 +54,7 @@
</view> </view>
</view> </view>
<view class="record"> <view class="record">
<customRecord class="record-btn" bind:file="handleAudio"></customRecord> <customRecord class="custom-record" bind:file="handleAudio"></customRecord>
<view class="r-title">您也可以长按录入语音</view> <view class="r-title">您也可以长按录入语音</view>
</view> </view>
</view> </view>

3
src/module1/pages/setCaseDoctor/index.ts

@ -247,9 +247,10 @@ Page({
const { feedBackInvite, caseId, DoctorId, params, detailInvite } = this.data; const { feedBackInvite, caseId, DoctorId, params, detailInvite } = this.data;
if (!DoctorId) { if (!DoctorId) {
wx.showToast({ wx.showToast({
title: "请选择指派医生", title: "请选择医生",
icon: "none", icon: "none",
}); });
return
} }
if (feedBackInvite) { if (feedBackInvite) {
wx.ajax({ wx.ajax({

11
src/pages/cases/index.wxml

@ -3,7 +3,12 @@
<view class="header"> <view class="header">
<view class="navbar"> <view class="navbar">
<view class="nav {{nav==='0' && 'active'}}" bind:tap="handleNav" data-nav="0">我的病历</view> <view class="nav {{nav==='0' && 'active'}}" bind:tap="handleNav" data-nav="0">我的病历</view>
<view wx:if="{{userInfo.DoctorLevel===3 && userInfo.IsSuper===1}}" class="nav {{nav==='3' && 'active'}}" bind:tap="handleNav" data-nav="3"> <view
wx:if="{{userInfo.DoctorLevel===3 && userInfo.IsSuper===1}}"
class="nav {{nav==='3' && 'active'}}"
bind:tap="handleNav"
data-nav="3"
>
全部病历 全部病历
<van-icon name="question" size="12" catch:tap="handleQuestion" data-index="3" color="rgba(224, 224, 224, 1)" /> <van-icon name="question" size="12" catch:tap="handleQuestion" data-index="3" color="rgba(224, 224, 224, 1)" />
</view> </view>
@ -179,7 +184,7 @@
<view class="list-total" wx:if="{{pagination.count}}">共有{{pagination.count}}条病历</view> <view class="list-total" wx:if="{{pagination.count}}">共有{{pagination.count}}条病历</view>
<view class="list-item" wx:for="{{list}}" bind:tap="handleDetail" wx:key="caseId" data-params="{{item}}"> <view class="list-item" wx:for="{{list}}" bind:tap="handleDetail" wx:key="caseId" data-params="{{item}}">
<image wx:if="{{item.isHighQuality==='1'}}" class="quality" src="{{imageUrl}}quality.png?t={{Timestamp}}"></image> <image wx:if="{{item.isHighQuality==='1'}}" class="quality" src="{{imageUrl}}quality.png?t={{Timestamp}}"></image>
<image class="quality" src="{{imageUrl}}quality.png?t={{Timestamp}}"></image> <image class="quality" src="{{imageUrl}}quality.png?t={{Timestamp}}"></image>
<view class="li-header"> <view class="li-header">
<view class="wrap"> <view class="wrap">
<view class="id">ID:{{item.caseNo}}</view> <view class="id">ID:{{item.caseNo}}</view>
@ -363,7 +368,7 @@
</view> </view>
</van-popup> </van-popup>
<van-popup show="{{ showArea }}" round position="bottom"> <van-popup show="{{ showArea }}" round position="bottom" z-index="100000">
<van-cascader <van-cascader
value="{{ cascaderValue }}" value="{{ cascaderValue }}"
title="请选择所在地区" title="请选择所在地区"

11
src/pages/chatRoomList/index.ts

@ -12,7 +12,7 @@ Page({
show4: false, show4: false,
show5: false, show5: false,
showArea: false, showArea: false,
fieldNames: { text: "label", value: "value", children: "children" }, fieldNames: { text: "label" },
area: [], area: [],
caseStatusList: {}, caseStatusList: {},
@ -466,11 +466,20 @@ Page({
data: {}, data: {},
}).then(() => { }).then(() => {
this.handleSearch(); this.handleSearch();
this.getNotice();
}); });
} }
}, },
}); });
}, },
handleNoRead() {
wx.showModal({
title: "暂无未读消息",
confirmColor: "#00B4C5",
cancelColor: "#141515",
showCancel: false,
});
},
}); });
export {}; export {};

2
src/pages/chatRoomList/index.wxml

@ -124,7 +124,7 @@
<view class="btn {{readStatus==='1' && 'active'}}" bind:tap="handleRead" data-value="1">已读</view> <view class="btn {{readStatus==='1' && 'active'}}" bind:tap="handleRead" data-value="1">已读</view>
</view> </view>
<view class="all-read" wx:if="{{noReadCount>0}}" bind:tap="handleReadAll">全部标为已读</view> <view class="all-read" wx:if="{{noReadCount>0}}" bind:tap="handleReadAll">全部标为已读</view>
<view class="all-read" wx:else>暂无未读消息</view> <view class="all-read" wx:else bind:tap="handleNoRead">暂无未读消息</view>
</view> </view>
<view class="room-list"> <view class="room-list">
<view class="card" wx:for="{{list}}" wx:key="msgId" bind:tap="handleRoom" data-params="{{item}}"> <view class="card" wx:for="{{list}}" wx:key="msgId" bind:tap="handleRoom" data-params="{{item}}">

Loading…
Cancel
Save