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

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

上级 ced35fc0
...@@ -19,7 +19,6 @@ const start_time = getDateTime() ...@@ -19,7 +19,6 @@ const start_time = getDateTime()
const end_time = getDateTime(90) const end_time = getDateTime(90)
const isAgree = $ref(false) const isAgree = $ref(false)
let isAgreeText = $ref(false) let isAgreeText = $ref(false)
const dialogVisible = $ref(false)
const { order, pay } = usePay() const { order, pay } = usePay()
...@@ -32,7 +31,6 @@ onMounted(() => { ...@@ -32,7 +31,6 @@ onMounted(() => {
watchEffect(() => { watchEffect(() => {
if (order.value?.order_status === '4') { if (order.value?.order_status === '4') {
// 支付成功 // 支付成功
console.log('支付成功')
emit('success', order.value) emit('success', order.value)
} }
}) })
......
...@@ -23,7 +23,6 @@ const { order, payOrder, pay } = usePay() ...@@ -23,7 +23,6 @@ const { order, payOrder, pay } = usePay()
watchEffect(() => { watchEffect(() => {
if (order.value?.order_status === '4') { if (order.value?.order_status === '4') {
// 支付成功 // 支付成功
console.log('支付成功')
emit('success', order.value) emit('success', order.value)
} }
}) })
...@@ -38,7 +37,6 @@ function handlePay() { ...@@ -38,7 +37,6 @@ function handlePay() {
pay(params) pay(params)
} }
const handleAgree = (val: any) => { const handleAgree = (val: any) => {
console.log(val)
isAgree = val isAgree = val
if (val === true) { if (val === true) {
isAgreeText = false isAgreeText = false
......
...@@ -16,7 +16,6 @@ const props = defineProps({ ...@@ -16,7 +16,6 @@ const props = defineProps({
const buyDialogVisible = ref(false) const buyDialogVisible = ref(false)
const handleBuyCourse = () => { const handleBuyCourse = () => {
console.log(props.payStatus, props.shopItem?.isBuy)
if (user.isLogin) { if (user.isLogin) {
if (props.payStatus === '4' || props.shopItem?.isBuy === true) { if (props.payStatus === '4' || props.shopItem?.isBuy === true) {
// window.open('https://paa-learning.ezijing.com') // window.open('https://paa-learning.ezijing.com')
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import ContactDialog from '../components/ContactDialog.vue' import ContactDialog from '../components/ContactDialog.vue'
import { useDevice } from '@/composables/useDevice' import { useDevice } from '@/composables/useDevice'
import { useUserStore } from '@/stores/user' import { useUserStore } from '@/stores/user'
const { mobile } = useDevice() const { mobile } = useDevice()
const user = useUserStore() const user = useUserStore()
......
...@@ -15,37 +15,11 @@ defineProps({ ...@@ -15,37 +15,11 @@ defineProps({
const swiper1 = ref(null) const swiper1 = ref(null)
function prev(swiper) { function prev(swiper) {
console.log(swiper, '111')
swiper?.slidePrev() swiper?.slidePrev()
} }
function next(swiper) { function next(swiper) {
swiper?.slideNext() 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> </script>
<template> <template>
...@@ -61,19 +35,12 @@ const list = [ ...@@ -61,19 +35,12 @@ const list = [
:spaceBetween="20" :spaceBetween="20"
:slidePreview="1" :slidePreview="1"
:modules="[Navigation, Grid]" :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"> <div class="item_top">
<img <img
:src=" :src="item.avatar || 'https://webapp-pub.ezijing.com/project_online/fi/teacher_04.png'"
item.avatar ||
'https://webapp-pub.ezijing.com/project_online/fi/teacher_04.png'
"
class="top_img" class="top_img"
/> />
<div class="top_name">{{ item.name }}</div> <div class="top_name">{{ item.name }}</div>
...@@ -98,17 +65,10 @@ const list = [ ...@@ -98,17 +65,10 @@ const list = [
<div class="teacher_list" v-else> <div class="teacher_list" v-else>
<div class="con_tit">讲师介绍</div> <div class="con_tit">讲师介绍</div>
<div class="con_teacher"> <div class="con_teacher">
<div <div v-for="(item, index) in lecturerList" :key="index" class="teacher-item">
v-for="(item, index) in lecturerList"
:key="index"
class="teacher-item"
>
<div class="item_top"> <div class="item_top">
<img <img
:src=" :src="item.avatar || 'https://webapp-pub.ezijing.com/project_online/fi/teacher_04.png'"
item.avatar ||
'https://webapp-pub.ezijing.com/project_online/fi/teacher_04.png'
"
class="top_img" class="top_img"
/> />
<div class="top_name">{{ item.name }}</div> <div class="top_name">{{ item.name }}</div>
......
...@@ -5,6 +5,7 @@ import { useDevice } from '@/composables/useDevice' ...@@ -5,6 +5,7 @@ import { useDevice } from '@/composables/useDevice'
const { mobile } = useDevice() const { mobile } = useDevice()
const shopStore = useShopStore() const shopStore = useShopStore()
const handleTabClick = (tab: any) => { const handleTabClick = (tab: any) => {
if (tab.index === '4') { if (tab.index === '4') {
window.open('https://prp.ezijing.com') window.open('https://prp.ezijing.com')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论