|
@@ -2,7 +2,7 @@
|
|
<view>
|
|
<view>
|
|
<uni-popup ref="popupRef" :animation="false" :is-mask-click="false"
|
|
<uni-popup ref="popupRef" :animation="false" :is-mask-click="false"
|
|
mask-background-color="rgba(255, 255, 255, 0.6);" class="ezy-popup-width-all">
|
|
mask-background-color="rgba(255, 255, 255, 0.6);" class="ezy-popup-width-all">
|
|
- <view class="ezy-dajx-page">
|
|
|
|
|
|
+ <view class="ezy-dajx-page" :style="{backgroundImage: 'url(' + courseBjFun() + ')'}">
|
|
<view class="icon-title-navBar-box">
|
|
<view class="icon-title-navBar-box">
|
|
<view @click="handleBack" class="nav-bar-icon"></view>
|
|
<view @click="handleBack" class="nav-bar-icon"></view>
|
|
<view class="nav-bar-title">单元测试</view>
|
|
<view class="nav-bar-title">单元测试</view>
|
|
@@ -40,6 +40,12 @@
|
|
getVideoAuth,
|
|
getVideoAuth,
|
|
} from "@/api/shipin.js"
|
|
} from "@/api/shipin.js"
|
|
export default {
|
|
export default {
|
|
|
|
+ props: {
|
|
|
|
+ cardId: {
|
|
|
|
+ type: [String,Number],
|
|
|
|
+ default: 1
|
|
|
|
+ }
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
pageData: null, //上个页面获取的视频参数(视频id)
|
|
pageData: null, //上个页面获取的视频参数(视频id)
|
|
@@ -85,8 +91,20 @@
|
|
this.seekTime = data.offset
|
|
this.seekTime = data.offset
|
|
});
|
|
});
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ courseBjFun() {
|
|
|
|
+ const cardId = Number(this.cardId);
|
|
|
|
+ switch (cardId) {
|
|
|
|
+ case 1:
|
|
|
|
+ return 'static/images/course/couse-shuxue-bj.png'
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ return 'static/images/course/course-yingyu-bj.png'
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
// console.log("getLive")
|
|
// console.log("getLive")
|