Commit c05fc471 by 冷斌

fix bug

parent 1d349587
......@@ -20,16 +20,16 @@
</div>
</div>
<div class="fixed_bottom_bar layout_h_v_c">
<span class="text_14_600 color_FF3B3B">
¥{{info.price}}
</span>
<div class="weight_full layout_h_r">
<div @click="onBuy" class="vip_buy_pay_button layout_center"><span class="text_14_400 color_white">立即购买</span></div>
<span style="margin-right: 0.75rem;" class="text_12_400 color_999999 self_center">{{info.num}}人已购买</span>
</div>
</div>
</div>
......@@ -37,19 +37,19 @@
let uid = '{$uid}'
new Vue({
el: "#app",
created:function(){
this.info = {:json_encode($data)};
console.log(this.info)
},
data: function() {
return {
info: "",
order: ""
}
},
methods: {
onBuy: function() {
if(uid<=0) {
......@@ -64,7 +64,7 @@
url: "{:U('mall/Goods/getPayUrl')}",
data:{
count: 1,
goods_id: this.info.uid,
goods_id: this.info.goods_id,
},
dataType:"json",
success:function(res){
......
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