Commit 2a8b3262 authored by xiabin's avatar xiabin

添加视频预览页

parent abf39edb
...@@ -2,7 +2,12 @@ ...@@ -2,7 +2,12 @@
<div class="container"> <div class="container">
<div class="cnt-tit"> <div class="cnt-tit">
<h3>{{coursewareInfo.courseName}}</h3> <h3>{{coursewareInfo.courseName}}</h3>
<div class="tit-share hidden-xs bdsharebuttonbox"> <div v-if="!coursewareInfo.isPreview" class="tit-share hidden-xs bdsharebuttonbox">
<a href="javascript:;" class="wechat post-icons bds_weixin" data-cmd="weixin" title="分享到微信"></a>
<a href="javascript:;" class="weibo post-icons bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
<a href="javascript:;" class="qzone post-icons bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
</div>
<div v-else class="tit-share hidden-xs bdsharebuttonbox">
<a href="javascript:;" class="wechat post-icons bds_weixin" data-cmd="weixin" title="分享到微信"></a> <a href="javascript:;" class="wechat post-icons bds_weixin" data-cmd="weixin" title="分享到微信"></a>
<a href="javascript:;" class="weibo post-icons bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a> <a href="javascript:;" class="weibo post-icons bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
<a href="javascript:;" class="qzone post-icons bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a> <a href="javascript:;" class="qzone post-icons bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
...@@ -31,30 +36,35 @@ ...@@ -31,30 +36,35 @@
:class="{'icon-zan-full':coursewareInfo.isSupport,'icon-zan-empty':!coursewareInfo.isSupport}"></i>{{coursewareInfo.support_count}}</a> :class="{'icon-zan-full':coursewareInfo.isSupport,'icon-zan-empty':!coursewareInfo.isSupport}"></i>{{coursewareInfo.support_count}}</a>
</p> </p>
<button v-if="coursewareInfo.isPreview" class="btn btn-danger m-l-20 mb-left">购买
<button v-if="coursewareInfo.isGuest" @click="login" class="btn btn-danger m-l-20 mb-left">购买
¥{{coursewareInfo.price}} ¥{{coursewareInfo.price}}
</button> </button>
<template v-else> <template v-else>
<button v-if="coursewareInfo.isShop" class="btn btn-danger m-l-20 hidden-xs mb-left" <button v-if="coursewareInfo.isGuest" @click="login" class="btn btn-danger m-l-20 mb-left">购买
data-toggle="modal" disabled="disabled">已购买 ¥{{coursewareInfo.price}}
</button> </button>
<template v-else> <template v-else>
<button v-if="isMobile === false && isWeixin === false" class="btn btn-danger m-l-20 mb-left" <button v-if="coursewareInfo.isShop" class="btn btn-danger m-l-20 hidden-xs mb-left"
data-toggle="modal" data-toggle="modal" disabled="disabled">已购买
data-target="#pay">购买 ¥{{coursewareInfo.price}}
</button> </button>
<button v-if="isMobile === true && isWeixin === false" class="btn btn-danger m-l-20 mb-left" <template v-else>
@click="mobileAliPay(coursewareInfo.course_id)">购买 ¥{{coursewareInfo.price}} <button v-if="isMobile === false && isWeixin === false" class="btn btn-danger m-l-20 mb-left"
</button> data-toggle="modal"
<button v-if="isWeixin === true" class="btn btn-danger m-l-20 mb-left" data-target="#pay">购买 ¥{{coursewareInfo.price}}
@click="weixinJsPay(coursewareInfo.course_id)">购买 ¥{{coursewareInfo.price}} </button>
</button> <button v-if="isMobile === true && isWeixin === false" class="btn btn-danger m-l-20 mb-left"
</template> @click="mobileAliPay(coursewareInfo.course_id)">购买 ¥{{coursewareInfo.price}}
</button>
<button v-if="isWeixin === true" class="btn btn-danger m-l-20 mb-left"
@click="weixinJsPay(coursewareInfo.course_id)">购买 ¥{{coursewareInfo.price}}
</button>
</template>
</template>
</template> </template>
</div> </div>
</div> </div>
</div> </div>
......
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