guhongwei před 5 roky
rodič
revize
7a2e4e5449

+ 6 - 1
src/layout/index/law.vue

@@ -14,7 +14,12 @@
           <el-col :span="19" class="title">
           <el-col :span="19" class="title">
             <p class="textOver"><i class="el-icon-caret-right icon"></i>{{ item.title }}</p>
             <p class="textOver"><i class="el-icon-caret-right icon"></i>{{ item.title }}</p>
           </el-col>
           </el-col>
-          <el-col :span="5" class="date">
+          <el-col :span="5" class="date" v-if="item.publish_time">
+            {{ item.publish_time }}
+            <span v-if="item.publish_time"></span>
+            <span v-else>{{ item.meta | getDate }}</span>
+          </el-col>
+          <el-col :span="5" class="date" v-else>
             {{ item.meta | getDate }}
             {{ item.meta | getDate }}
           </el-col>
           </el-col>
         </el-col>
         </el-col>

+ 6 - 1
src/layout/index/noticeNews.vue

@@ -17,7 +17,12 @@
             <el-col :span="19" class="title">
             <el-col :span="19" class="title">
               <p class="textOver"><i class="el-icon-caret-right icon"></i>{{ item.title }}</p>
               <p class="textOver"><i class="el-icon-caret-right icon"></i>{{ item.title }}</p>
             </el-col>
             </el-col>
-            <el-col :span="5" class="date">
+            <el-col :span="5" class="date" v-if="item.publish_time">
+              {{ item.publish_time }}
+              <span v-if="item.publish_time"></span>
+              <span v-else>{{ item.meta | getDate }}</span>
+            </el-col>
+            <el-col :span="5" class="date" v-else>
               {{ item.meta | getDate }}
               {{ item.meta | getDate }}
             </el-col>
             </el-col>
           </el-col>
           </el-col>

+ 5 - 1
src/layout/index/recruit.vue

@@ -178,11 +178,11 @@ p {
   margin: 0 10px 0 0;
   margin: 0 10px 0 0;
   background-color: #fff;
   background-color: #fff;
   padding: 10px;
   padding: 10px;
+  box-shadow: 0 0 10px #ccc;
 }
 }
 .noList {
 .noList {
   height: 40px;
   height: 40px;
   line-height: 40px;
   line-height: 40px;
-  background-color: #f5f5f5;
   font-size: 16px;
   font-size: 16px;
   color: #a01f25;
   color: #a01f25;
 }
 }
@@ -204,6 +204,9 @@ p {
   line-height: 40px;
   line-height: 40px;
   font-size: 16px;
   font-size: 16px;
 }
 }
+.recruitList:nth-child(2n) {
+  background-color: #f1f1f1;
+}
 .recruitList .jobs {
 .recruitList .jobs {
   text-align: left;
   text-align: left;
   padding: 0 15px;
   padding: 0 15px;
@@ -228,6 +231,7 @@ p {
   height: 416px;
   height: 416px;
   overflow: hidden;
   overflow: hidden;
   background-color: #fff;
   background-color: #fff;
+  box-shadow: 0 0 10px #ccc;
 }
 }
 .rightTop {
 .rightTop {
   height: 39px;
   height: 39px;

+ 6 - 1
src/layout/index/zhidao.vue

@@ -16,7 +16,12 @@
           <el-col :span="19" class="title">
           <el-col :span="19" class="title">
             <p class="textOver"><i class="el-icon-caret-right icon"></i>{{ item.title }}</p>
             <p class="textOver"><i class="el-icon-caret-right icon"></i>{{ item.title }}</p>
           </el-col>
           </el-col>
-          <el-col :span="5" class="date">
+          <el-col :span="5" class="date" v-if="item.publish_time">
+            {{ item.publish_time }}
+            <span v-if="item.publish_time"></span>
+            <span v-else>{{ item.meta | getDate }}</span>
+          </el-col>
+          <el-col :span="5" class="date" v-else>
             {{ item.meta | getDate }}
             {{ item.meta | getDate }}
           </el-col>
           </el-col>
         </el-col>
         </el-col>

+ 4 - 1
src/layout/list/newsInfo.vue

@@ -24,7 +24,10 @@
                 <el-col :span="20" class="title" @click.native="turnTo(item)">
                 <el-col :span="20" class="title" @click.native="turnTo(item)">
                   <p class="textOver">{{ item.title }}</p>
                   <p class="textOver">{{ item.title }}</p>
                 </el-col>
                 </el-col>
-                <el-col :span="4" class="date">
+                <el-col :span="4" class="date" v-if="item.publish_time">
+                  {{ item.publish_time }}
+                </el-col>
+                <el-col :span="4" class="date" v-else>
                   {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
                   {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
                 </el-col>
                 </el-col>
               </el-col>
               </el-col>