Browse Source

调整页脚

caojunjie 4 years ago
parent
commit
a105c9b2b9
3 changed files with 92 additions and 59 deletions
  1. 44 32
      src/views/footer/index.vue
  2. 38 12
      src/views/inquiryAndOrder/index.vue
  3. 10 15
      src/views/navigation/navigation.vue

+ 44 - 32
src/views/footer/index.vue

@@ -1,38 +1,50 @@
 <template>
-  <div style="width: 100%;background-color: #00163C;margin: 0 auto;display:flex;justify-content: space-around;padding-top: 20px;padding-bottom: 20px;">
-    <div style="width: 75%;display:flex;justify-content: space-around;color:#ffffff;font-size: 14px;font-weight:bold">
-      <ul style="list-style:none;text-align: left">
-        <li style="margin-bottom: 10px">解决方案 <span>/solition</span></li>
-        <li>电子政务</li>
-        <li>金融行业</li>
-        <li>电力行业</li>
-      </ul>
-      <ul style="list-style:none;text-align: left">
-        <li style="margin-bottom: 10px">服务支持 <span>/service</span></li>
-        <li>服务体系</li>
-        <li>服务优势</li>
-        <li>服务热线</li>
-      </ul>
-      <ul style="list-style:none;text-align: left">
-        <li style="margin-bottom: 10px">资讯中心 <span>/news</span></li>
-        <li>通知公告</li>
-        <li>业界新闻</li>
-        <li>政策通告</li>
-      </ul>
-      <ul style="list-style:none;text-align: left">
-        <li style="margin-bottom: 10px">关于我们 <span>/about us</span></li>
-        <li>公司介绍</li>
-        <li>校园招聘</li>
-        <li>社会招聘</li>
-        <li>联系我们</li>
-      </ul>
-    </div>
-    <div style="width: 25%;display: flex;align-items: center;justify-content: center">
-      <div>
-        <div style="width: 100px;height: 100px;background-color: #1f68d6;margin: 0 auto"></div>
-        <div style="color:#fff;font-size: 14px;margin-top: 10px">微信服务号 | 关注我们</div>
+  <div style="width: 100%;background-color: #00163C;">
+    <div style="width: 100%;margin: 0 auto;display:flex;justify-content: space-around;padding-top: 20px;padding-bottom: 20px;">
+      <div style="width: 75%;display:flex;justify-content: space-around;color:#ffffff;font-size: 14px;font-weight:bold">
+        <ul style="list-style:none;text-align: left">
+          <li style="margin-bottom: 10px">解决方案 <span>/solition</span></li>
+          <li>电子政务</li>
+          <li>金融行业</li>
+          <li>电力行业</li>
+        </ul>
+        <ul style="list-style:none;text-align: left">
+          <li style="margin-bottom: 10px">服务支持 <span>/service</span></li>
+          <li>服务体系</li>
+          <li>服务优势</li>
+          <li>服务热线</li>
+        </ul>
+        <ul style="list-style:none;text-align: left">
+          <li style="margin-bottom: 10px">资讯中心 <span>/news</span></li>
+          <li>通知公告</li>
+          <li>业界新闻</li>
+          <li>政策通告</li>
+        </ul>
+        <ul style="list-style:none;text-align: left">
+          <li style="margin-bottom: 10px">关于我们 <span>/about us</span></li>
+          <li>公司介绍</li>
+          <li>校园招聘</li>
+          <li>社会招聘</li>
+          <li>联系我们</li>
+        </ul>
+      </div>
+      <div style="width: 25%;display: flex;align-items: center;justify-content: center">
+        <div>
+          <div style="width: 100px;height: 100px;background-color: #1f68d6;margin: 0 auto"></div>
+          <div style="color:#fff;font-size: 14px;margin-top: 10px">微信服务号 | 关注我们</div>
+        </div>
       </div>
     </div>
