Commit daf6c263 by 冷斌

fix bug

parent c0af214c
...@@ -278,18 +278,24 @@ ...@@ -278,18 +278,24 @@
},'json'); },'json');
}, },
onCancel: function (item, opt) { onCancel: function (item, opt) {
console.log(opt);
return false;
let option = this.getOptions(opt); let option = this.getOptions(opt);
let type = option.v; 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('你确定要删除这个订单?', { ui.confirm('你确定要删除这个订单?', {
yes: function () { yes: function () {
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "{:U('home/Home/delOrder')}", url: form,
data: "ids=" + item['id'] + "&type="+type+"&orderby=1", data: "ids=" + item['id'] + "&type="+type,
dataType: "json", dataType: "json",
success: function (data) { success: function (data) {
location.reload(); 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