Commit 6fa0aded by 冷斌

fix bug

parent 1c612593
......@@ -48,12 +48,9 @@
<span class="text_14_600 color_FF3B3B">¥100</span>
</div>
<div class="layout_h_r">
<a href="http://www.baidu.com" v-if="showSolid(index)">
<div class="order_action_solid self_center"
style="margin-left: 0.75rem;">去支付
</div>
</a>
<div class="order_action_solid self_center"
style="margin-left: 0.75rem;">去支付
</div>
<div v-if="showHollow(index)" class="order_action_hollow self_center">
{{hollowText(index)}}
</div>
......@@ -72,7 +69,7 @@
<span class="text_14_600 color_FF3B3B">¥{{item['pay_price']}}</span>
</div>
<div class="layout_h_r">
<div v-if="showSolid(index)" @click="onPay(item, 2)" class="order_action_solid self_center"
<div v-if="showSolid(index)" @click="onPay(item, 2, i)" class="order_action_solid self_center"
style="margin-left: 0.75rem;">去支付
</div>
<div v-if="showHollow(index)" @click="onCancel(item, 'exams')" class="order_action_hollow self_center">
......@@ -225,7 +222,9 @@
}
return true;
},
onPay: function (item, type) {
onPay: function (item, type, i) {
console.log(i);
return false;
if (!this.isLogin()) {
return false;
}
......@@ -280,8 +279,7 @@
data: "ids=" + item['id'] + "&type="+type+"&orderby=1",
dataType: "json",
success: function (data) {
// location.reload();
console.log(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