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

updates

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