From 5de4ab87581870fdf99529db5a3b2df5ffe2f883 Mon Sep 17 00:00:00 2001 From: linxi Date: Sat, 14 Sep 2024 16:25:38 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E6=B6=88=E6=81=AF=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=A2=9E=E5=8A=A0=E5=88=A0=E9=99=A4=E4=BC=9A=E8=AF=9D?= =?UTF-8?q?=E6=8C=89=E9=92=AE=EF=BC=8C=E5=9C=A8=E8=81=8A=E5=A4=A9=E6=A1=86?= =?UTF-8?q?=E9=95=BF=E6=8C=89=E7=9A=84=E4=BD=8D=E7=BD=AE=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8C=89=E9=92=AE=EF=BC=8C=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=B0=86=E8=AF=A5=E6=9D=A1=E8=81=8A=E5=A4=A9?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_common/views/roomLogs.vue | 57 ++++++++++++++++++++++++++++------- 1 file changed, 46 insertions(+), 11 deletions(-) diff --git a/pkg_common/views/roomLogs.vue b/pkg_common/views/roomLogs.vue index 67f7cc6..54eab69 100644 --- a/pkg_common/views/roomLogs.vue +++ b/pkg_common/views/roomLogs.vue @@ -3,17 +3,31 @@ - - - - {{ item.store_name }} - {{ item.last_msg.created_at }} + + + + + + + + {{ item.store_name }} + {{ item.last_msg.created_at }} + + {{ item.last_msg.msg_type===0?item.last_msg.msg_content:'[图片]' }} + + - {{ item.last_msg.msg_type===0?item.last_msg.msg_content:'[图片]' }} - + + @@ -32,7 +46,8 @@ export default { return { webUrl:this.$VUE_APP_RESOURCES_URL, uid: null, - list: [] + list: [], + options1: [{text: '删除', style: {color: '#fff', backgroundColor: '#C52733'} }] } }, computed: mapGetters(['userInfo']), @@ -56,6 +71,27 @@ export default { } } }) + }, + removeRoom(id) { + const _this = this + uni.showModal({ + title:'确定删除消息?', + success:(res)=>{ + if(res.confirm) { + uni.request({ + url: _this.$SERVICE_API_URL + '//chat-remove', + method: 'POST', + data: {room_id: id}, + success:(res)=>{ + if(res.data.status_code === 200) { + _this.fetchList() + } + }, + }) + } + }, + }) + } } } @@ -70,7 +106,6 @@ export default { .item { margin-bottom: 24rpx; - padding: 28rpx 20rpx 24rpx; border-radius: 8rpx; background: #FFFFFF;