Browse Source

bug处理

main
kola-web 3 months ago
parent
commit
a631fb5a53
  1. 12
      src/custom-tab-bar/index.scss
  2. 1
      src/custom-tab-bar/index.ts
  3. 8
      src/custom-tab-bar/index.wxml
  4. 2
      src/echart/components/homeLevel1/index.wxml
  5. 11
      src/echart/components/homeLevel2/index.scss
  6. 2
      src/echart/components/homeLevel2/index.ts
  7. 1
      src/echart/components/homeLevel2/index.wxml
  8. 1
      src/module1/pages/auditDoctorDetail/index.scss
  9. 1
      src/module1/pages/auditDoctorDetail/index.wxml
  10. 2
      src/module1/pages/casesFeedback/index.wxml
  11. 12
      src/module1/pages/chatRoom/index.scss
  12. 13
      src/module1/pages/chatRoom/index.ts
  13. 8
      src/module1/pages/chatRoom/index.wxml
  14. 2
      src/module1/pages/setCaseDoctor/index.ts
  15. 2
      src/module1/pages/setChatDoctor/index.ts
  16. 14
      src/pages/cases/index.ts
  17. 15
      src/pages/chatRoomList/index.ts
  18. 3
      src/pages/chatRoomList/index.wxml
  19. 12
      src/pages/home/index.ts
  20. 12
      src/pages/my/index.ts

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

