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 }}