Commit c05fc471 by 冷斌

fix bug

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