+    <div style="width: 80%;margin: 0 auto">
+      <el-divider></el-divider>
+    </div>
+    <div style="color:#ffffff;font-size: 12px;padding-bottom: 20px">
+      <span>Copyright © 1996-2017</span>
+      <el-divider direction="vertical"></el-divider>
+      <span>****网络科技有限公司 版权所有  琼ICP备140*****号</span>
+      <br>
+      <span>《中华人民共和国增值电信业务经营许可证》琼B1-20**0477     琼ICP备1407***06号   琼公网安备 4******0120号  </span>
+    </div>
   </div>
 </template>
 

+ 38 - 12
src/views/inquiryAndOrder/index.vue

@@ -19,7 +19,9 @@
       <div v-if="selection === '1'">
         <el-input placeholder="请输入发货地址">
           <template slot="prepend">发货地址</template>
-          <el-button slot="append" icon="el-icon-d-caret" @click="whether = !whether">{{whether === false?'指定港口':'取消指定港口'}}</el-button>
+          <el-button slot="append" icon="el-icon-d-caret" @click="whether = !whether">
+            {{ whether === false ? '指定港口' : '取消指定港口' }}
+          </el-button>
         </el-input>
         <el-input placeholder="请输入货物名称">
           <template slot="prepend">货物名称</template>
@@ -42,7 +44,9 @@
       <div v-if="selection === '2'">
         <el-input placeholder="请输入发货地址">
           <template slot="prepend">发货地址</template>
-          <el-button slot="append" icon="el-icon-d-caret" @click="whether = !whether">{{whether === false?'指定港口':'取消指定港口'}}</el-button>
+          <el-button slot="append" icon="el-icon-d-caret" @click="whether = !whether">
+            {{ whether === false ? '指定港口' : '取消指定港口' }}
+          </el-button>
         </el-input>
         <el-input placeholder="请输入货物名称">
           <template slot="prepend">货物名称</template>
@@ -71,7 +75,9 @@
         </el-input>
         <el-input placeholder="请输入收货地址">
           <template slot="prepend">收货地址</template>
-          <el-button slot="append" icon="el-icon-d-caret" @click="whether = !whether">{{whether === false?'指定港口':'取消指定港口'}}</el-button>
+          <el-button slot="append" icon="el-icon-d-caret" @click="whether = !whether">
+            {{ whether === false ? '指定港口' : '取消指定港口' }}
+          </el-button>
         </el-input>
         <el-input placeholder="请输入预计装货时间">
           <template slot="prepend">预计装货时间</template>
@@ -92,16 +98,18 @@
         <el-input placeholder="请输入预计装货时间">
           <template slot="prepend">预计装货时间</template>
         </el-input>
-        <button style="width: 400px;height: 0;border: none;padding: 0;"></button>
-        <button style="width: 400px;height: 0;border: none;padding: 0;"></button>
+        <button class="stealthbutton"></button>
+        <button class="stealthbutton"></button>
       </div>
       <div>
         <el-button type="primary">船期查询</el-button>
       </div>
       <el-divider>查询船期</el-divider>
-      <div style="width: 100%;padding: 10px;display: flex;justify-content: space-around;border: 1px solid #E8E8E8;box-shadow: 0 2px 7px 0 rgb(71 71 71 / 20%);">
+      <div
+        style="width: 100%;padding: 10px;display: flex;justify-content: space-around;border: 1px solid #E8E8E8;box-shadow: 0 2px 7px 0 rgb(71 71 71 / 20%);">
         <div style="width: 50%;line-height: 40px;">
-          <div style="background-color: #f10724;width: 80px;margin-top: 15px;margin-right: 5px;margin-left: 5px;height: 30px;line-height: 30px;border-radius: 20px;color: #ffffff;float: left">
+          <div
+            style="background-color: #f10724;width: 80px;margin-top: 15px;margin-right: 5px;margin-left: 5px;height: 30px;line-height: 30px;border-radius: 20px;color: #ffffff;float: left">
             丹东
           </div>
           <div style="width: 40px;height: 60px;float: left">
@@ -113,7 +121,8 @@
             </div>
           </div>
         </div>
