guhongwei 4 gadi atpakaļ
vecāks
revīzija
8d37d3b6cd

+ 5 - 1
src/views/journ/detail.vue

@@ -12,7 +12,11 @@
             <span class="textOver">发布时间:{{ info.publish_time || '暂无' }}</span>
           </el-col>
           <el-col :span="24" v-if="info.picture != null || undefined" class="img">
-            <van-image :src="info.picture"></van-image>
+            <van-image :src="info.picture">
+              <div slot="error" class="image-slot">
+                <i class="el-icon-picture-outline"></i>
+              </div>
+            </van-image>
           </el-col>
           <el-col :span="24" class="con" v-html="info.content"> </el-col>
           <el-col :span="24" class="four" v-if="info.filepath">

+ 4 - 4
src/views/journ/index.vue

@@ -87,28 +87,28 @@ export default {
       if (col) {
         const res = await this.newsquery({ column_id: col.id });
         if (this.$checkRes(res)) {
-          this.$set(this, `kjzxLists`, res.data);
+          this.$set(this, `kjzxLists`, _.orderBy(res.data, ['publish_time'], ['desc']));
         }
       }
       let col2 = this.column.find(i => i.site == 'gzdt');
       if (col2) {
         const res = await this.newsquery({ column_id: col2.id });
         if (this.$checkRes(res)) {
-          this.$set(this, `gzdtLists`, res.data);
+          this.$set(this, `gzdtLists`, _.orderBy(res.data, ['publish_time'], ['desc']));
         }
       }
       let col3 = this.column.find(i => i.site == 'tztg');
       if (col3) {
         const res = await this.newsquery({ column_id: col3.id });
         if (this.$checkRes(res)) {
-          this.$set(this, `tztgLists`, res.data);
+          this.$set(this, `tztgLists`, _.orderBy(res.data, ['publish_time'], ['desc']));
         }
       }
       let col4 = this.column.find(i => i.site == 'jsqy');
       if (col4) {
         const res = await this.newsquery({ column_id: col4.id });
         if (this.$checkRes(res)) {
-          this.$set(this, `jsqyLists`, res.data);
+          this.$set(this, `jsqyLists`, _.orderBy(res.data, ['publish_time'], ['desc']));
         }
       }
     },

+ 5 - 1
src/views/login.vue

@@ -3,7 +3,7 @@
     <el-row>
       <el-col :span="24" class="style">
         <el-col :span="24" class="top">
-          <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
+          <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow" @onClickLeft="onClickLeft"> </NavBar>
         </el-col>
         <el-col :span="24" class="main">
           <van-tabs>
@@ -108,6 +108,10 @@ export default {
         }
       }
     },
+    // 返回
+    onClickLeft() {
+      this.$router.go(-1);
+    },
   },
   computed: {
     ...mapState(['user']),

+ 4 - 1
src/views/service/parts/technicaldetail.vue

@@ -10,7 +10,10 @@
           <span class="textOver"> 信息来源:{{ info.orgin }}</span>
         </el-col>
         <el-col :span="24" class="image">
-          <el-image :src="info.picture"></el-image>
+          <el-image :src="info.picture">
+            <div slot="error" class="image-slot">
+              <i class="el-icon-picture-outline"></i></div
+          ></el-image>
         </el-col>
         <el-col :span="24" class="video">
           <video :src="info.filepath" autoplay="" controls="controls">