村民圈评论审核

This commit is contained in:
shijingjing
2022-02-18 17:05:32 +08:00
parent e1bee081fd
commit 89d6411815
5 changed files with 109 additions and 70 deletions

View File

@@ -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)
})
}
}
},
};