驳回发布

This commit is contained in:
shijingjing
2022-02-21 09:17:17 +08:00
parent bed107198d
commit cefaa42848

View File

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