@ -56,7 +56,7 @@
} }
&::after { &::after {
position: absolute; position: absolute;
content: ''; content: "";
bottom: -10rpx; bottom: -10rpx;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
@ -69,12 +69,22 @@
} }
} }
.tab-item { .tab-item {
position: relative;
padding-top: 10rpx; padding-top: 10rpx;
flex: 1; flex: 1;
display: flex; display: flex;
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 {
display: block; display: block;

1
src/custom-tab-bar/index.ts

@ -13,6 +13,7 @@ Component({
data: { data: {
showEntryCase: false, showEntryCase: false,
active: 0, active: 0,
notice: false,
tabbar: [ tabbar: [
{ {
path: "/pages/home/index", path: "/pages/home/index",

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

@ -1,6 +1,11 @@
<view class="tabbar"> <view class="tabbar">
<block wx:for="{{tabbar}}" wx:key="index"> <block wx:for="{{tabbar}}" wx:key="index">
<view class="custom" wx:if="{{item.custom && userInfo.DoctorLevel<3}}" bind:tap="handleTab" data-index="{{index}}"> <view
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">
@ -22,6 +27,7 @@
bind:tap="handleTab" bind:tap="handleTab"
data-index="{{index}}" data-index="{{index}}"
> >
<view class="dot" wx:if="{{notice && index===3}}"></view>
<image class="icon" src="{{imageUrl}}tabbar/{{item.icon}}?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> <image class="icon-active" src="{{imageUrl}}tabbar/{{item.iconActive}}?t={{Timestamp}}"></image>
<view class="name">{{item.name}}</view> <view class="name">{{item.name}}</view>

2
src/echart/components/homeLevel1/index.wxml

@ -84,7 +84,7 @@
</view> </view>
<view class="cooperate" wx:if="{{cooperateList.length}}"> <view class="cooperate" wx:if="{{cooperateList.length}}">
<view class="cooperate-header"> <view class="cooperate-header">
<view class="name">我合作的医生({{inviteList.length}})</view> <view class="name">我合作的医生({{cooperateList.length}})</view>
<view class="fold" bind:tap="toggleFold1"> <view class="fold" bind:tap="toggleFold1">
<block wx:if="{{fold1}}"> <block wx:if="{{fold1}}">
展开 展开

11
src/echart/components/homeLevel2/index.scss

@ -295,6 +295,17 @@
&:last-of-type { &:last-of-type {
margin-bottom: 0; margin-bottom: 0;
} }
.invite-doctor {
position: absolute;
top: 0;
right: 0;
padding: 2rpx 16rpx;
font-size: 22rpx;
color: #00b4c5;
line-height: 28rpx;
border-radius: 0 16rpx 0 16rpx;
background-color: #d7edee;
}
.avatar { .avatar {
flex-shrink: 0; flex-shrink: 0;
position: relative; position: relative;

2
src/echart/components/homeLevel2/index.ts

@ -52,7 +52,7 @@ Component({
query.select("#fold2").boundingClientRect(); query.select("#fold2").boundingClientRect();
query.exec((res) => { query.exec((res) => {
this.setData({ this.setData({
foldHeight2: res[1].height, foldHeight2: res[0].height,
}); });
}); });
}, },

1
src/echart/components/homeLevel2/index.wxml

@ -189,6 +189,7 @@
<view class="line"></view> <view class="line"></view>
<view class="label">{{item.DepartmentName}}</view> <view class="label">{{item.DepartmentName}}</view>
</block> </block>
<view class="invite-doctor">蒋亮医生指派</view>
</view> </view>
<view class="w-container"> <view class="w-container">
<text class="hostipal">{{item.HospitalName}}</text> <text class="hostipal">{{item.HospitalName}}</text>

1
src/module1/pages/auditDoctorDetail/index.scss

@ -149,7 +149,6 @@ page {
} }
.reject { .reject {
width: 648rpx;
background-color: transparent; background-color: transparent;
.r-badge { .r-badge {
position: relative; position: relative;

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

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

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

@ -100,7 +100,7 @@
<view class="btn1" bind:tap="handleSubmit">直接提交我的反馈信息</view> <view class="btn1" bind:tap="handleSubmit">直接提交我的反馈信息</view>
<view class="btn2" bind:tap="handleInvite" wx:if="{{auth.canFeedbackInvite}}">提交并邀约质控医生</view> <view class="btn2" bind:tap="handleInvite" wx:if="{{auth.canFeedbackInvite}}">提交并邀约质控医生</view>
<view class="public" wx:if="{{auth.canFeedbackOpen}}"> <view class="public" wx:if="{{auth.canFeedbackOpen}}">
<radio class="radio" checked="{{isOpen===1}}" bind:tap="handleTogleOpen"> <radio class="radio" checked="{{isOpen===1}}" color="#00B4C5" bind:tap="handleTogleOpen">
病历公开(选择公开后,本科室医生均查看病历) 病历公开(选择公开后,本科室医生均查看病历)
</radio> </radio>
</view> </view>

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

@ -310,6 +310,18 @@ page {
width: 48rpx; width: 48rpx;
height: 48rpx; height: 48rpx;
} }
.place {
padding: 16rpx 32rpx;
flex: 1;
background: #f6f6f6;
border-radius: 212rpx 212rpx 212rpx 212rpx;
font-size: 28rpx;
color: #000;
&:empty::after {
content: "请输入";
color: rgba(205, 205, 205, 1);
}
}
.input { .input {
padding: 16rpx 32rpx; padding: 16rpx 32rpx;
flex: 1; flex: 1;

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

@ -25,6 +25,7 @@ Page({
show1: false, show1: false,
focus: false,
fold: true, fold: true,
scrollTop: 0, scrollTop: 0,
scrollIntoView: "", scrollIntoView: "",
@ -89,7 +90,7 @@ Page({
this.setData({ this.setData({
show1: res.show === 1, show1: res.show === 1,
}); });
if (res.show === 2) { if (res.show !== 1) {
this.init(); this.init();
} }
}); });
@ -468,4 +469,14 @@ Page({
data: { roomId: this.data.id }, data: { roomId: this.data.id },
}); });
}, },
handleFocus() {
this.setData({
focus: true,
});
},
handleBlur() {
this.setData({
focus: false,
});
},
}); });

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

@ -134,16 +134,22 @@
<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
wx:if="{{focus}}"
class="input" class="input"
placeholder-class="place-class" placeholder-class="place-input"
type="text" type="text"
fixed fixed
focus="{{focus}}"
always-embed
model:value="{{sendMessage}}" model:value="{{sendMessage}}"
placeholder="请输入" placeholder="请输入"
cursor-spacing="{{30}}" cursor-spacing="{{30}}"
confirm-type="send" confirm-type="send"
bindconfirm="handleSendMessage" bindconfirm="handleSendMessage"
bindblur="handleBlur"
bindfocus="handleFocus"
/> />
<view class="place" wx:else bind:tap="handleFocus">{{sendMessage}}</view>
<image <image
class="icon-add" class="icon-add"
src="{{imageUrl}}icon-circle-add.png?t={{Timestamp}}" src="{{imageUrl}}icon-circle-add.png?t={{Timestamp}}"

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

@ -194,7 +194,7 @@ Page({
events: { events: {
acceptDataFromOpenedPage: (data: any) => { acceptDataFromOpenedPage: (data: any) => {
this.setData({ this.setData({
HospitalId: data.hid, hospitalId: data.hid,
HospitalName: data.hname, HospitalName: data.hname,
}); });
this.handleSearch(); this.handleSearch();

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

@ -186,7 +186,7 @@ Page({
events: { events: {
acceptDataFromOpenedPage: (data: any) => { acceptDataFromOpenedPage: (data: any) => {
this.setData({ this.setData({
HospitalId: data.hid, hospitalId: data.hid,
HospitalName: data.hname, HospitalName: data.hname,
}); });
this.handleSearch(); this.handleSearch();

14
src/pages/cases/index.ts

@ -73,8 +73,8 @@ Page({
}); });
}, },
onShow() { onShow() {
this.handleNav({ currentTarget: { dataset: { nav: "0" } } });
this.setData({ this.setData({
nav: "0",
needDeal: app.globalData.needDeal, needDeal: app.globalData.needDeal,
}); });
app.globalData.needDeal = ""; app.globalData.needDeal = "";
@ -90,6 +90,18 @@ Page({
userInfo, userInfo,
}); });
}); });
this.getNotice();
});
},
getNotice() {
wx.ajax({
method: "GET",
url: "?r=takeda/doctor/todo",
data: {},
}).then((res) => {
this.getTabBar().setData({
notice: res.notReadChatRoomCount > 0,
});
}); });
}, },
getBaseInfo() { getBaseInfo() {

15
src/pages/chatRoomList/index.ts

@ -63,6 +63,8 @@ Page({
readStatus: "", readStatus: "",
userInfo: {}, userInfo: {},
noReadCount: 0,
}, },
onLoad() { onLoad() {
this.getTabBar().setData({ this.getTabBar().setData({
@ -82,6 +84,18 @@ Page({
userInfo, userInfo,
}); });
}); });
this.getNotice();
});
},
getNotice() {
wx.ajax({
method: "GET",
url: "?r=takeda/doctor/todo",
data: {},
}).then((res) => {
this.getTabBar().setData({
notice: res.notReadChatRoomCount > 0,
});
}); });
}, },
getBaseInfo() { getBaseInfo() {
@ -145,6 +159,7 @@ Page({
const list = res.page === 1 ? res.list : [...this.data.list, ...res.list]; const list = res.page === 1 ? res.list : [...this.data.list, ...res.list];
this.setData({ this.setData({
list, list,
noReadCount: res.noReadCount,
pagination: { pagination: {
page: res.page, page: res.page,
pages: res.pages, pages: res.pages,

3
src/pages/chatRoomList/index.wxml

@ -123,7 +123,8 @@
<view class="btn {{readStatus==='2' && 'active'}}" bind:tap="handleRead" data-value="2">未读</view> <view class="btn {{readStatus==='2' && 'active'}}" bind:tap="handleRead" data-value="2">未读</view>
<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" bind:tap="handleReadAll">全部标为已读</view> <view class="all-read" wx:if="{{noReadCount>0}}" bind:tap="handleReadAll">全部标为已读</view>
<view class="all-read" wx:else>暂无未读消息</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}}">

12
src/pages/home/index.ts

@ -32,6 +32,7 @@ Page({
userInfo, userInfo,
}); });
}); });
this.getNotice();
}); });
}, },
onShow() { onShow() {
@ -44,6 +45,17 @@ Page({
hide: true, hide: true,
}); });
}, },
getNotice() {
wx.ajax({
method: "GET",
url: "?r=takeda/doctor/todo",
data: {},
}).then((res) => {
this.getTabBar().setData({
notice: res.notReadChatRoomCount > 0,
});
});
},
handleBindDoctor() { handleBindDoctor() {
const scene = app.globalData.scene; const scene = app.globalData.scene;
if (scene?.doctorId) { if (scene?.doctorId) {

12
src/pages/my/index.ts

@ -18,6 +18,18 @@ Page({
userInfo, userInfo,
}); });
}); });
this.getNotice();
});
},
getNotice() {
wx.ajax({
method: "GET",
url: "?r=takeda/doctor/todo",
data: {},
}).then((res) => {
this.getTabBar().setData({
notice: res.notReadChatRoomCount > 0,
});
}); });
}, },
getDoctorDict() { getDoctorDict() {

Loading…
Cancel
Save