|
|
<template> |
|
|
<view class="course-detail-index"> |
|
|
<view v-if="$store.getters.token || userInfo.uid"> |
|
|
<view class="swiper-box"> |
|
|
<view class="swiper-item"> |
|
|
<image :src="detail.coverImg" mode="aspectFill"></image> |
|
|
</view> |
|
|
</view> |
|
|
<view class="course-info-box"> |
|
|
<view class="course-title acea-row row-between-wrapper"> |
|
|
<view>{{detail.courseName}}</view> |
|
|
<view class="price" v-if="detail.price == 0">公开课</view> |
|
|
<view class="price" v-if="detail.price > 0 && detail.price < 199">¥{{detail.price}}</view> |
|
|
</view> |
|
|
<view class="tips-box"> |
|
|
<view class="tip-item blue">{{detail.categoryName}}</view> |
|
|
<!-- <view class="tip-item orange">{{detail.flag[0]}}</view> --> |
|
|
</view> |
|
|
</view> |
|
|
<view class="tab-box acea-row row-around" :class="isFixedTop?'fixed':''"> |
|
|
<view class="tab-item" :class="active == 0 ? 'tab-item-active' : ''" @click="handelScroll('content1','0')">简介</view> |
|
|
<view class="tab-item" :class="active == 1 ? 'tab-item-active' : ''" @click="handelScroll('content2','1')">课程安排</view> |
|
|
<view class="tab-item" :class="active == 2 ? 'tab-item-active' : ''" @click="handelScroll('content3','2')">相关推荐</view> |
|
|
</view> |
|
|
|
|
|
<view class="content-box" bindscroll="scroll"> |
|
|
<scroll-view scroll-y="true" scroll-with-animation="true" style="height:100%;" :scroll-into-view="toView" > |
|
|
<view class="teacher-info-box content" id="content1"> |
|
|
<view class="title-box acea-row row-middle"> |
|
|
<view class="left-line"></view> |
|
|
<span>主讲人介绍</span> |
|
|
</view> |
|
|
<scroll-view class="scroll-view_H" scroll-x="true"> |
|
|
<view class="info-box" v-for="(item,index) in detail.masterDtos" :key="index"> |
|
|
<image :src="item.photoPath"></image> |
|
|
<view class="name">{{item.realName}}</view> |
|
|
<!-- <view class="tip">{{item.title}}</view> --> |
|
|
<view class="desc" :class="item.introductionType == 0 ? 'left' : 'center'">{{item.introduction}}</view> |
|
|
</view> |
|
|
</scroll-view> |
|
|
</view> |
|
|
<view class="course-desc-box"> |
|
|
<view class="title-box acea-row row-middle"> |
|
|
<view class="left-line"></view> |
|
|
<span>课程简介</span> |
|
|
</view> |
|
|
<!-- <text class="desc">{{detail.courseIntroduce}}</text> --> |
|
|
<rich-text class="content" :nodes="detail.content"></rich-text> |
|
|
</view> |
|
|
<view class="course-desc-box content" id="content2"> |
|
|
<view class="title-box acea-row row-middle"> |
|
|
<view class="left-line"></view> |
|
|
<span>课程表</span> |
|
|
</view> |
|
|
<view class="course-card-list"> |
|
|
<view class="course-card-item acea-row row-middle"> |
|
|
<image src="../../static/course-icon5.png"></image> |
|
|
<view class="label">课程类型</view> |
|
|
<view class="info">{{detail.courseType == 0 ? '线下课程' : '直播课程'}}</view> |
|
|
</view> |
|
|
<view class="course-card-item acea-row row-middle"> |
|
|
<image src="../../static/course-icon1.png"></image> |
|
|
<view class="label">课程时间</view> |
|
|
<view class="info">{{detail.courseStartTime}} 至 {{detail.courseEndTime}}</view> |
|
|
</view> |
|
|
<view class="course-card-item acea-row row-middle"> |
|
|
<image src="../../static/course-icon2.png"></image> |
|
|
<view class="label">课程地点</view> |
|
|
<view class="info">{{detail.coursePlace}}</view> |
|
|
</view> |
|
|
<view class="course-card-item acea-row row-middle"> |
|
|
<image src="../../static/course-icon3.png"></image> |
|
|
<view class="label">签到时间</view> |
|
|
<view class="info">{{detail.signStartTime}} 至 {{detail.signEndTime}}</view> |
|
|
</view> |
|
|
<view class="course-card-item acea-row row-middle"> |
|
|
<image src="../../static/course-icon4.png"></image> |
|
|
<view class="label">报名截止</view> |
|
|
<view class="info">{{detail.enterEndTime}}</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="course-desc-box" > |
|
|
<view class="title-box acea-row row-middle"> |
|
|
<view class="left-line"></view> |
|
|
<span>课程安排</span> |
|
|
</view> |
|
|
<view class="plan-box acea-row-nowrap" v-for="(item,index) in detail.scheduleList" :key="index"> |
|
|
<text>{{item}}</text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="recommend-box content" id="content3"> |
|
|
<!-- 相关推荐 --> |
|
|
<view class="title-box acea-row row-middle row-center" v-if="detail.similarCourseList.length > 0"> |
|
|
<view class="row-line"></view> |
|
|
<view class="title">相关推荐</view> |
|
|
<view class="row-line"></view> |
|
|
</view> |
|
|
|
|
|
<view class="knowledge-list"> |
|
|
<view class="knowledge-item acea-row" v-for="(item,index) in detail.similarCourseList" :key="index" @click="toDetail(item.id)"> |
|
|
<view class="img-box"> |
|
|
<image :src="item.imageArr[0]" mode="aspectFill"></image> |
|
|
</view> |
|
|
<view class="knowledge-info-box"> |
|
|
<view class="title line1">{{item.courseName}}</view> |
|
|
<view class="time">{{item.courseStartTime.split(' ')[0]}}-{{item.courseEndTime.split(' ')[0]}}</view> |
|
|
<view class="address">{{item.coursePlace}}</view> |
|
|
<view class="type-box acea-row row-between row-middle"> |
|
|
<view></view> |
|
|
<view class="signin-btn yellow">去报名</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</scroll-view> |
|
|
</view> |
|
|
<view class="footer-box acea-row row-between-wrapper"> |
|
|
<view class="footer-left"> |
|
|
<!-- <view class="price" v-if="detail.signState == 1">座位号:{{detail.seat}}</view> --> |
|
|
</view> |
|
|
<view class="footer-right"> |
|
|
<view class="btn-box acea-row row-between-wrapper" v-if="yhStatus == 1 || yhStatus == 3 "> |
|
|
<view class="count-down"> |
|
|
<view>距离截止时间还剩</view> |
|
|
<uni-countdown color="#F99C10" :day="day" :hour="hour" :minute="minute" :second="second" /> |
|
|
</view> |
|
|
<view class="signin-btn" @click="signInClick(2)">立即报名</view> |
|
|
</view> |
|
|
<view class="signin-btn" v-if="yhStatus == 2">报名已截止 请关注下期</view> |
|
|
<!-- 在线直播 --> |
|
|
<view class="signin-btn call-btn" v-if="yhStatus == 4 " @click="signInClick(3)" >立即观看</view> |
|
|
<view class="signin-btn call-btn" v-if="yhStatus == 5 " @click="signInClick(3)" >查看回放</view> |
|
|
<view class="signin-btn call-btn" v-if="yhStatus == 6" @click="signTipClick">报名成功,待签到</view> |
|
|
<view class="signin-btn call-btn" v-if="yhStatus == 7" >已签到</view> |
|
|
<view class="signin-btn call-btn" v-if="yhStatus == 8 " @click="signInClick(1)" >等待确认 联系服务老师</view> |
|
|
<view class="signin-btn call-btn default" v-if="yhStatus == 9 " @click="signInClick(1)" >审核未通过 联系服务老师</view> |
|
|
|
|
|
<!-- #ifdef MP-WEIXIN --> |
|
|
<button open-type="getPhoneNumber" |
|
|
@getphonenumber="getPhoneNumber" v-if="userInfo.phone == '' " class="binding signin-btn call-btn" v-else> |
|
|
<text>点击绑定手机号</text> |
|
|
</button> |
|
|
<!-- #endif --> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view class="mask-box" v-if="maskDialog"> |
|
|
<view class="dialog-box"> |
|
|
<view class="close" @click="closeDialog()">×</view> |
|
|
<view class="dialog-top acea-row-nowrap row-center-wrapper"> |
|
|
<image src="../../static/error-icon.png"></image> |
|
|
<view class="word">您还没有绑定服务老师,请点击按钮联系服务老师进行绑定!</view> |
|
|
</view> |
|
|
<view class="dialog-btm"> |
|
|
<view class="l-box acea-row row-between-wrapper"> |
|
|
<!-- <view class="acea-row row-middle"> |
|
|
<image :src="teacher.imgPath"></image> |
|
|
<view> |
|
|
<view>{{teacher.name}}</view> |
|
|
<view>{{teacher.phone}}</view> |
|
|
</view> |
|
|
</view> --> |
|
|
<view class="call-btn" @click="call">拨打电话</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="mask-box2" v-if="showSignUp"> |
|
|
<view class="dialog-bg"> |
|
|
<view class="signUp-box"> |
|
|
<image src="../../static/signup-success.png" class="signup-success" ></image> |
|
|
<view class="divsion-line"></view> |
|
|
<view class="tips">请识别下方二维码下载APP,进行线上观看!</view> |
|
|
<view class="er-code"><image src="../../static/ercode-download.png" show-menu-by-longpress="true"></image></view> |
|
|
<view class="longpress-btn">长按图片保存到相册</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="close-btn" @click="showSignUp = false"></view> |
|
|
</view> |
|
|
</view> |
|
|
<Authorization v-else /> |
|
|
</view> |
|
|
</template> |
|
|
|
|
|
<script> |
|
|
// import WucTab from '@/components/wuc-tab/wuc-tab.vue'; |
|
|
import { mapState, mapGetters, mapMutations, mapActions } from 'vuex' |
|
|
import { getUserInfo, bindingPhone, wxappBindingPhone } from '@/api/user' |
|
|
import { bindPhoneNumber } from '@/utils/index.js' |
|
|
import { getCourseDetail ,enterCourse } from '@/api/knowledge'; |
|
|
import Authorization from '@/pages/authorization/index' |
|
|
export default { |
|
|
components: { |
|
|
Authorization, |
|
|
}, |
|
|
data() { |
|
|
return { |
|
|
yhStatus:0, |
|
|
id: '', |
|
|
teacherId:null, |
|
|
validCode:null, |
|
|
detail:{courseStartTime:[],courseEndTime:[],similarCourseList:[]}, |
|
|
active: 0, |
|
|
toView: '', |
|
|
heightArr:[], |
|
|
tabInitTop:'', |
|
|
isFixedTop: false, |
|
|
maskDialog: false, |
|
|
showSignUp: false, |
|
|
times: 0, |
|
|
day:'', |
|
|
hour:'', |
|
|
minute:'', |
|
|
second:'', |
|
|
teacher:{} |
|
|
} |
|
|
}, |
|
|
onLoad() { |
|
|
//获取节点距离顶部的距离 |
|
|
uni.createSelectorQuery().select('.tab-box').boundingClientRect((res) => { |
|
|
if (res && res.top > 0) { |
|
|
this.tabInitTop= res.top; |
|
|
} |
|
|
}).exec(); |
|
|
if(this.$yroute.query.teacherId){ //服务老师分享链接 |
|
|
this.courseId = this.$yroute.query.courseId; |
|
|
this.validCode = this.$yroute.query.validCode; |
|
|
this.teacherId = this.$yroute.query.teacherId; |
|
|
} else{ //列表进入详情页 |
|
|
this.courseId = this.$yroute.query.id; |
|
|
} |
|
|
this.getDetail() |
|
|
this.$nextTick(()=>{ |
|
|
this.getHeightArr() |
|
|
}) |
|
|
}, |
|
|
|
|
|
computed:{ |
|
|
userInfo(){ |
|
|
return this.$store.getters["userInfo"] |
|
|
}, |
|
|
}, |
|
|
mounted(){ |
|
|
|
|
|
}, |
|
|
onPullDownRefresh() { |
|
|
this.getDetail() |
|
|
}, |
|
|
onShareAppMessage: function(res) { |
|
|
// console.log(this.detail.id) |
|
|
return { |
|
|
title: this.detail.courseName, |
|
|
imageUrl:this.detail.coverImg, |
|
|
path: '/pages/course/detail?id=' + this.detail.id, |
|
|
} |
|
|
}, |
|
|
methods: { |
|
|
getPhoneNumber: function(e) { |
|
|
bindPhoneNumber(e).then((res)=>{ |
|
|
if(res.success){ |
|
|
uni.showToast({ |
|
|
title: '绑定成功!', |
|
|
duration: 1500 |
|
|
}) |
|
|
setTimeout(()=>{ |
|
|
this.getDetail() |
|
|
},1500) |
|
|
} |
|
|
}) |
|
|
}, |
|
|
setDate(t){ |
|
|
let str = t.split(" ")[0].split("-")[1] + "." + t.split(" ")[0].split("-")[2] |
|
|
return str |
|
|
}, |
|
|
toDetail(id){ |
|
|
this.$yrouter.push({ |
|
|
path: '/pages/course/detail', |
|
|
query: { |
|
|
id:id, |
|
|
}, |
|
|
}) |
|
|
}, |
|
|
setStatus(){ |
|
|
let yhStatus = 0; |
|
|
let detail = this.detail; |
|
|
let enterEndTime = detail.enterEndTime.replace(/-/g, '/') |
|
|
let enterStartTime = detail.enterStartTime.replace(/-/g, '/') |
|
|
let courseEndTime = detail.courseEndTime.replace(/-/g, '/') |
|
|
if(!this.userInfo.phone){ |
|
|
this.yhStatus = -1; |
|
|
return |
|
|
} |
|
|
if ( !detail.enterState ){ |
|
|
yhStatus = 0; |
|
|
if( new Date(enterEndTime) >= new Date() && new Date(enterStartTime) <= new Date() ){ |
|
|
yhStatus = 1; // 可报名 |
|
|
}else if(new Date(enterEndTime) < new Date()){ |
|
|
yhStatus = 2; // 超过报名时间 |
|
|
}else if(new Date(enterStartTime) > new Date()){ |
|
|
yhStatus = 3; // 报名时间没开始 |
|
|
} |
|
|
}else{ |
|
|
// 是否已经超过课程时间 |
|
|
if (detail.status == 1 && detail.courseType == 1){ |
|
|
if( new Date(courseEndTime) >= new Date() ){ |
|
|
yhStatus = 4; // 直播中 |
|
|
}else{ |
|
|
yhStatus = 5; //查看回放 |
|
|
} |
|
|
}else if (detail.status == 1 && detail.courseType == 0){ |
|
|
if(detail.payState == 0){ |
|
|
yhStatus = 9 //后台审核未通过 |
|
|
} else{ |
|
|
if(detail.signState == 0){ |
|
|
yhStatus = 6; //后台审核成功,线下课程未签到 |
|
|
} else if(detail.signState == 1){ |
|
|
yhStatus = 7; //已签到 |
|
|
} |
|
|
} |
|
|
}else if(detail.status == 0){ |
|
|
yhStatus = 8; // 报名没有被确认 |
|
|
} |
|
|
} |
|
|
this.yhStatus = yhStatus; |
|
|
// console.log(this.yhStatus) |
|
|
}, |
|
|
signTipClick(){ |
|
|
uni.showModal({ |
|
|
title: '提示!', |
|
|
content: '您已经报名成功,请到开课地点使用微信扫一扫扫描课程二维码签到。', |
|
|
showCancel: false |
|
|
}) |
|
|
}, |
|
|
getDetail(){ |
|
|
uni.showLoading({ |
|
|
title:'正在加载中...' |
|
|
}) |
|
|
let nowTime = Date.parse(new Date())/1000; |
|
|
getCourseDetail({id:this.courseId}).then((res)=>{ |
|
|
uni.hideLoading() |
|
|
// res.data.content = res.data.content.replace(/\<img/g, "<img style='width: 100%;'") |
|
|
this.detail = res.data; |
|
|
let t = res.data.enterEndTime.replace(/-/g, '/'); |
|
|
let endTime = Date.parse(new Date(t))/1000 |
|
|
this.times = endTime - nowTime; |
|
|
this.day = Math.floor(this.times / (60 * 60 * 24)); |
|
|
this.hour = Math.floor(this.times / (60 * 60)) - (this.day * 24); |
|
|
this.minute = Math.floor(this.times / 60) - (this.day * 24 * 60) - (this.hour * 60); |
|
|
this.second = Math.floor(this.times) - (this.day * 24 * 60 * 60) - (this.hour * 60 * 60) - (this.minute * 60); |
|
|
// console.log(this.times,'times') |
|
|
uni.stopPullDownRefresh() |
|
|
}).then(()=>{ |
|
|
this.setStatus(); |
|
|
}) |
|
|
}, |
|
|
signInClick(type){ |
|
|
if(this.userInfo.realName == null){ |
|
|
uni.showModal({ |
|
|
title: '提示!', |
|
|
content: '请完善个人信息后报名!', |
|
|
success(res) { |
|
|
if (res.confirm) { |
|
|
uni.navigateTo({ |
|
|
url:'/pages/user/PersonalData/index' |
|
|
}) |
|
|
} |
|
|
} |
|
|
}); |
|
|
} else{ |
|
|
if(type == 2){ //立即报名 |
|
|
uni.showModal({ |
|
|
title:'提示!', |
|
|
content:'是否确定报名?', |
|
|
success:(res)=>{ |
|
|
if(res.confirm){ |
|
|
this.sign() |
|
|
}else if (res.cancel) { |
|
|
console.log('用户点击取消'); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}else if(type == 3){ //查看回放 |
|
|
let roomId = this.detail.roomId; |
|
|
let customParams = encodeURIComponent(JSON.stringify({ path: 'pages/user/liveWelcome/index', pid: 1 })) |
|
|
wx.navigateTo({ |
|
|
url: `plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=${roomId}&custom_params=${customParams}` |
|
|
}) |
|
|
} else if(type == 1){ //已报名等待确认 联系服务老师 |
|
|
uni.makePhoneCall({ |
|
|
phoneNumber: this.userInfo.seller.phone |
|
|
}); |
|
|
} else{ |
|
|
this.sign() |
|
|
} |
|
|
} |
|
|
}, |
|
|
|
|
|
sign(){ |
|
|
enterCourse({ |
|
|
lessionId: this.courseId |
|
|
}).then((res)=>{ |
|
|
if(res.data.state == 1){ |
|
|
//直接成功 刷新页面 |
|
|
uni.showToast({ |
|
|
title: res.data.msg |
|
|
}); |
|
|
setTimeout(()=>{ |
|
|
this.getDetail() |
|
|
},1500) |
|
|
} else if(res.data.state == 2){ |
|
|
this.payment(res.data.payData) |
|
|
} else if(res.data.status == 4045){ |
|
|
this.maskDialog = true |
|
|
return |
|
|
} else{ |
|
|
uni.showModal({ |
|
|
title: '提示!', |
|
|
content: res.msg, |
|
|
showCancel:false, |
|
|
success: (result)=> { |
|
|
this.getDetail() |
|
|
} |
|
|
}); |
|
|
} |
|
|
}) |
|
|
}, |
|
|
payment(orderInfo){ |
|
|
// 调用支付接口 |
|
|
uni.requestPayment({ |
|
|
provider: 'wxpay', |
|
|
...orderInfo, |
|
|
signType: 'MD5', |
|
|
package:orderInfo.packageValue, |
|
|
success: success => { |
|
|
if(this.detail.courseType == 1){ |
|
|
// this.showSignUp = true |
|
|
this.getDetail() |
|
|
} else{ |
|
|
uni.showToast({ |
|
|
title: '报名成功!' |
|
|
}); |
|
|
setTimeout(()=>{ |
|
|
this.getDetail() |
|
|
},1500) |
|
|
} |
|
|
}, |
|
|
fail: error => { |
|
|
console.log(error) |
|
|
if (error.errMsg == 'requestPayment:fail cancel') { |
|
|
uni.showToast({ title: '已取消支付', icon: 'none', duration: 5000 }) |
|
|
} else { |
|
|
uni.showToast({ title: error || error.msg, icon: 'none', duration: 5000 }) |
|
|
} |
|
|
}, |
|
|
}) |
|
|
}, |
|
|
call(){ |
|
|
uni.makePhoneCall({ |
|
|
phoneNumber: '15623111593' |
|
|
}); |
|
|
}, |
|
|
closeDialog(){ |
|
|
this.maskDialog = false |
|
|
}, |
|
|
handelScroll(id,idx){ |
|
|
this.isFixedTop = true |
|
|
uni.createSelectorQuery().select('#'+id).boundingClientRect(data=>{//目标位置的节点:类或者id |
|
|
uni.createSelectorQuery().select(".course-detail-index").boundingClientRect(res=>{//最外层盒子的节点:类或者id |
|
|
uni.pageScrollTo({ |
|
|
duration: 500,//过渡时间 |
|
|
scrollTop:data.top - res.top - 50 ,//返回顶部的top值 |
|
|
}) |
|
|
}).exec() |
|
|
}).exec(); |
|
|
this.toView = id; |
|
|
this.active = idx; |
|
|
}, |
|
|
getHeightArr(){ |
|
|
let h=0; |
|
|
let heightArr = []; |
|
|
//selectAll会选择所要含有该类名的盒子 |
|
|
uni.createSelectorQuery().selectAll('.content').boundingClientRect((rect) => { |
|
|
}).exec((res) => { |
|
|
// console.log('res',res) |
|
|
res[0].forEach((item)=>{ |
|
|
h+=item.top; |
|
|
heightArr.push(h); |
|
|
}) |
|
|
this.heightArr = heightArr; |
|
|
}) |
|
|
}, |
|
|
onPageScroll(res) { |
|
|
this.scrollTop = res.scrollTop |
|
|
let scrollTop = res.scrollTop; |
|
|
let scrollArr = this.heightArr; |
|
|
let timer = setTimeout(()=>{ |
|
|
if(this.scrollTop===scrollTop){ |
|
|
for (let i = 0; i < scrollArr.length; i++) { |
|
|
if (scrollTop < scrollArr[0]) { |
|
|
this.active = 0; |
|
|
} else if (scrollTop >= (scrollArr[i - 1]) && scrollTop < scrollArr[i]) { |
|
|
this.active= i; |
|
|
} |
|
|
} |
|
|
clearTimeout(timer) |
|
|
} |
|
|
},100) |
|
|
var isSatisfy = scrollTop >= this.tabInitTop? true : false; |
|
|
//只有处于吸顶的临界值才会不相等 |
|
|
if (this.isFixedTop === isSatisfy) { |
|
|
return false; |
|
|
} |
|
|
this.isFixedTop = isSatisfy |
|
|
}, |
|
|
onHide() { |
|
|
clearInterval(this.timer); |
|
|
}, |
|
|
} |
|
|
} |
|
|
</script> |
|
|
|
|
|
<style scoped lang="less"> |
|
|
.course-detail-index{ |
|
|
width: 100%; |
|
|
min-height: 100vh; |
|
|
padding-bottom: 200rpx; |
|
|
box-sizing: border-box; |
|
|
.container { |
|
|
height: 100%; |
|
|
} |
|
|
.mask-box{ |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
background: rgba(0,0,0,.6); |
|
|
position: fixed; |
|
|
top: 0; |
|
|
z-index: 99; |
|
|
.dialog-box{ |
|
|
width: 600rpx; |
|
|
border-radius: 12rpx; |
|
|
overflow: hidden; |
|
|
position: absolute; |
|
|
top: 50%; |
|
|
left: 50%; |
|
|
transform: translate(-50%,-50%); |
|
|
.close{ |
|
|
width: 38rpx; |
|
|
height: 38rpx; |
|
|
position: absolute; |
|
|
right: 12rpx; |
|
|
top: 12rpx; |
|
|
font-size: 36rpx; |
|
|
} |
|
|
.dialog-top{ |
|
|
width: 100%; |
|
|
height: 212rpx; |
|
|
box-sizing: border-box; |
|
|
padding: 30rpx 38rpx 0; |
|
|
background: linear-gradient(180deg, #FFE8E8 0%, #FFFFF8 100%); |
|
|
image{ |
|
|
width: 154rpx; |
|
|
height: 162rpx; |
|
|
margin-right: 12rpx; |
|
|
} |
|
|
.word{ |
|
|
width: calc(100% - 164rpx); |
|
|
height: 108rpx; |
|
|
font-size: 28rpx; |
|
|
color: #666; |
|
|
} |
|
|
} |
|
|
.dialog-btm{ |
|
|
background-color: #fff; |
|
|
padding: 30rpx 32rpx; |
|
|
color: #666; |
|
|
font-size: 28rpx; |
|
|
image{ |
|
|
width: 100rpx; |
|
|
height: 100rpx; |
|
|
border-radius: 25px; |
|
|
margin-right: 20rpx; |
|
|
} |
|
|
.call-btn{ |
|
|
width: 192rpx; |
|
|
height: 60rpx; |
|
|
background: #ECEFFD; |
|
|
border-radius: 12rpx; |
|
|
text-align: center; |
|
|
line-height: 60rpx; |
|
|
color: #6E85EB; |
|
|
margin: 0 auto; |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
.mask-box2{ |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
background: rgba(0,0,0,.6); |
|
|
position: fixed; |
|
|
top: 0; |
|
|
z-index: 99; |
|
|
.dialog-bg{ |
|
|
width: 726rpx; |
|
|
height: 1026rpx; |
|
|
background: linear-gradient(180deg, #fbd8a5 0%, #fcc86a 100%); |
|
|
position: absolute; |
|
|
top: 50%; |
|
|
left: 50%; |
|
|
transform: translate(-50%,-50%); |
|
|
border-radius: 8rpx; |
|
|
} |
|
|
.signUp-box{ |
|
|
width: 543rpx; |
|
|
height: 836rpx; |
|
|
background: #fff; |
|
|
position: absolute; |
|
|
top: 50%; |
|
|
left: 50%; |
|
|
transform: translate(-50%,-50%); |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
align-items: center; |
|
|
border-radius: 8rpx; |
|
|
.signup-success{ |
|
|
width: 470rpx; |
|
|
height: 100rpx; |
|
|
margin: 60rpx 0 46rpx; |
|
|
} |
|
|
.divsion-line{ |
|
|
width: 467rpx; |
|
|
border-bottom: 1px dashed #fbd69e; |
|
|
position: relative; |
|
|
&::before{ |
|
|
display: inline-block; |
|
|
content: ''; |
|
|
width: 50rpx; |
|
|
height: 50rpx; |
|
|
border-radius: 50px; |
|
|
background: #FBD293; |
|
|
position: absolute; |
|
|
left: -62rpx; |
|
|
top: -25rpx; |
|
|
} |
|
|
&::after{ |
|
|
display: inline-block; |
|
|
content: ''; |
|
|
width: 50rpx; |
|
|
height: 50rpx; |
|
|
border-radius: 50px; |
|
|
background: #FBD293; |
|
|
position: absolute; |
|
|
right: -62rpx; |
|
|
top: -25rpx; |
|
|
} |
|
|
} |
|
|
.er-code{ |
|
|
image{ |
|
|
width: 297rpx; |
|
|
height: 297rpx; |
|
|
} |
|
|
} |
|
|
.tips{ |
|
|
width: 340rpx; |
|
|
font-size: 28rpx; |
|
|
color: #000; |
|
|
margin: 28rpx auto 12rpx; |
|
|
text-align: center; |
|
|
} |
|
|
.longpress-btn{ |
|
|
width: 327rpx; |
|
|
height: 75rpx; |
|
|
text-align: center; |
|
|
line-height: 75rpx; |
|
|
font-size: 32rpx; |
|
|
color: #fff; |
|
|
background: linear-gradient(90deg, #F7D08E 0%, #E2B35D 99%); |
|
|
border-radius: 37rpx; |
|
|
margin-top: 32rpx; |
|
|
} |
|
|
} |
|
|
.close-btn{ |
|
|
width: 80rpx; |
|
|
height: 80rpx; |
|
|
background: url(../../static/close-btn.png) no-repeat; |
|
|
background-size: 100% 100%; |
|
|
position: absolute; |
|
|
bottom: 100rpx; |
|
|
left: 50%; |
|
|
margin-left: -40rpx; |
|
|
} |
|
|
} |
|
|
.swiper-box{ |
|
|
width: 100%; |
|
|
height: 340rpx; |
|
|
.swiper-item{ |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
image{ |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
} |
|
|
} |
|
|
swiper{ |
|
|
height: 100%; |
|
|
.swiper-item{ |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
image{ |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.course-info-box{ |
|
|
box-sizing: border-box; |
|
|
padding: 30rpx 30rpx 50rpx; |
|
|
background: #fff; |
|
|
.course-title{ |
|
|
font-size: 40rpx; |
|
|
font-weight: 500; |
|
|
color: #333333; |
|
|
line-height: 56rpx; |
|
|
margin: 0rpx 0 20rpx; |
|
|
.price{ |
|
|
color: #EA533E; |
|
|
} |
|
|
} |
|
|
.tips-box{ |
|
|
display: flex; |
|
|
.tip-item{ |
|
|
min-width: 60rpx; |
|
|
height: 34rpx; |
|
|
text-align: center; |
|
|
line-height: 34rpx; |
|
|
font-size: 24rpx; |
|
|
padding: 0 5rpx; |
|
|
border-radius: 5rpx; |
|
|
} |
|
|
.blue{ |
|
|
color: #6E85EB; |
|
|
border: 1px solid #6E85EB; |
|
|
background: #EDEFF8; |
|
|
} |
|
|
.orange{ |
|
|
margin-left: 10rpx; |
|
|
border: 1px solid #F99C10; |
|
|
color: #F99C10; |
|
|
background: #FFEDCC; |
|
|
} |
|
|
} |
|
|
} |
|
|
.tab-box{ |
|
|
white-space: nowrap; |
|
|
width: 100%; |
|
|
background: #fff; |
|
|
padding: 18rpx 34rpx 0; |
|
|
.tab-item{ |
|
|
width: 33%; |
|
|
text-align: center; |
|
|
display: inline-block; |
|
|
padding-bottom: 18rpx; |
|
|
font-size: 32rpx; |
|
|
color: #222; |
|
|
} |
|
|
.tab-item-active{ |
|
|
font-size: 32rpx; |
|
|
font-weight: bold; |
|
|
border-bottom: 4rpx solid #F99C10; |
|
|
} |
|
|
} |
|
|
.fixed{ |
|
|
position: -webkit-sticky; |
|
|
position: sticky; |
|
|
top: 0; |
|
|
z-index: 99; |
|
|
} |
|
|
|
|
|
.content-box{ |
|
|
width: 100%; |
|
|
box-sizing: border-box; |
|
|
background: #F5F6F7; |
|
|
padding: 24rpx 22rpx; |
|
|
.teacher-info-box,.course-desc-box{ |
|
|
width: 100%; |
|
|
background:#fff; |
|
|
border-radius: 8rpx; |
|
|
padding: 18rpx 24rpx 30rpx; |
|
|
margin-bottom: 20rpx; |
|
|
} |
|
|
.desc{ |
|
|
text-indent: 2em; |
|
|
font-size: 28rpx; |
|
|
color: #666666; |
|
|
line-height: 24px; |
|
|
} |
|
|
.scroll-view_H{ |
|
|
white-space: nowrap; |
|
|
width: 100%; |
|
|
} |
|
|
.info-box{ |
|
|
width: 100%; |
|
|
display: inline-block; |
|
|
text-align: center; |
|
|
image{ |
|
|
width: 100rpx; |
|
|
height: 100rpx; |
|
|
border-radius: 50px; |
|
|
} |
|
|
.name{ |
|
|
width: 100%; |
|
|
font-size: 32rpx; |
|
|
color: #3C464F; |
|
|
line-height: 44rpx; |
|
|
} |
|
|
.tip{ |
|
|
width: 100%; |
|
|
font-size: 24rpx; |
|
|
color: #999999; |
|
|
line-height: 34px; |
|
|
} |
|
|
.desc{ |
|
|
width: 100%; |
|
|
white-space: pre-wrap; |
|
|
} |
|
|
.left{ |
|
|
text-align: left; |
|
|
} |
|
|
.center{ |
|
|
text-align: center; |
|
|
} |
|
|
} |
|
|
.title-box{ |
|
|
font-size: 36rpx; |
|
|
font-weight: bold; |
|
|
color: #3C464F; |
|
|
line-height: 50rpx; |
|
|
margin-bottom: 20rpx; |
|
|
.left-line{ |
|
|
width: 6rpx; |
|
|
height: 32rpx; |
|
|
background-color: #F99C10; |
|
|
margin-right: 16rpx; |
|
|
} |
|
|
} |
|
|
.plan-box{ |
|
|
font-size: 28rpx; |
|
|
color: #666; |
|
|
line-height: 32rpx; |
|
|
margin-bottom: 12rpx; |
|
|
.plan-time{ |
|
|
width: 170rpx; |
|
|
margin-right: 22rpx; |
|
|
} |
|
|
} |
|
|
.course-card-item{ |
|
|
font-size: 26rpx; |
|
|
margin-bottom: 12rpx; |
|
|
image{ |
|
|
width: 30rpx; |
|
|
height: 30rpx; |
|
|
} |
|
|
.label{ |
|
|
color: #999999; |
|
|
margin: 0 24rpx 0 16rpx; |
|
|
} |
|
|
.info{ |
|
|
color: #666666; |
|
|
} |
|
|
} |
|
|
.recommend-box{ |
|
|
.title-box{ |
|
|
font-size: 32rpx; |
|
|
color: #F99C10; |
|
|
.title{ |
|
|
margin: 0 10rpx; |
|
|
} |
|
|
.row-line{ |
|
|
width: 36rpx; |
|
|
height: 2rpx; |
|
|
border: 2rpx solid #F99C10; |
|
|
} |
|
|
} |
|
|
.knowledge-list { |
|
|
width: 100%; |
|
|
.knowledge-item { |
|
|
background: #fff; |
|
|
padding: 32rpx; |
|
|
.img-box { |
|
|
width: 204rpx; |
|
|
height: 200rpx; |
|
|
margin-right: 20rpx; |
|
|
image { |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
border-radius: 10rpx; |
|
|
} |
|
|
} |
|
|
.knowledge-info-box { |
|
|
width: calc(100% - 224rpx); |
|
|
.title { |
|
|
font-size: 28rpx; |
|
|
color: #333; |
|
|
font-size: 500; |
|
|
line-height: 40rpx; |
|
|
} |
|
|
.time,.address{ |
|
|
color: #999; |
|
|
font-size: 24rpx; |
|
|
margin-top: 5rpx; |
|
|
line-height: 34rpx; |
|
|
} |
|
|
.intro { |
|
|
font-size: 28rpx; |
|
|
color: #999999; |
|
|
line-height: 40rpx; |
|
|
margin: 8rpx 0 36rpx; |
|
|
} |
|
|
.type-box { |
|
|
font-size: 24rpx; |
|
|
color: #999; |
|
|
margin-top: 20rpx; |
|
|
.price{ |
|
|
font-size: 28rpx; |
|
|
color: #F99C10; |
|
|
font-weight: 500; |
|
|
} |
|
|
.signin-btn{ |
|
|
width: 156rpx; |
|
|
height: 60rpx; |
|
|
text-align: center; |
|
|
line-height: 60rpx; |
|
|
background: #FFEAE7; |
|
|
border-radius: 12rpx; |
|
|
font-size: 32rpx; |
|
|
} |
|
|
.red{ |
|
|
background: #FFEAE7; |
|
|
color: #EE7060; |
|
|
} |
|
|
.blue { |
|
|
color: #6E85EB; |
|
|
background: #ECEFFD; |
|
|
} |
|
|
.yellow { |
|
|
color: #F99C10; |
|
|
background: #FFEDCC; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.colG{ |
|
|
color: #8FB85B !important; |
|
|
} |
|
|
.footer-box{ |
|
|
width: 100%; |
|
|
padding: 30rpx 26rpx 60rpx 44rpx; |
|
|
background: #fff; |
|
|
position: fixed; |
|
|
bottom: 0; |
|
|
left: 0; |
|
|
.price{ |
|
|
font-size: 44rpx; |
|
|
color: #F99C10; |
|
|
} |
|
|
.fz24{ |
|
|
font-size: 24rpx; |
|
|
} |
|
|
|
|
|
.footer-right{ |
|
|
.btn-box{ |
|
|
text-align: center; |
|
|
width: 410rpx; |
|
|
height: 80rpx; |
|
|
border-radius: 44px; |
|
|
border: 2rpx solid #F99C10; |
|
|
box-sizing: border-box; |
|
|
overflow: hidden; |
|
|
.count-down{ |
|
|
width: calc(100% - 178rpx); |
|
|
text-align: center; |
|
|
font-size: 24rpx; |
|
|
color: #999; |
|
|
} |
|
|
.colR{ |
|
|
color: #F99C10; |
|
|
} |
|
|
} |
|
|
.signin-btn{ |
|
|
min-width: 178rpx; |
|
|
height: 100%; |
|
|
line-height: 84rpx; |
|
|
padding: 0 12rpx; |
|
|
font-size: 32rpx; |
|
|
border-radius: 44px; |
|
|
color: #fff; |
|
|
background: #F99C10; |
|
|
} |
|
|
.call-btn{ |
|
|
min-width: 230rpx; |
|
|
height: 80rpx; |
|
|
padding: 0 20rpx; |
|
|
background: #F99C10; |
|
|
border-radius: 44rpx; |
|
|
text-align: center; |
|
|
line-height: 80rpx; |
|
|
color: #fff; |
|
|
font-size: 30rpx; |
|
|
} |
|
|
.default-btn{ |
|
|
background: #f6f6f6; |
|
|
color: #222; |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
</style>
|
|
|
|