Commit 1c612593 by 冷斌

fix bug

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