asd123a20 2 éve
szülő
commit
819fd8aa5d

+ 49 - 0
src/App.vue

@@ -3,16 +3,41 @@
     <headere></headere>
     <router-view/>
     <foot></foot>
+    <div v-if="isshow" class="isbox">
+      <el-card class="box-card">
+        <span class="cha" @click="isshow = false">x</span>
+        <h2>温馨提示</h2>
+        <span v-html="this.configurationdata && this.configurationdata.isname"></span>
+      </el-card>
+    </div>
   </div>
 </template>
 
 <script>
 import headere from './components/heads/index.vue'
 import foot from './components/foot/index.vue'
+import { createNamespacedHelpers } from 'vuex'
+const { mapActions, mapState } = createNamespacedHelpers('webconfig')
 export default {
   components: {
     headere,
     foot
+  },
+  data () {
+    return {
+      isshow: false
+    }
+  },
+  computed: {
+    ...mapState(['configurationdata'])
+  },
+  methods: {
+    ...mapActions(['configurationquery'])
+  },
+  async mounted () {
+    // window.addEventListener('scroll', this.handlescroll, true)
+    await this.configurationquery()
+    this.isshow = this.configurationdata.isshow
   }
 }
 </script>
@@ -24,4 +49,28 @@ export default {
   margin: 0;
   padding: 0;
 }
+.isbox {
+  position: fixed;
+  top: 30vh;
+  left: 40%;
+  // margin-left: -50%;
+  width: 400px;
+  // height: 400px;
+  z-index: 999;
+  box-shadow: 0 0 20px #999;
+  // border: 1px solid #999;
+  h2 {
+    width: 100%;
+    text-align: center;
+  }
+  .box-card {
+    border-top: 10px solid #a80002;
+  }
+  .cha {
+    position: absolute;
+    top: 15px;
+    right: 20px;
+    cursor: pointer;
+  }
+}
 </style>

BIN
src/assets/foot/ga.png


+ 8 - 0
src/components/foot/index.vue

@@ -24,6 +24,10 @@
             <div class="title">备案号:</div>
             <div class="text">{{ configurationdata && configurationdata.record }}</div>
           </div>
+          <a class="info" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=22010502000540"  style="text-decoration:none;">
+            <img src="../../assets/foot/ga.png" alt="公安备案" class="ga">
+            <div class="text">吉公网安备:22010502000540</div>
+          </a>
         </div>
         <img src="../../assets/foot/sy.png" alt="事业单位" class="sydw" @click="btnuri">
       </div>
@@ -81,6 +85,10 @@ export default {
         color: #666;
         font-size: 0.8em;
       }
+      .ga {
+        width: 3%;
+        margin-right: 1%;
+      }
       .text {
         width: 70%;
         text-align: left;

+ 1 - 1
src/store/content.js

@@ -19,7 +19,7 @@ const mutations = {
 }
 const actions = {
   async getcontent ({ commit }, { code, skip, limit } = {}) {
-    const res = await axios.get(api.query, { params: { code, skip, limit } })
+    const res = await axios.get(api.query, { params: { columns: code, skip, limit } })
     if (res.data.errcode === 0) commit('content', res.data)
     return res
   },

+ 1 - 2
src/store/index.js

@@ -13,8 +13,7 @@ export default new Vuex.Store({
   },
   mutations: {
   },
-  actions: {
-  },
+  actions: {},
   modules: {
     menu,
     content,

+ 14 - 13
src/views/Home.vue

@@ -29,13 +29,14 @@
           <div class="right">
             <p class="title">{{ item.title }}</p>
             <p class="date">{{ item.date }}</p>
-            <p class="text">{{ item.slug }}</p>
+            <!-- <p class="text" v-html="item && item.slug"></p> -->
+            <!-- <p class="text">{{ item.slug }}</p> -->
           </div>
         </div>
       </div>
     </div>
     <!-- 党建园地 -->
-    <div class="directory w">
+    <!-- <div class="directory w">
       <titles type="007" title="党建园地" en="Building" @jump="jumpList"></titles>
       <div class="contentList">
         <el-card class="imgbox" v-for="(item, index) in park" :key="index">
@@ -46,7 +47,7 @@
           <p class="date">{{ item.date }}</p>
         </el-card>
       </div>
-    </div>
+    </div> -->
     <!-- 往期回顾 -->
     <div class="review w">
       <div class="titlebox">
@@ -85,7 +86,7 @@
       <div class="right">
         <div class="text">
           <h2>本刊声明</h2>
-          <span>statement</span>
+          <!-- <span>statement</span> -->
           <p>本刊实行双向匿名审稿制度。</p>
           <p>本刊不以任何形式收取审稿费、版面费。</p>
           <p>本刊未与任何社会中介机构合作办刊,    并保留向假冒者追究法律责任的权利。</p>
@@ -300,10 +301,10 @@ export default {
           font-weight: 700;
           color: #000;
           cursor: pointer;
-          word-break: keep-all;
-          white-space: nowrap;
-          overflow: hidden;
-          text-overflow: ellipsis;
+          // word-break: keep-all;
+          // white-space: nowrap;
+          // overflow: hidden;
+          // text-overflow: ellipsis;
         }
         p {
           color: #696969;
@@ -399,11 +400,11 @@ export default {
           font-size: 1em;
           color: #222;
           overflow: hidden;
-          text-overflow: ellipsis;
-          display: -webkit-box;
-          -webkit-line-clamp: 1;
-          -webkit-box-orient: vertical;
-          word-break: break-all;
+          // text-overflow: ellipsis;
+          // display: -webkit-box;
+          // -webkit-line-clamp: 1;
+          // -webkit-box-orient: vertical;
+          // word-break: break-all;
         }
         .date {
           font-size: 2.5em;

+ 2 - 2
src/views/list.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="container">
-    <img src="../assets/banner/26025632.png" alt="头图" class="topimg">
+    <!-- <img src="../assets/banner/26025632.png" alt="头图" class="topimg"> -->
     <div class="box">
       <breadcrumb :type="'列表'" :item="item" :en="en"></breadcrumb>
       <el-button class="btn">{{ item }}</el-button>
@@ -9,7 +9,7 @@
           <img :src="item.thumbnail || imguri" alt="缩略图" class="imgs">
           <div class="item">
             <h4 class="title" @click="btn(item)">{{ item.title }}</h4>
-            <div class="details" v-html="item && item.slug"></div>
+            <!-- <div class="details" v-html="item && item.slug"></div> -->
             <div class="other">
               <div class="el-icon-time date">{{ item.date }}</div>
               <div class="el-icon-view num">{{ item.hits || 0 }}</div>

+ 0 - 1
src/views/page.vue

@@ -49,7 +49,6 @@ export default {
     async filteritem () {
       let items = {}
       if (this.code !== '-1') {
-        console.log(this.items)
         items = this.items.filter(p => p.code === this.code)[0]
       }
       // eslint-disable-next-line eqeqeq