浏览代码

游戏调整

wangxy 4 月之前
父节点
当前提交
fe5b4c2503
共有 2 个文件被更改,包括 22 次插入4 次删除
  1. 1 1
      components/chengji/chengji.vue
  2. 21 3
      components/questionJiexi/questionJiexi.vue

+ 1 - 1
components/chengji/chengji.vue

@@ -53,7 +53,7 @@
 			</view>
 			</view>
 		<!-- 解析浮层数据 -->
-		<questionJiexi ref="jiexiRef"></questionJiexi>
+		<questionJiexi ref="jiexiRef" :cardId="cardId"></questionJiexi>
 	</uni-popup>
 </template>
 

+ 21 - 3
components/questionJiexi/questionJiexi.vue

@@ -2,7 +2,7 @@
 	<view>
 		<uni-popup ref="popupRef" :animation="false" :is-mask-click="false"
 			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 @click="handleBack" class="nav-bar-icon"></view>
 					<view class="nav-bar-title">单元测试</view>
@@ -40,6 +40,12 @@
 		getVideoAuth,
 	} from "@/api/shipin.js"
 	export default {
+		props: {
+			cardId: {
+				type: [String,Number],
+				default: 1
+			}
+		},
 		data() {
 			return {
 				pageData: null, //上个页面获取的视频参数(视频id)
@@ -85,8 +91,20 @@
 					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() {
 			// console.log("getLive")