驳回发布
This commit is contained in:
@@ -17,7 +17,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
value: '',
|
value: '',
|
||||||
id: '',
|
id: '',
|
||||||
pass: '',
|
pass: '', // 0 驳回发布信息 1 驳回发布评论
|
||||||
flag: '', // 0 驳回信息 1 驳回评论
|
flag: '', // 0 驳回信息 1 驳回评论
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -32,9 +32,8 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
submit() {
|
submit() {
|
||||||
|
let url = ['/app/appvillagercircleinfo/examine','/app/appvillagercirclecomment/examine']
|
||||||
if(this.flag == 0) {
|
this.$http.post(url[this.flag],null, {
|
||||||
this.$http.post('/app/appvillagercircleinfo/examine',null, {
|
|
||||||
params: {
|
params: {
|
||||||
id: this.id,
|
id: this.id,
|
||||||
pass: this.pass,
|
pass: this.pass,
|
||||||
@@ -47,23 +46,6 @@ export default {
|
|||||||
uni.navigateBack({delta: 2})
|
uni.navigateBack({delta: 2})
|
||||||
},600)
|
},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