natasha 3 vuotta sitten
vanhempi
commit
cfc7b3f075
2 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 2 0
      src/components/Adult/Preview.vue
  2. 3 0
      src/views/adultInput.vue

+ 2 - 0
src/components/Adult/Preview.vue

@@ -2,6 +2,7 @@
 <template>
   <div
     class="NNPE-Big-Book-preview adult-book-preview-sty preview-red"
+    :class="['NNPE-Big-Book-preview-'+themeColor]"
     v-if="cur"
   >
     <div
@@ -322,6 +323,7 @@ export default {
     "currentTreeID",
     "FatherTreeData",
     "changeId",
+    "themeColor",
   ],
   data() {
     return {

+ 3 - 0
src/views/adultInput.vue

@@ -625,6 +625,7 @@
           :currentTreeID="currentTreeID"
           :FatherTreeData="FatherTreeData"
           :change-id="changeId"
+          :themeColor="themeColor"
         />
       </div>
       <span slot="footer" class="dialog-footer">
@@ -826,6 +827,7 @@ export default {
       module_type: "",
       tmInde: "",
       FatherTreeData: null,
+      themeColor:'', // 主题颜色
     };
   },
   computed: {
@@ -1008,6 +1010,7 @@ export default {
       console.log(this.question_list);
       getContent(MethodName, data)
         .then((res) => {
+          this.themeColor = res.book_theme_color ? res.book_theme_color : ''
           this.question_list = res.content
             ? JSON.parse(res.content)
             : JSON.parse(JSON.stringify(this.org_question_list));