Commit 04b3a159 by 冷斌

fix bug

parent 648844c2
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<div v-if="showSolid(index)" @click="onPay(item, 2)" class="order_action_solid self_center" <div v-if="showSolid(index)" @click="onPay(item, 2)" class="order_action_solid self_center"
style="margin-left: 0.75rem;">去支付 style="margin-left: 0.75rem;">去支付
</div> </div>
<div v-if="showHollow(index)" class="order_action_hollow self_center"> <div v-if="showHollow(index)" @click="onCancel(item)" class="order_action_hollow self_center">
{{hollowText(index)}} {{hollowText(index)}}
</div> </div>
</div> </div>
...@@ -226,7 +226,7 @@ ...@@ -226,7 +226,7 @@
return true; return true;
}, },
onPay: function (item, type) { onPay: function (item, type) {
if (this.isLogin()) { if (!this.isLogin()) {
return false; return false;
} }
...@@ -270,6 +270,21 @@ ...@@ -270,6 +270,21 @@
return false; return false;
} }
},'json'); },'json');
},
onCancel: function (item) {
ui.confirm('你确定要删除这个订单?', {
yes: function () {
$.ajax({
type: "POST",
url: "{:U('home/Home/delOrder')}",
data: "ids=" + item['id'] + "&type={$ordertype}&orderby=1",
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