From 89d641181538b89d8037b32978e43d68476cb4b2 Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Fri, 18 Feb 2022 17:05:32 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9D=91=E6=B0=91=E5=9C=88=E8=AF=84=E8=AE=BA?=
=?UTF-8?q?=E5=AE=A1=E6=A0=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/apps/AppVillagersCircle/Reject.vue | 46 +++++++++----
src/apps/AppVillagersCircle/commentDetail.vue | 54 ++++++++++------
src/apps/AppVillagersCircle/commentList.vue | 64 ++++++++++---------
src/apps/AppVillagersCircle/infoDetail.vue | 12 +---
src/apps/AppVillagersCircle/infoList.vue | 3 +-
5 files changed, 109 insertions(+), 70 deletions(-)
diff --git a/src/apps/AppVillagersCircle/Reject.vue b/src/apps/AppVillagersCircle/Reject.vue
index c05b83a9..63097ff8 100644
--- a/src/apps/AppVillagersCircle/Reject.vue
+++ b/src/apps/AppVillagersCircle/Reject.vue
@@ -18,30 +18,52 @@ export default {
value: '',
id: '',
pass: '',
+ flag: '', // 0 驳回信息 1 驳回评论
};
},
onShow() {
document.title = '村民圈审核'
},
onLoad(o) {
+ console.log(o);
this.id = o.id
this.pass = o.pass
+ this.flag = o.flag
},
methods: {
submit() {
- this.$http.post('/app/appvillagercircleinfo/examine',null, {
- params: {
- id: this.id,
- pass: this.pass,
- opinion: this.value
- }
- }).then(() => {
- this.$u.toast('保存成功')
- uni.$emit('update')
- setTimeout(()=>{
- uni.navigateBack()
+
+ if(this.flag == 0) {
+ this.$http.post('/app/appvillagercircleinfo/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)
})
- })
+ }
+ 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)
+ })
+ }
+
}
},
};
diff --git a/src/apps/AppVillagersCircle/commentDetail.vue b/src/apps/AppVillagersCircle/commentDetail.vue
index dea3de2a..233f145a 100644
--- a/src/apps/AppVillagersCircle/commentDetail.vue
+++ b/src/apps/AppVillagersCircle/commentDetail.vue
@@ -5,35 +5,52 @@
- {{ data.gpsDesc }}
+ {{ data.villagerCircleInfo.gpsDesc }}