Commit 706b6797 by 陈超

T

parent 9a9e4264
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<span class="text_14_600 color_FF3B3B">¥{{totalPrice}}</span> <span class="text_14_600 color_FF3B3B">¥{{totalPrice}}</span>
<span class="text_12_400 color_999999">{{discount}}</span> <span class="text_12_400 color_999999">{{discount}}</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({$id}, 'video')" class="vip_buy_pay_button layout_center"><span class="text_14_400 color_white">确认支付</span></div>
</div> </div>
</div> </div>
</div> </div>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
} }
}, },
created:function(){ created:function(){
console.log(MID)
}, },
computed: { computed: {
totalPrice: function() { totalPrice: function() {
...@@ -66,8 +66,19 @@ ...@@ -66,8 +66,19 @@
} }
}, },
methods: { methods: {
onBuy: function() { onBuy: function(id, type) {
$.post(
U("course/PayVideo/checkPayOperat"),
{
check_type: '{$pay_video_type}',
mid: MID,
vid: id,
pay: "wxpay",
money: "{$moner_data['oriPrice']}",
},
function(data) {
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