This commit is contained in:
2023-12-20 13:45:32 +08:00
parent 52d4730dc6
commit 8bbb79ad6d
3 changed files with 8 additions and 6 deletions

View File

@ -3,9 +3,11 @@ import baseurl from './baseurl.js'
// Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') // Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
var request = function(config) { var request = function(config) {
return new Promise((resolve, rejected) => { return new Promise((resolve, rejected) => {
const urls = config.url.split('?')[0]
if (config.url != '/nurseApplet/chatRecord/updateReadStatus' && config.url != if (config.url != '/nurseApplet/chatRecord/updateReadStatus' && config.url !=
"/nurseApplet/chatRecord/sendMessage" && config.url != "/nurseApplet/chatRecord/sendMessage" && config.url !=
`/applet/sign/apply/checkSignApply/` + uni.getStorageSync('userinfo').cardNo) { `/applet/sign/apply/checkSignApply/` + uni.getStorageSync('userinfo').cardNo && urls !=
`/nurseApplet/chatRecord/getChatRecord`) {
uni.showLoading({ uni.showLoading({
title: '' title: ''
}); });

View File

@ -10,7 +10,7 @@
</text> </text>
</view> </view>
</view> </view>
<view class="contentcenter"> <view class="contentcenter" :style="Number(region)==2?'':'height:500rpx'">
<view class="home" @tap="goonline"> <view class="home" @tap="goonline">
<image src="@/static/qianyue.png" mode=""></image> <image src="@/static/qianyue.png" mode=""></image>
<view class="name"> <view class="name">
@ -47,13 +47,13 @@
服务记录 服务记录
</view> </view>
</view> </view>
<view class="home" @tap='gointegration'> <view class="home" @tap='gointegration' v-if="Number(region)==2">
<image src="@/static/zhaohufangan.png" mode=""></image> <image src="@/static/zhaohufangan.png" mode=""></image>
<view class="name"> <view class="name">
一体化照护方案 一体化照护方案
</view> </view>
</view> </view>
<view class="home" @tap='gonurseRecord'> <view class="home" @tap='gonurseRecord' v-if="Number(region)==2">
<image src="@/static/zhaohujilu.png" mode=""></image> <image src="@/static/zhaohujilu.png" mode=""></image>
<view class="name"> <view class="name">
照护记录 照护记录
@ -61,7 +61,7 @@
</view> </view>
<view class="home"> <view class="home">
</view> </view>
<view class="home"> <view class="home" v-if="Number(region)==2">
</view> </view>
</view> </view>
<view class="contentbottom"> <view class="contentbottom">

View File

@ -315,7 +315,7 @@
} }
getChatRecord(obj).then(res => { getChatRecord(obj).then(res => {
res.data.forEach(e => { res.data.forEach(e => {
if (e.readStatus == 0) { if (Number(e.readStatus) == 0) {
this.Read() this.Read()
} }
}) })