Commit 6fa0aded by 冷斌

fix bug

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