-        <div style="width: 25%;margin: 0 auto;display: flex;align-items: center;justify-content: center;border-left: 1px solid #E8E8E8">
+        <div
+          style="width: 25%;margin: 0 auto;display: flex;align-items: center;justify-content: center;border-left: 1px solid #E8E8E8">
           <div>
             <span style="color: #999999">全程运输时长:</span>
             <span style="font-weight:bold">9天</span>
@@ -148,7 +157,7 @@
             </div>
           </div>
         </div>
-        <div style="width: 15%;margin: 0 auto;display: flex;align-items: center;justify-content: center;border-left: 1px solid #E8E8E8">
+        <div class="query">
           <el-button type="primary">查看船期</el-button>
         </div>
       </div>
@@ -167,7 +176,7 @@
               label="预计开航"
               width="180">
               <template slot-scope="scope">
-                {{scope.row.date}}
+                {{ scope.row.date }}
               </template>
             </el-table-column>
             <el-table-column
@@ -209,7 +218,7 @@ export default {
     return {
       value1: '',
       selection: '1',
-      whether:false,
+      whether: false,
       activeIndex: '1',
       activeIndex2: '1',
       labelPosition: 'right',
@@ -239,7 +248,7 @@ export default {
   },
   methods: {
     handleSelect(key, keyPath) {
-      this.whether = false
+      this.whether = false;
       console.log(key, keyPath);
       this.selection = key;
     },
@@ -248,6 +257,15 @@ export default {
 </script>
 
 <style scoped lang="scss">
+.query {
+  width: 15%;
+  margin: 0 auto;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  border-left: 1px solid #E8E8E8
+}
+
 .outermost {
   width: 80%;
   margin: auto auto 100px auto;
@@ -257,6 +275,13 @@ export default {
   flex-wrap: wrap;
 }
 
+.stealthbutton {
+  width: 400px;
+  height: 0;
+  border: none;
+  padding: 0;
+}
+
 .outermost > div:nth-child(1) {
   width: 80%;
   display: flex;
@@ -273,6 +298,7 @@ export default {
   align-items: center;
   justify-content: center
 }
+
 .outermost > div:nth-child(1) > .el-input {
   width: 400px;
   margin-top: 5px;

+ 10 - 15
src/views/navigation/navigation.vue

@@ -1,16 +1,16 @@
 <template>
-  <div style="width: 100%;display: flex;justify-content:space-around;">
+  <div style="width: 100%;display: flex;justify-content:space-around;box-shadow: 0 3px 7px 0 rgba(0,0,0,0.09);">
     <el-menu
       :default-active="activeIndex"
       class="el-menu-demo"
       mode="horizontal"
       @select="handleSelect">
       <img src="../../assets/logo.png" alt="" style="float: left;width: 15%;margin-top: 10px">
-      <el-menu-item index="1">首页</el-menu-item>
+      <el-menu-item index="/">首页</el-menu-item>
       <el-submenu index="2">
         <template slot="title">我要下单</template>
         <el-menu-item index="2-1">合约下单</el-menu-item>
-        <el-menu-item index="2-2">查询下单</el-menu-item>
+        <el-menu-item index="/inquiryAndOrder">查询下单</el-menu-item>
       </el-submenu>
       <el-submenu index="3">
         <template slot="title">订单管理</template>
@@ -62,22 +62,17 @@ export default {
   name: 'navigation',
   data() {
     return {
-      activeIndex: '',
+      activeIndex:'',
     };
   },
+  watch: {
+    $route(e) {
+      this.activeIndex = e.path;  // e里面的是当前路由的信息
+    },
+  },
   methods: {
     handleSelect(key, keyPath) {
-      console.log(key, keyPath);
-      switch (key){
-        case '1':
-          this.$router.push('/');
-          break
-        case '2-2':
-          this.$router.push('/inquiryAndOrder');
-          break
-        default:
-          break
-      }
+      this.$router.push(key);
     },
   }
 };