|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<view>
|
|
<view>
|
|
- <view v-if="!loginShow" class="container" :style="{ height : `${loginShow ? '100vh' : 'auto' }`,
|
|
|
|
|
|
+ <view v-if="!loginShow" class="container" :style="{ height : `${loginShow ? '100vh' : 'auto' }`,
|
|
overflow: `${loginShow ? 'hidden' : 'auto' }` }">
|
|
overflow: `${loginShow ? 'hidden' : 'auto' }` }">
|
|
<view class="container-poster" style="width: 100%;padding: 0 20rpx;">
|
|
<view class="container-poster" style="width: 100%;padding: 0 20rpx;">
|
|
<channel-live v-if="feedShow" :feed-id="feedId" :finder-user-name="finderId"></channel-live>
|
|
<channel-live v-if="feedShow" :feed-id="feedId" :finder-user-name="finderId"></channel-live>
|
|
@@ -14,7 +14,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="content" v-if="currentTab === 0" style="overflow: hidden;">
|
|
<view class="content" v-if="currentTab === 0" style="overflow: hidden;">
|
|
- <view class="content-text"
|
|
|
|
|
|
+ <view class="content-text"
|
|
:style="{
|
|
:style="{
|
|
marginBottom: `${videoShow?'140rpx':'0'}`,
|
|
marginBottom: `${videoShow?'140rpx':'0'}`,
|
|
paddingBottom: `${videoShow?'150rpx':'0'}`
|
|
paddingBottom: `${videoShow?'150rpx':'0'}`
|
|
@@ -28,7 +28,7 @@
|
|
<view class="text-title">培训地点</view>
|
|
<view class="text-title">培训地点</view>
|
|
<view class="text-content">{{courseDetail.loc}}</view>
|
|
<view class="text-content">{{courseDetail.loc}}</view>
|
|
<view class="text-title" style="color: red;font-weight: 500;font-size: 30rpx;">如需取消报名,请联系教育培训部工作人员13332876414/13302262603</view>
|
|
<view class="text-title" style="color: red;font-weight: 500;font-size: 30rpx;">如需取消报名,请联系教育培训部工作人员13332876414/13302262603</view>
|
|
- <view class="text-tip" v-if="!isMember && courseDetail.viewMode === '2'">个人会员或单位会员免费,点击现在入会></view>
|
|
|
|
|
|
+ <view class="text-tip" v-if="!isMember && courseDetail.viewMode === '2'" @click="toJoin">个人会员或单位会员免费,点击现在入会></view>
|
|
<view style="width: 100%;height: 200rpx;"></view>
|
|
<view style="width: 100%;height: 200rpx;"></view>
|
|
</view>
|
|
</view>
|
|
<view class="section-bottom-fixed" @click="toVideo" v-show="videoShow">
|
|
<view class="section-bottom-fixed" @click="toVideo" v-show="videoShow">
|
|
@@ -145,14 +145,19 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ const toJoin = () =>{
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: "/pages/swiperDetail/swiperDetail?id=12117"
|
|
|
|
+ })
|
|
|
|
+ }
|
|
// 初始化
|
|
// 初始化
|
|
function init(id) {
|
|
function init(id) {
|
|
loadCourseDetail(id).then(res => {
|
|
loadCourseDetail(id).then(res => {
|
|
if (res?.data) {
|
|
if (res?.data) {
|
|
courseDetail.value = res.data;
|
|
courseDetail.value = res.data;
|
|
showBuy.value = showBuyAction()
|
|
showBuy.value = showBuyAction()
|
|
- if(courseDetail.value.regType === '1'
|
|
|
|
- && (courseDetail.value.status === '2' ||
|
|
|
|
|
|
+ if(courseDetail.value.regType === '1'
|
|
|
|
+ && (courseDetail.value.status === '2' ||
|
|
courseDetail.value.status === '3')){
|
|
courseDetail.value.status === '3')){
|
|
// console.log(123456)
|
|
// console.log(123456)
|
|
getVideo()
|
|
getVideo()
|
|
@@ -286,7 +291,7 @@
|
|
function formatDateS(dateStr) {
|
|
function formatDateS(dateStr) {
|
|
return dateStr.replace(" ", "T");
|
|
return dateStr.replace(" ", "T");
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
// 日期格式:xxxx年xx月xx日(星期x)
|
|
// 日期格式:xxxx年xx月xx日(星期x)
|
|
function getDateWeek(dateStr) {
|
|
function getDateWeek(dateStr) {
|
|
console.log(dateStr,"dateStr")
|
|
console.log(dateStr,"dateStr")
|
|
@@ -352,8 +357,8 @@
|
|
imageUrl: courseDetail.value.cover
|
|
imageUrl: courseDetail.value.cover
|
|
};
|
|
};
|
|
})
|
|
})
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
// 线上-点击预约-跳转预告
|
|
// 线上-点击预约-跳转预告
|
|
function toVideo(){
|
|
function toVideo(){
|
|
wx.getChannelsLiveNoticeInfo({
|
|
wx.getChannelsLiveNoticeInfo({
|
|
@@ -422,7 +427,7 @@
|
|
})
|
|
})
|
|
// 线下课程-是否显示报名按钮
|
|
// 线下课程-是否显示报名按钮
|
|
const regShow = computed(()=>{
|
|
const regShow = computed(()=>{
|
|
- // regType = 0 是线上课程
|
|
|
|
|
|
+ // regType = 0 是线上课程
|
|
// 缺少判断是否购买
|
|
// 缺少判断是否购买
|
|
if(courseDetail.value?.status === '2' || courseDetail.value?.status === '3' ){
|
|
if(courseDetail.value?.status === '2' || courseDetail.value?.status === '3' ){
|
|
return false
|
|
return false
|
|
@@ -443,7 +448,7 @@
|
|
init(courseId.value)
|
|
init(courseId.value)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- return
|
|
|
|
|
|
+ return
|
|
}
|
|
}
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: "/pages/goOnEdu/course/courseDetail/courseOrder?id=" + courseId.value
|
|
url: "/pages/goOnEdu/course/courseDetail/courseOrder?id=" + courseId.value
|
|
@@ -604,4 +609,4 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|