提交 fb33e7c2 authored 作者: matian's avatar matian

首页h5课程按钮已购买显示联系我们

上级 ced35fc0
......@@ -19,7 +19,6 @@ const start_time = getDateTime()
const end_time = getDateTime(90)
const isAgree = $ref(false)
let isAgreeText = $ref(false)
const dialogVisible = $ref(false)
const { order, pay } = usePay()
......@@ -32,7 +31,6 @@ onMounted(() => {
watchEffect(() => {
if (order.value?.order_status === '4') {
// 支付成功
console.log('支付成功')
emit('success', order.value)
}
})
......
......@@ -23,7 +23,6 @@ const { order, payOrder, pay } = usePay()
watchEffect(() => {
if (order.value?.order_status === '4') {
// 支付成功
console.log('支付成功')
emit('success', order.value)
}
})
......@@ -38,7 +37,6 @@ function handlePay() {
pay(params)
}
const handleAgree = (val: any) => {
console.log(val)
isAgree = val
if (val === true) {
isAgreeText = false
......
......@@ -16,7 +16,6 @@ const props = defineProps({
const buyDialogVisible = ref(false)
const handleBuyCourse = () => {
console.log(props.payStatus, props.shopItem?.isBuy)
if (user.isLogin) {
if (props.payStatus === '4' || props.shopItem?.isBuy === true) {
// window.open('https://paa-learning.ezijing.com')
......
......@@ -2,6 +2,7 @@
import ContactDialog from '../components/ContactDialog.vue'
import { useDevice } from '@/composables/useDevice'
import { useUserStore } from '@/stores/user'
const { mobile } = useDevice()
const user = useUserStore()
......
......@@ -15,37 +15,11 @@ defineProps({
const swiper1 = ref(null)
function prev(swiper) {
console.log(swiper, '111')
swiper?.slidePrev()
}
function next(swiper) {
swiper?.slideNext()
}
const list = [
{
avatar: 'https://webapp-pub.ezijing.com/project_online/fi/teacher_01.png',
name: '张伟张伟张伟张伟张伟张伟张伟张伟张伟张伟张伟张伟',
title_list: ['清华大学国家金融研究院副院长、副研究员']
},
{
avatar: 'https://webapp-pub.ezijing.com/project_online/fi/teacher_02.png',
name: '高皓',
title_list: ['清华大学五道口金融学院全球家族企业研究中心主任']
},
{
avatar: 'https://webapp-pub.ezijing.com/project_online/fi/teacher_03.png',
name: '肇越',
title_list: ['清华大学五道口金融学院硕士生导师首席经济学家']
},
{
avatar: 'https://webapp-pub.ezijing.com/project_online/fi/teacher_04.png',
name: '陈秉正',
title_list: [
'清华大学经济管理学院金融系教授',
'中国保险与风险管理研究中心主任'
]
}
]
</script>
<template>
......@@ -61,19 +35,12 @@ const list = [
:spaceBetween="20"
:slidePreview="1"
:modules="[Navigation, Grid]"
@swiper="(swiper) => (swiper1 = swiper)"
@swiper="swiper => (swiper1 = swiper)"
>
<SwiperSlide
v-for="(item, index) in lecturerList"
:key="index"
class="teacher-item"
>
<SwiperSlide v-for="(item, index) in lecturerList" :key="index" class="teacher-item">
<div class="item_top">
<img
:src="
item.avatar ||
'https://webapp-pub.ezijing.com/project_online/fi/teacher_04.png'
"
:src="item.avatar || 'https://webapp-pub.ezijing.com/project_online/fi/teacher_04.png'"
class="top_img"
/>
<div class="top_name">{{ item.name }}</div>
......@@ -98,17 +65,10 @@ const list = [
<div class="teacher_list" v-else>
<div class="con_tit">讲师介绍</div>
<div class="con_teacher">
<div
v-for="(item, index) in lecturerList"
:key="index"
class="teacher-item"
>
<div v-for="(item, index) in lecturerList" :key="index" class="teacher-item">
<div class="item_top">
<img
:src="
item.avatar ||
'https://webapp-pub.ezijing.com/project_online/fi/teacher_04.png'
"
:src="item.avatar || 'https://webapp-pub.ezijing.com/project_online/fi/teacher_04.png'"
class="top_img"
/>
<div class="top_name">{{ item.name }}</div>
......
......@@ -5,6 +5,7 @@ import { useDevice } from '@/composables/useDevice'
const { mobile } = useDevice()
const shopStore = useShopStore()
const handleTabClick = (tab: any) => {
if (tab.index === '4') {
window.open('https://prp.ezijing.com')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论