提交 76d66045 authored 作者: matian's avatar matian

updates

上级 20df3cc0
......@@ -17,13 +17,15 @@ const handleDatail = (item: any) => {
})
}
const handleBuy = (courseItem: any) => {
if (courseItem.type === '课程包') {
buyDialogVisible.value = true
} else {
{
if (courseItem?.isBuy === true) {
window.open('https://paa-learning.ezijing.com')
} else {
router.push(`/pay/${courseItem.id}`)
if (courseItem.type === '课程包') {
buyDialogVisible.value = true
} else {
router.push(`/pay/${courseItem.id}`)
}
}
}
}
......
......@@ -25,13 +25,15 @@ const recommendCourse = computed(() => {
const buyDialogVisible = ref(false)
const shareDialogVisible = ref(false)
const handleBuyCourse = () => {
if (shopItem?.type === '课程包') {
buyDialogVisible.value = true
} else {
{
if (route.query.payStatus === '4' && shopItem?.isBuy === true) {
window.open('https://paa-learning.ezijing.com')
} else {
router.push(`/pay/${shopItem?.id}`)
if (shopItem?.type === '课程包') {
buyDialogVisible.value = true
} else {
router.push(`/pay/${shopItem?.id}`)
}
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论