From cefaa428484ce9b93cb63ae7642d0261c1252641 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Mon, 21 Feb 2022 09:17:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A9=B3=E5=9B=9E=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppVillagersCircle/Reject.vue | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/src/apps/AppVillagersCircle/Reject.vue b/src/apps/AppVillagersCircle/Reject.vue index 63097ff8..20064221 100644 --- a/src/apps/AppVillagersCircle/Reject.vue +++ b/src/apps/AppVillagersCircle/Reject.vue @@ -17,7 +17,7 @@ export default { return { value: '', id: '', - pass: '', + pass: '', // 0 驳回发布信息 1 驳回发布评论 flag: '', // 0 驳回信息 1 驳回评论 }; }, @@ -32,9 +32,8 @@ export default { }, methods: { submit() { - - if(this.flag == 0) { - this.$http.post('/app/appvillagercircleinfo/examine',null, { + let url = ['/app/appvillagercircleinfo/examine','/app/appvillagercirclecomment/examine'] + this.$http.post(url[this.flag],null, { params: { id: this.id, pass: this.pass, @@ -47,23 +46,6 @@ export default { uni.navigateBack({delta: 2}) },600) }) - } - if(this.flag == 1) { - this.$http.post('/app/appvillagercirclecomment/examine',null, { - params: { - id: this.id, - pass: this.pass, - opinion: this.value - } - }).then(() => { - this.$u.toast('保存成功') - uni.$emit('update') - setTimeout(()=>{ - uni.navigateBack({delta: 2}) - },600) - }) - } - } }, };