|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <view class="ezy-exam-page">
|
|
|
+ <view class="ezy-exam-page" :style="{backgroundImage: 'url(' + courseBjFun() + ')'}">
|
|
|
<view class="ezy-navBar-box">
|
|
|
<view @click="handleBack" class="nav-bar-icon"></view>
|
|
|
<text class="nav-bar-title">单元测试</text>
|
|
@@ -58,6 +58,7 @@
|
|
|
import cacheManager from "@/utils/cacheManager";
|
|
|
import {onLoad} from "@dcloudio/uni-app"
|
|
|
|
|
|
+
|
|
|
const {
|
|
|
count,
|
|
|
total,
|
|
@@ -136,6 +137,19 @@
|
|
|
uni.$emit('swiper-change', index)
|
|
|
}
|
|
|
|
|
|
+ function courseBjFun() {
|
|
|
+ switch (Number(cacheManager.get('auth').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;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
</script>
|
|
|
|