|
@@ -7,14 +7,15 @@
|
|
|
<view class="course-body-box">
|
|
|
<view class="ezy-video-box course-video-box">
|
|
|
<view ref="videoContent" id="wgy-player-test" :playAuth="playAuth"
|
|
|
- :change:playAuth="renderScript.receiveMsg" :videoId="videoId" :change:videoId="renderScript.videoIdFun"
|
|
|
- :hideFlag="hideFlag" :change:hideFlag="renderScript.hideFlagFun" :progressMarkers="progressMarkers"
|
|
|
+ :change:playAuth="renderScript.receiveMsg" :videoId="videoId"
|
|
|
+ :change:videoId="renderScript.videoIdFun" :hideFlag="hideFlag"
|
|
|
+ :change:hideFlag="renderScript.hideFlagFun" :progressMarkers="progressMarkers"
|
|
|
:change:progressMarkers="renderScript.progressMarkersMsg" :seekTime="seekTime"
|
|
|
:change:seekTime="renderScript.seekTimeFun" class="ezy-video">
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- <view class="course-content-border">
|
|
|
+ <!-- <view class="course-content-border">
|
|
|
<view class="course-content-box">
|
|
|
<view v-for="(item,index) in progressMarkers" :key="index" @click="markersClick(item)">
|
|
|
<view class="title-play-box">
|
|
@@ -37,7 +38,7 @@
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
<tip-big-dialog ref="youkeDialogRef" @confirm-btn="ykConfirm" :imgShow="true"></tip-big-dialog>
|
|
|
- <svip-dialog ref="svipDialogRef" @confirm-btn="svipConfirm"></svip-dialog>
|
|
|
+ <tip-small-dialog ref="goPayDialogRef" @confirm-btn="goPayPage" :content="tipContent"></tip-small-dialog>
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
@@ -57,7 +58,7 @@
|
|
|
} from "@/api/shipin.js"
|
|
|
import tipMiddleDialog from '@/components/dialog/tipMiddleDialog.vue';
|
|
|
import tipBigDialog from '@/components/dialog/tipBigDialog.vue';
|
|
|
- import svipDialog from './svipDialog.vue';
|
|
|
+ import tipSmallDialog from '@/components/dialog/tipSmallDialog.vue'
|
|
|
import {
|
|
|
toast,
|
|
|
getUserIdentity
|
|
@@ -76,6 +77,7 @@
|
|
|
jieName: '',
|
|
|
hideFlag: 'show',
|
|
|
videoId: "", //阿里云视频id
|
|
|
+ tipContent: '是否前往开通付费',
|
|
|
subjectId: '',
|
|
|
credit: '',
|
|
|
tipFlag: '',
|
|
@@ -93,7 +95,7 @@
|
|
|
components: {
|
|
|
tipMiddleDialog,
|
|
|
tipBigDialog,
|
|
|
- svipDialog
|
|
|
+ tipSmallDialog
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
if (!cacheManager.get('auth')) {
|
|
@@ -234,10 +236,10 @@
|
|
|
} else {
|
|
|
const AuthCode = getUserIdentity();
|
|
|
console.log(AuthCode);
|
|
|
- // if (AuthCode == 'Not-Vip') {
|
|
|
- // this.$refs.svipDialogRef.handleShow();
|
|
|
- // return false
|
|
|
- // }
|
|
|
+ if (AuthCode == 'Not-Vip') {
|
|
|
+ this.$refs.goPayDialogRef.handleShow();
|
|
|
+ return false
|
|
|
+ }
|
|
|
// debugger
|
|
|
Number(this.jieId++)
|
|
|
console.log('this.pageData', this.pageData);
|
|
@@ -265,7 +267,7 @@
|
|
|
}
|
|
|
},
|
|
|
getLiveYk() {
|
|
|
- if(!this.videoId){
|
|
|
+ if (!this.videoId) {
|
|
|
toast("video缺失!")
|
|
|
return false
|
|
|
}
|
|
@@ -277,7 +279,7 @@
|
|
|
})
|
|
|
},
|
|
|
getLive() {
|
|
|
- if(!this.videoId){
|
|
|
+ if (!this.videoId) {
|
|
|
toast("video缺失!")
|
|
|
return false
|
|
|
}
|
|
@@ -297,7 +299,8 @@
|
|
|
goUpPage() {
|
|
|
if (!cacheManager.get('auth')) {
|
|
|
uni.redirectTo({
|
|
|
- url: '/pages/study/index?levelId=' + this.levelId + '&typeId=' + this.typeId + '&subjectId=' +
|
|
|
+ url: '/pages/study/index?levelId=' + this.levelId + '&typeId=' + this.typeId +
|
|
|
+ '&subjectId=' +
|
|
|
this.subjectId + '&tipFlag=' + this.tipFlag
|
|
|
})
|
|
|
} else {
|
|
@@ -310,9 +313,15 @@
|
|
|
|
|
|
|
|
|
},
|
|
|
- svipConfirm() {
|
|
|
+ goPayPage() {
|
|
|
+ let zhangInfoLocal = cacheManager.get('zhangInfo')
|
|
|
+ if (!zhangInfoLocal.cardId) {
|
|
|
+ toast("cardId 丢失请重新选择学科LevelId");
|
|
|
+ return false
|
|
|
+ }
|
|
|
uni.redirectTo({
|
|
|
- url: '/pages/pay/svip?cardId=' + cacheManager.get('auth').cardId
|
|
|
+ url: '/pages/mall/mallPage?cardId=' + zhangInfoLocal.cardId + '&from=daoPage' + '&subjectId=' +
|
|
|
+ zhangInfoLocal.subjectId
|
|
|
})
|
|
|
},
|
|
|
ykConfirm() {
|