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;