Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
闫晓茹 2023-11-09 17:31:47 +08:00
commit e2efd7fcaf
2 changed files with 10 additions and 12 deletions

View File

@ -14,15 +14,13 @@
{{item.patientName}} {{item.patientName}}
</view> </view>
<view class="text"> <view class="text">
{{item.content}} {{Number(item.messageType)==2?'[图片]':item.content}}
</view> </view>
<view class="count" v-if="item.messageCount>0"> <view class="count" v-if="item.messageCount>0">
{{item.messageCount}} {{item.messageCount}}
</view> </view>
</view> </view>
</view> </view>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
</view> </view>
</template> </template>
@ -86,7 +84,7 @@
console.log(newvalue, oldvalue, '55') console.log(newvalue, oldvalue, '55')
this.info(); this.info();
}, },
}, },
methods: { methods: {
// //

View File

@ -29,7 +29,6 @@
<view class="placeholder" id="placeholder"></view> <view class="placeholder" id="placeholder"></view>
</view> </view>
</scroll-view> </scroll-view>
<view class="background" @tap="information"> <view class="background" @tap="information">
<image src="/static/huanzhe.png" mode=""></image> <image src="/static/huanzhe.png" mode=""></image>
@ -57,8 +56,8 @@
<!-- 弹出拍照--> <!-- 弹出拍照-->
<view class="fun-box" :class="{'show-fun-box':showFunBtn}"> <view class="fun-box" :class="{'show-fun-box':showFunBtn}">
<u-grid :col="4" hover-class="contentType2-hover-class" :border="false"> <u-grid :col="4" hover-class="contentType2-hover-class" :border="false">
<u-grid-item v-for="(item, index) in funList" @tap.stop="tapGrid(index)" :index="index" :key="index" <u-grid-item v-for="(item, index) in funList" @click.native.stop="tapGrid(index)" :index="index"
bg-color="#f3f3f3"> :key="index" bg-color="#f3f3f3">
<u-icon :name="item.icon" :size="52"></u-icon> <u-icon :name="item.icon" :size="52"></u-icon>
<uni-icons style="opacity: 0.7;width: 52rpx;height: 52rpx; " v-if="index==2" <uni-icons style="opacity: 0.7;width: 52rpx;height: 52rpx; " v-if="index==2"
:type="index==2?'folder-add-filled':''" size="26"></uni-icons> :type="index==2?'folder-add-filled':''" size="26"></uni-icons>
@ -122,10 +121,10 @@
title: "拍摄", title: "拍摄",
uploadType: ["camera"] uploadType: ["camera"]
}, },
{ // {
icon: "", // icon: "",
title: "文件", // title: "",
}, // },
], ],
emojisList: [ emojisList: [
'😄', '😃', '😀', '😊', '😉', '😍', '😘', '😚', '😗', '😄', '😃', '😀', '😊', '😉', '😍', '😘', '😚', '😗',
@ -368,6 +367,7 @@
// }, // },
// //
tapGrid(index) { tapGrid(index) {
console.log(index)
if (index == 0) { if (index == 0) {
this.chooseImage(["album"]); this.chooseImage(["album"]);
} else if (index == 1) { } else if (index == 1) {
@ -381,11 +381,11 @@
// console.log(JSON.stringify(res.tempFilePaths)); // console.log(JSON.stringify(res.tempFilePaths));
} }
}); });
} }
}, },
// //
chooseImage(sourceType) { chooseImage(sourceType) {
console.log(sourceType)
var that = this var that = this
if (this.socketOpen == false) { if (this.socketOpen == false) {
return return