This commit is contained in:
唐明明
2022-02-18 10:50:30 +08:00
9 changed files with 97 additions and 22 deletions

View File

@@ -11,8 +11,8 @@
<sent-voice v-if="chatType === 0" :conversationType="conversationType" :targetId="targetId"
@success="onSuccess" />
<sent-text v-if="chatType === 1" :conversationType="conversationType" :targetId="targetId"
@success="onSuccess" />
<view class="msg-type msg-popups" @click="showPopups = !showPopups">
@success="onSuccess" @focus="onHidePopus" />
<view class="msg-type msg-popups" @click="() => { showPopups = !showPopups, onHidePopus }">
<image class="icon" src="@/static/icon/popups-icon.png"></image>
</view>
</view>
@@ -56,7 +56,13 @@
},
onSuccess() {
this.$emit('onSuccess')
}
},
// 处理弹出层
onHidePopus(){
if(this.showPopups){
this.showPopups = false
}
}
}
}
</script>