Commit 1c612593 by 冷斌

fix bug

parent 9401aaa8
...@@ -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)" @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)}} {{hollowText(index)}}
</div> </div>
</div> </div>
...@@ -271,13 +271,13 @@ ...@@ -271,13 +271,13 @@
} }
},'json'); },'json');
}, },
onCancel: function (item) { onCancel: function (item, type) {
ui.confirm('你确定要删除这个订单?', { ui.confirm('你确定要删除这个订单?', {
yes: function () { yes: function () {
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "{:U('home/Home/delOrder')}", url: "{:U('home/Home/delOrder')}",
data: "ids=" + item['id'] + "&type={$ordertype}&orderby=1", data: "ids=" + item['id'] + "&type="+type+"&orderby=1",
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