瀏覽代碼

报纸默认封面

natasha 2 周之前
父節點
當前提交
e0100aa543
共有 2 個文件被更改,包括 19 次插入3 次删除
  1. 二進制
      src/assets/baozhi3.png
  2. 19 3
      src/components/common/BookCard.vue

二進制
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')