natasha 3 settimane fa
parent
commit
a06963285d
6 ha cambiato i file con 17 aggiunte e 8 eliminazioni
  1. 1 0
      package.json
  2. 6 0
      src/main.js
  3. 1 2
      src/router/index.js
  4. 3 2
      src/views/bookView.vue
  5. 3 2
      src/views/courseView.vue
  6. 3 2
      src/views/courseWare.vue

+ 1 - 0
package.json

@@ -22,6 +22,7 @@
     "cnchar-all": "^3.0.1",
     "cnchar-order": "^3.0.1",
     "core-js": "3.6.5",
+    "eep-ui": "file:../GCLS-Book-UI/eep-ui-0.0.4.tgz",
     "element-ui": "^2.13.2",
     "he-tree-vue": "^2.0.10",
     "jquery": "^3.6.0",

+ 6 - 0
src/main.js

@@ -34,6 +34,12 @@ Vue.use(vcolorpicker)
 
 import i18n from '@/utils/i18n';
 
+import EepUi from 'eep-ui'
+import 'eep-ui/style.css'
+
+// eepUI包
+Vue.use(EepUi);
+
 /**
  * If you don't want to use mock-server
  * you want to use MockJs for mock api

+ 1 - 2
src/router/index.js

@@ -134,7 +134,7 @@ export const constantRoutes = [{
         if (configObj.sys_type == 'GCLS') {
           next(path)
         } else {
-          if (configObj.sys_type == 'NPC' || configObj.sys_type == 'NNPE' || configObj.sys_type == 'RLC') {
+          if (configObj.sys_type == 'NPC' || configObj.sys_type == 'NNPE' || configObj.sys_type == 'RLC'||configObj.sys_type == 'EEP') {
             if (path.indexOf('/curGoodsDetail') > -1) {
               next(path)
             } else {
@@ -231,7 +231,6 @@ export function handleSysType(sys_type, path_type) {
   const cs = csArr[1]
   switch (sys_type) {
     case 'GCLS':
-      console.log('全球汉语教学平台')
       if (path_type == 'home') {
         path = '/'
       } else if (path_type == 'goods') {

+ 3 - 2
src/views/bookView.vue

@@ -127,11 +127,12 @@
           </template>
           <template v-if="category == 'EEP'">
             <BookEep
-              v-if="view_content && chapterId"
+              v-if="view_content.content && chapterId"
               :id="chapterId"
+              :content="view_content.content"
               :content-group-row-list="view_content.content_group_row_list"
               :component-list="view_content.component_list"
-              :background="view_content.background"
+              :book-background="view_content.background"
             ></BookEep>
           </template>
         </div>

+ 3 - 2
src/views/courseView.vue

@@ -179,11 +179,12 @@
         </template>
         <template v-if="category == 'EEP'">
           <BookEep
-            v-if="view_content && chapterId"
+            v-if="view_content.content && chapterId"
             :id="chapterId"
+            :content="view_content.content"
             :content-group-row-list="view_content.content_group_row_list"
             :component-list="view_content.component_list"
-            :background="view_content.background"
+            :book-background="view_content.background"
           ></BookEep>
         </template>
       </div>

+ 3 - 2
src/views/courseWare.vue

@@ -114,11 +114,12 @@
         </template>
         <template v-if="category == 'EEP'">
           <BookEep
-            v-if="view_content && chapterId"
+            v-if="view_content.content && chapterId"
             :id="chapterId"
+            :content="view_content.content"
             :content-group-row-list="view_content.content_group_row_list"
             :component-list="view_content.component_list"
-            :background="view_content.background"
+            :book-background="view_content.background"
           ></BookEep>
         </template>
       </div>