Parcourir la source

20220826修改

asd123a20 il y a 2 ans
Parent
commit
b3907e96b3

+ 1 - 1
src/components/list/index.vue

@@ -141,7 +141,7 @@ export default {
     margin: 0 auto;
     ::v-deep .is-top {
       color: #000;
-      font-size: 16px;
+      font-size: 15px;
     }
     ::v-deep .is-active {
       color: #007ce2;

+ 1 - 1
src/components/list/threeList.vue

@@ -87,7 +87,7 @@ export default {
   .titleImg {
     display: block;
     width: 100%;
-    height: 70px;
+    height: 75px;
   }
   .title {
     display: flex;

+ 2 - 2
src/views/Home.vue

@@ -64,7 +64,7 @@ export default {
         { title: '科普活动', code: '042', parentCode: true },
         { title: '科普周', code: '043', parentCode: true },
         { title: '科普基地', code: '044', parentCode: true },
-        { title: '科普地', code: '045', parentCode: true },
+        { title: '科普地', code: '045', parentCode: true },
         { title: '交流培训', code: '046', parentCode: true }
       ],
       // 社科奖项
@@ -198,7 +198,7 @@ export default {
       width: 100%;
       position: absolute;
       bottom: 0;
-      height: 70px;
+      height: 75px;
     }
   }
 }

+ 1 - 1
src/views/constitution.vue

@@ -46,7 +46,7 @@ export default {
     this.parentCode = this.$route.query.parentCode;
     await this.filterQuery();
     this.menu = {
-      name: '社章程'
+      name: '社章程'
     };
     const children = [...this.contentList];
     this.menu.children = children.map(e => ({ ...e, name: e.title, code: e._id }));

+ 15 - 11
src/views/details.vue

@@ -8,7 +8,7 @@
       <!-- <span class="describe">{{ contentsItem.describe }}</span> -->
       <span class="date">
         发表时间: {{ contentsItem.date | dates }}
-        <span class="visit" v-if="contentsItem.source">来源: {{ contentsItem.source | source }}</span>
+        <span class="visit" v-if="contentsItem.source">来源: {{ contentsItem.source }}</span>
         <span class="visit" v-if="contentsItem.author">作者 : {{ contentsItem && contentsItem.author }}</span>
         <span class="visit">访问量: {{ contentsItem.visit }}</span>
       </span>
@@ -25,7 +25,6 @@
 import moment from 'moment';
 import breadcrumb from '../components/breadcrumb/index.vue';
 import { mapState, mapActions } from 'vuex';
-let _this;
 export default {
   name: 'detailsHome',
   components: {
@@ -37,14 +36,21 @@ export default {
       if (this.contentsItem.bind.includes('012')) return true;
       return false;
     }
+    // isdetails() {
+    //   const contentsItem = { ...this.contentsItem };
+    //   contentsItem.source = this.dict?.source.find(e => e.code == contentsItem.source).name;
+    //   return contentsItem;
+    // }
   },
   data() {
     return {
       id: ''
     };
   },
+  async created () {
+    await this.sourceQuery();
+  },
   async mounted() {
-    _this = this;
     this.id = this.$route.params.id;
     const type = this.$route.query.type;
     if (type) {
@@ -52,7 +58,6 @@ export default {
       return;
     }
     await this.contentsFetch({ id: this.id });
-    await this.sourceQuery();
     // eslint-disable-next-line no-unused-expressions
     if (this.$refs.detailsHome) this.$refs.detailsHome?.scrollIntoView(true);
   },
@@ -62,10 +67,6 @@ export default {
   filters: {
     dates(e) {
       return moment(e).format('YYYY-MM-DD');
-    },
-    source(code) {
-      const name = _this.dict?.source?.find(e => e.code == code).name;
-      return name;
     }
   }
 };
@@ -106,9 +107,12 @@ export default {
     padding-bottom: 10px;
   }
   .content {
-    text-align: left;
-    white-space: pre-wrap;
-    word-wrap: break-word;
+    ::v-deep p {
+      margin: 0;
+      line-height: 2em;
+      font-size: 16px;
+      text-align: justify;
+    }
     ::v-deep iframe {
       width: 70%;
       height: 500px;

+ 4 - 0
vue.config.js

@@ -11,6 +11,10 @@ module.exports = {
       '/upload/': {
         // target: 'http://127.0.0.1:9002'
         target: 'http://skl.cc-lotus.info'
+      },
+      '/ewebeditor/': {
+        // target: 'http://127.0.0.1:9002'
+        target: 'http://skl.cc-lotus.info'
       }
     }
   },