Commit daf6c263 by 冷斌

fix bug

parent c0af214c
......@@ -278,18 +278,24 @@
},'json');
},
onCancel: function (item, opt) {
console.log(opt);
return false;
let option = this.getOptions(opt);
let type = option.v;
let form = '';
if (opt.v == 1) {
form = "{:U('home/Home/delCancel')}";
} else {
form = "{:U('home/Home/delOrder')}";
}
if (orderby === 0) {
ui.error('参数错误');
return false;
}
ui.confirm('你确定要删除这个订单?', {
yes: function () {
$.ajax({
type: "POST",
url: "{:U('home/Home/delOrder')}",
data: "ids=" + item['id'] + "&type="+type+"&orderby=1",
url: form,
data: "ids=" + item['id'] + "&type="+type,
dataType: "json",
success: function (data) {
location.reload();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment