Browse Source

报纸默认封面

natasha 2 weeks ago
parent
commit
e0100aa543
2 changed files with 19 additions and 3 deletions
  1. BIN
      src/assets/baozhi3.png
  2. 19 3
      src/components/common/BookCard.vue

BIN
src/assets/baozhi3.png


+ 19 - 3
src/components/common/BookCard.vue

@@ -48,9 +48,25 @@
             : item.course_type === 'baozhi' ||
               (goodsTypeList[item.type] &&
                 goodsTypeList[item.type].type === 'baozhi')
-            ? require('../../assets/baozhi' +
-                (Math.floor(Math.random() * 2) + 1) +
-                '.png')
+            ? item.study_phase
+              ? item.study_phase === 11
+                ? require('../../assets/baozhi3.png')
+                : item.study_phase === 20 ||
+                  item.study_phase === 21 ||
+                  item.study_phase === 22 ||
+                  item.study_phase === 23
+                ? require('../../assets/baozhi1.png')
+                : item.study_phase === 30 ||
+                  item.study_phase === 31 ||
+                  item.study_phase === 32 ||
+                  item.study_phase === 33
+                ? require('../../assets/baozhi2.png')
+                : require('../../assets/baozhi' +
+                    (Math.floor(Math.random() * 2) + 1) +
+                    '.png')
+              : require('../../assets/baozhi' +
+                  (Math.floor(Math.random() * 2) + 1) +
+                  '.png')
             : require('../../assets/kecheng' +
                 (Math.floor(Math.random() * 3) + 1) +
                 '.png')