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({