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 @@ @@ -56,7 +56,7 @@
}
&::after {
position: absolute;
content: '';
content: "";
bottom: -10rpx;
left: 50%;
transform: translateX(-50%);
@ -69,12 +69,22 @@ @@ -69,12 +69,22 @@
}
}
.tab-item {
position: relative;
padding-top: 10rpx;
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.dot {
position: absolute;
top: 10rpx;
right: 40rpx;
width: 10rpx;
height: 10rpx;
border-radius: 50%;
background-color: red;
}
.icon {
display: block;

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

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

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

@ -1,6 +1,11 @@ @@ -1,6 +1,11 @@
<view class="tabbar">
<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>
<view class="popup-tip" wx:if="{{showEntryCase}}">
<view class="content">
@ -22,6 +27,7 @@ @@ -22,6 +27,7 @@
bind:tap="handleTab"
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-active" src="{{imageUrl}}tabbar/{{item.iconActive}}?t={{Timestamp}}"></image>
<view class="name">{{item.name}}</view>

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

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

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

@ -295,6 +295,17 @@ @@ -295,6 +295,17 @@
&:last-of-type {
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 {
flex-shrink: 0;
position: relative;

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

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

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

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

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

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

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

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

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

@ -100,7 +100,7 @@ @@ -100,7 +100,7 @@
<view class="btn1" bind:tap="handleSubmit">直接提交我的反馈信息</view>
<view class="btn2" bind:tap="handleInvite" wx:if="{{auth.canFeedbackInvite}}">提交并邀约质控医生</view>
<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>
</view>

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

@ -310,6 +310,18 @@ page { @@ -310,6 +310,18 @@ page {
width: 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 {
padding: 16rpx 32rpx;
flex: 1;

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

@ -25,6 +25,7 @@ Page({ @@ -25,6 +25,7 @@ Page({
show1: false,
focus: false,
fold: true,
scrollTop: 0,
scrollIntoView: "",
@ -89,7 +90,7 @@ Page({ @@ -89,7 +90,7 @@ Page({
this.setData({
show1: res.show === 1,
});
if (res.show === 2) {
if (res.show !== 1) {
this.init();
}
});
@ -468,4 +469,14 @@ Page({ @@ -468,4 +469,14 @@ Page({
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 @@ @@ -134,16 +134,22 @@
<image class="icon" src="{{imageUrl}}icon-voice.png?t={{Timestamp}}"></image>
</customRecord>
<input
wx:if="{{focus}}"
class="input"
placeholder-class="place-class"
placeholder-class="place-input"
type="text"
fixed
focus="{{focus}}"
always-embed
model:value="{{sendMessage}}"
placeholder="请输入"
cursor-spacing="{{30}}"
confirm-type="send"
bindconfirm="handleSendMessage"
bindblur="handleBlur"
bindfocus="handleFocus"
/>
<view class="place" wx:else bind:tap="handleFocus">{{sendMessage}}</view>
<image
class="icon-add"
src="{{imageUrl}}icon-circle-add.png?t={{Timestamp}}"

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

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

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

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

14
src/pages/cases/index.ts

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

15
src/pages/chatRoomList/index.ts

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

3
src/pages/chatRoomList/index.wxml

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

12
src/pages/my/index.ts

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

Loading…
Cancel
Save