提交 725aaac0 authored 作者: matian's avatar matian

修改课程表和课程购买判断

上级 78f47d02
......@@ -32,7 +32,7 @@ const shareTit = computed(() => {
// 购买课程
const handleBuyCourse = () => {
if (user.isLogin) {
if ((props.payStatus === '4' || props.shopItem?.isBuy === true) && props.shopItem?.type === '课程') {
if (props.payStatus === '4' || props.shopItem?.isBuy === true) {
// window.open('https://paa-learning.ezijing.com')
buyDialogVisible.value = true
} else {
......@@ -131,7 +131,7 @@ const handleCopyLink = () => {
</div>
</div>
<div class="buy_right" @click="handleBuyCourse" v-if="!mobile">
{{ (payStatus === '4' || shopItem?.isBuy === true) && shopItem?.type === '课程' ? '联系我们' : '立即购买' }}
{{ payStatus === '4' || shopItem?.isBuy === true ? '联系我们' : '立即购买' }}
</div>
</div>
<div class="detail_info" v-if="mobile">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论