|
@@ -143,15 +143,17 @@
|
|
|
title: "",
|
|
|
content: "确定要删除该留言吗?",
|
|
|
confirmColor: "#6784A7",
|
|
|
- success: async function() {
|
|
|
- const { code } = await $message.apiReadOneMessage({ msg_id })
|
|
|
- if( code!==200 ) return
|
|
|
-
|
|
|
- uni.showToast({
|
|
|
- title: '删除成功',
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
- _this.messageList.splice(index,1)
|
|
|
+ success: async function(res) {
|
|
|
+ if(res.confirm) {
|
|
|
+ const { code } = await $message.apiDelMessage({ msg_id })
|
|
|
+ if( code!==200 ) return
|
|
|
+
|
|
|
+ uni.showToast({
|
|
|
+ title: '删除成功',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ _this.messageList.splice(index,1)
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -224,6 +226,8 @@
|
|
|
<style lang="scss" scoped>
|
|
|
.message-page {
|
|
|
padding: 40rpx 0;
|
|
|
+ width: 750rpx;
|
|
|
+ overflow-x: hidden;
|
|
|
.headar {
|
|
|
padding: 0 34rpx 20rpx;
|
|
|
justify-content: space-between;
|