Commit 13cee6f4 authored by xiabin's avatar xiabin

修改购买的缺陷

parent 4bad8618
...@@ -43,38 +43,42 @@ ...@@ -43,38 +43,42 @@
<a href="javascript:;"><i <a href="javascript:;"><i
:class="{'icon-agree-fill':coursewareInfo.isSupport,'icon-agree':!coursewareInfo.isSupport}"></i>{{coursewareInfo.support_count}}</a> :class="{'icon-agree-fill':coursewareInfo.isSupport,'icon-agree':!coursewareInfo.isSupport}"></i>{{coursewareInfo.support_count}}</a>
</p> </p>
<button @click="login" v-if="coursewareInfo.isGuest" class="btn btn-danger m-l-20 mb-left">购买
<button v-if="coursewareInfo.isPreview" class="btn btn-danger m-l-20 mb-left">购买
¥{{coursewareInfo.price}} ¥{{coursewareInfo.price}}
</button> </button>
<template v-else> <template v-else>
<template v-if="coursewareInfo.isShop"> <button v-if="coursewareInfo.isPreview" class="btn btn-danger m-l-20 mb-left">购买
<button v-if="coursewareInfo.isShop && coursewareInfo.isMe == false" class="btn btn-danger m-l-20 hidden-xs mb-left" ¥{{coursewareInfo.price}}
data-toggle="modal" disabled="disabled">已购买 </button>
</button>
<button v-else
@click="isMeTips" class="btn btn-danger m-l-20 mb-left"
>购买 ¥{{coursewareInfo.price}}
</button>
</template>
<template v-else> <template v-else>
<button v-if="coursewareInfo.isShop" class="btn btn-danger m-l-20 hidden-xs mb-left" <template v-if="coursewareInfo.isShop">
data-toggle="modal" disabled="disabled">已购买 <button v-if="coursewareInfo.isShop && coursewareInfo.isMe == false" class="btn btn-danger m-l-20 hidden-xs mb-left"
</button> data-toggle="modal" disabled="disabled">已购买
<template v-else>
<button id="web-pay" v-if="isMobile === false && isWeixin === false"
class="btn btn-danger m-l-20 mb-left"
data-toggle="modal"
data-target="#pay">购买 ¥{{coursewareInfo.price}}
</button>
<button v-if="isMobile === true && isWeixin === false" class="btn btn-danger m-l-20 mb-left"
@click="mobileAliPay(coursewareInfo.course_id)">购买 ¥{{coursewareInfo.price}}
</button> </button>
<button v-if="isWeixin === true" class="btn btn-danger m-l-20 mb-left" <button v-else
@click="weixinJsPay(coursewareInfo.course_id)">购买 ¥{{coursewareInfo.price}} @click="isMeTips" class="btn btn-danger m-l-20 mb-left"
>购买 ¥{{coursewareInfo.price}}
</button> </button>
</template> </template>
<template v-else>
<button v-if="coursewareInfo.isShop" class="btn btn-danger m-l-20 hidden-xs mb-left"
data-toggle="modal" disabled="disabled">已购买
</button>
<template v-else>
<button id="web-pay" v-if="isMobile === false && isWeixin === false"
class="btn btn-danger m-l-20 mb-left"
data-toggle="modal"
data-target="#pay">购买 ¥{{coursewareInfo.price}}
</button>
<button v-if="isMobile === true && isWeixin === false" class="btn btn-danger m-l-20 mb-left"
@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>
</template> </template>
</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