Browse Source

页面效果更新

guhongwei 5 years ago
parent
commit
bc8f0a8f45

+ 1 - 1
public/index.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
-    <title>web-website</title>
+    <title>加载中</title>
   </head>
   <body>
     <noscript>

BIN
src/assets/noPic.png


BIN
src/assets/noPic2.png


BIN
src/assets/noPic3.png


+ 0 - 1
src/layout/detail/contInfo.vue

@@ -80,7 +80,6 @@ p {
 }
 .top .topTitle span {
   display: inline-block;
-  width: 100px;
   height: 38px;
   line-height: 38px;
   text-align: center;

+ 2 - 2
src/layout/index/recruit.vue

@@ -44,10 +44,10 @@
                   </el-col>
                 </el-col>
               </el-col>
-              <el-col :span="4" class="rightList" style="width:247px;height:369px;" v-loading="loading">
+              <el-col :span="4" class="rightList" style="width:247px;height:416px;" v-loading="loading">
                 <el-col :span="24" class="rightTop">
                   <el-col :span="16" class="rightTopTit">
-                    <span>{{ zixunList.title || title }}</span>
+                    <span>{{ zixunList.title || zixunTitle }}</span>
                   </el-col>
                   <el-col :span="8" class="rightTopLink">
                     <el-link :underline="false" @click="$router.push({ path: path, query: { title: zixunList.title } })"

+ 6 - 2
src/layout/list/mainRight.vue

@@ -7,7 +7,8 @@
       <el-col :span="24" class="info">
         <el-col :span="24" class="list" v-for="(item, index) in rightList" :key="index" @click.native="$router.push({ path: `/memberDetail?id=${item.id}` })">
           <el-col :span="5" class="images">
-            <el-image style="width:150px;height:95px;" :src="item.pic"></el-image>
+            <el-image style="width:150px;height:95px;" :src="item.pic" v-if="item.pic"></el-image>
+            <el-image style="width:150px;height:95px;" :src="Nopic" v-else></el-image>
           </el-col>
           <el-col :span="19" class="right">
             <el-col :span="24" class="rightTop">
@@ -44,6 +45,7 @@ export default {
   data: () => ({
     currentPage: 1,
     pageSize: 8,
+    Nopic: require('@/assets/noPic.png'),
   }),
   created() {},
   computed: {
@@ -76,12 +78,12 @@ p {
 }
 .top span {
   display: inline-block;
-  width: 100px;
   height: 40px;
   line-height: 40px;
   text-align: center;
   font-size: 18px;
   color: #fff;
+  padding: 0 10px;
   background-color: #176ebb;
 }
 .info {
@@ -108,6 +110,8 @@ p {
 }
 /deep/.list .content {
   padding: 0 8px;
+  height: 45px;
+  overflow: hidden;
 }
 /deep/.list .content p {
   padding: 0;

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

@@ -16,7 +16,8 @@
         <el-col :span="24" class="list">
           <el-col :span="24" class="rightList" v-for="(item, index) in newsList" :key="index">
             <el-col :span="5" class="image">
-              <el-image style="width:100%;height:95px;" :src="item.pic"></el-image>
+              <el-image style="width:150px;height:95px;" :src="item.pic" v-if="item.pic"></el-image>
+              <el-image style="width:150px;height:95px;" :src="Nopic" v-else></el-image>
             </el-col>
             <el-col :span="19">
               <el-col :span="24">
@@ -53,6 +54,7 @@ export default {
   data: () => ({
     currentPage: 1,
     pageSize: 8,
+    Nopic: require('@/assets/noPic.png'),
   }),
   created() {},
   computed: {},

+ 3 - 2
src/layout/member/dangjian.vue

@@ -59,7 +59,8 @@
               @click.native="$router.push({ path: `/memberDetail?id=${item.id}` })"
             >
               <el-col :span="24" class="imageTit">
-                <el-image style="width:180px;height:120px;" :src="item.pic"></el-image>
+                <el-image style="width:180px;height:120px;" :src="item.pic" v-if="item.pic"></el-image>
+                <el-image style="width:180px;height:120px;" :src="Nopic" v-else></el-image>
               </el-col>
               <el-col :span="24" class="title">
                 <p>{{ item.title }}</p>
@@ -119,6 +120,7 @@ export default {
     infosList: [],
     infossList: [],
     loading: true,
+    Nopic: require('@/assets/noPic.png'),
   }),
   watch: {
     rencaiList: {
@@ -215,7 +217,6 @@ p {
 }
 .infoLeftTop .leftTopTitle span {
   display: inline-block;
-  width: 100px;
   height: 39px;
   text-align: center;
   border-bottom: 1px solid #bd010b;

+ 3 - 1
src/layout/member/gaoceng.vue

@@ -21,7 +21,8 @@
               :key="index"
               @click.native="$router.push({ path: `/memberDetail?id=${item.id}` })"
             >
-              <el-image style="width:100%;height:400px;" :src="item.pic"></el-image>
+              <el-image style="width:100%;height:400px;" :src="item.pic" v-if="item.pic"></el-image>
+              <el-image style="width:100%;height:400px;" :src="noPic" v-else></el-image>
               <span class="textOver">{{ item.title }}</span>
             </el-carousel-item>
           </el-carousel>
@@ -65,6 +66,7 @@ export default {
     infoList: [],
     infosList: [],
     loading: true,
+    noPic: require('@/assets/noPic3.png'),
   }),
   watch: {
     carouselList: {

+ 9 - 3
src/layout/member/xuexi.vue

@@ -66,14 +66,20 @@
         </el-col>
         <el-col :span="8" class="infoLeft" v-loading="loading">
           <el-col :span="24" class="infoLeftTop">
-            <el-col :span="24" class="leftTopTitle">
+            <el-col :span="18" class="leftTopTitle">
               <span>{{ zhunti.title }}</span>
             </el-col>
+            <el-col :span="6" class="leftTopMore">
+              <el-link :underline="false" @click="$router.push({ path: zhunti.path, query: { title: zhunti.title } })"
+                >更多<i class="el-icon-plus"></i
+              ></el-link>
+            </el-col>
           </el-col>
           <el-col :span="24" class="infoRightList">
             <el-col :span="24" v-for="(item, index) in infossList" :key="index" @click.native="$router.push({ path: `/memberDetail?id=${item.id}` })">
               <el-col :span="24">
-                <el-image style="width:400px;height:280px;" :src="item.pic"></el-image>
+                <el-image style="width:400px;height:280px;" :src="item.pic" v-if="item.pic"></el-image>
+                <el-image style="width:400px;height:280px;" :src="Nopic" v-else></el-image>
               </el-col>
             </el-col>
           </el-col>
@@ -101,6 +107,7 @@ export default {
     infosList: [],
     infossList: [],
     loading: true,
+    Nopic: require('@/assets/noPic2.png'),
   }),
   watch: {
     dangguiList: {
@@ -197,7 +204,6 @@ p {
 }
 .infoLeftTop .leftTopTitle span {
   display: inline-block;
-  width: 100px;
   height: 39px;
   text-align: center;
   border-bottom: 1px solid #bd010b;

+ 3 - 0
src/views/loading.vue

@@ -60,6 +60,9 @@ export default {
         let result = await this.getSite({ type: 'search' });
         if (result.data === null) {
           this.$router.push('/fail');
+        } else {
+          sessionStorage.setItem('site', JSON.stringify(result.data));
+          this.$router.push('/index');
         }
       } else {
         this.$router.push('/index');