Commit 159df794 by 陈超

T

parent 3eda290e
...@@ -24,8 +24,21 @@ ...@@ -24,8 +24,21 @@
</div> </div>
<div class="fixed_bottom_bar"> <div class="fixed_bottom_bar">
<div class="layout_v"> <div class="layout_v">
<span class="text_14_600 color_FF3B3B"></span> <template v-if="bought">
<span></span>
</template>
<template v-else>
<span class="text_14_600 color_FF3B3B">
<php> if($mybuy or $data['is_buy'] or $data['is_charge'] or $data['mz_price']['price'] == 0) { </php>
免费
<php> } else {</php>
<!-- ¥<if condition="$course_event.event_type eq 3">{$course_event['event_price_other']}<else/>{$data['mz_price']['price']}</if> -->
¥{$data['mz_price']['selPrice']}
<php>}</php>
</span>
<span></span>
</template>
</div> </div>
</div> </div>
</div> </div>
...@@ -46,7 +59,6 @@ ...@@ -46,7 +59,6 @@
<p class="newbb-title">{:h($data['video_title'])}</p> <p class="newbb-title">{:h($data['video_title'])}</p>
</div> </div>
<php>if(!empty($receiveCoupon)){</php> <php>if(!empty($receiveCoupon)){</php>
<!-- 优惠券 -->
<div class="coupons"> <div class="coupons">
<div class="coupons-phase"> <div class="coupons-phase">
<span class="face">优惠</span> <span class="face">优惠</span>
...@@ -307,13 +319,15 @@ ...@@ -307,13 +319,15 @@
el: "#app", el: "#app",
data: function() { data: function() {
return { return {
bought: false bought: false,
isCollect: false
} }
}, },
created:function(){ created:function(){
let p = {$isBuyVideo} let p = {:json_encode($isBuyVideo)};
console.log(p) let c = {:json_encode($iscollect)};
console.log("123") console.log(c)
this.bought = p != null
}, },
computed: { computed: {
shareIcon: function() { shareIcon: function() {
......
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