From 7a81f63f95c53d6ccb43d184acd1bfa14d972613 Mon Sep 17 00:00:00 2001 From: linfeng <2445465217@qq.com> Date: Tue, 28 May 2024 12:58:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96uniapp=E7=AB=AF=E5=88=A0?= =?UTF-8?q?=E5=B8=96=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/post/post.vue | 32 +++++++++++++------ .../pages/user/user.vue | 2 +- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/post.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/post.vue index 79cd404..dfa3792 100644 --- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/post.vue +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/post.vue @@ -239,17 +239,29 @@ }, methods: { deletePost(){ - this.$H - .post('post/deleteMyPost', { - id: this.postId - }) - .then(res => { - if(res.code==0){ - uni.switchTab({ - url:"/pages/index/index" - }) + var that = this; + uni.showModal({ + title: '提示', + content: '确定删除该帖子吗?', + success: function(res) { + if (res.confirm) { + that.$H + .post('post/deleteMyPost', { + id: that.postId + }) + .then(res => { + if(res.code==0){ + uni.switchTab({ + url:"/pages/index/index" + }) + } + }); + } else if (res.cancel) { + } - }); + } + }); + }, messageRead(mid) { this.$H diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/user.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/user.vue index 41597dd..6013e10 100644 --- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/user.vue +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/user.vue @@ -153,7 +153,7 @@ }, commercialLink() { // #ifdef H5 - window.open("https://h5.linfeng.tech") + window.open("https://www.linfengtech.cn") // #endif // #ifdef MP-WEIXIN uni.navigateToMiniProgram({