图文视频发布,文章选择删除逻辑没有处理完,需要继续处理
This commit is contained in:
@@ -200,6 +200,15 @@ export default {
|
||||
// 投诉骑手
|
||||
reportcar(type) {
|
||||
let that = this;
|
||||
if(this.clickstate==false){
|
||||
this.clickstate=true
|
||||
}else{
|
||||
this.$refs.uToast.show({
|
||||
title: "不能重复提交",
|
||||
type: 'error'
|
||||
});
|
||||
return
|
||||
}
|
||||
if (that.reportcontent == '') {
|
||||
this.$refs.uToast.show({
|
||||
title: "投诉内容不能为空",
|
||||
@@ -207,20 +216,25 @@ export default {
|
||||
});
|
||||
return;
|
||||
}
|
||||
console.log(that.reportinfo)
|
||||
|
||||
this.$u.api.reportorder({
|
||||
order_id: that.reportinfo.order_id,
|
||||
takeawayer_id: that.reportinfo.takeawayer_id,
|
||||
order_list: that.reportinfo.order_list,
|
||||
content: that.reportcontent
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
// 恢复可点击状态
|
||||
this.clickstate=false
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'error'
|
||||
});
|
||||
} else {
|
||||
// 提交后清空选择
|
||||
that.reportinfo=null
|
||||
that.reportcontent = ""
|
||||
// 提示修改成功
|
||||
that.showComplaint = true;
|
||||
}
|
||||
});
|
||||
@@ -282,7 +296,6 @@ export default {
|
||||
type: type,
|
||||
page: that.num
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
|
||||
Reference in New Issue
Block a user