村民圈评论审核
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user