Explorar el Código

Merge branch 'master' of http://git.cc-lotus.info/service-platform/web-test

wuhongyu hace 5 años
padre
commit
42488b2384
Se han modificado 1 ficheros con 27 adiciones y 6 borrados
  1. 27 6
      src/views/market/index.vue

+ 27 - 6
src/views/market/index.vue

@@ -8,19 +8,19 @@
             <p></p>
           </el-col>
           <el-col :span="23" class="infoLeft">
-            <el-col :span="12" class="productList" v-for="(item, index) in productList" :key="index">
+            <el-col :span="12" class="productList" v-for="(item, index) in productList" :key="index" @click.native="productDetail(item.id)">
               <el-image :src="item.image[0].url"></el-image>
               <p class="textOver">{{ item.name }}</p>
             </el-col>
           </el-col>
-          <el-col :span="24" class="leftListDown"><span></span><span>MORE</span></el-col>
+          <el-col :span="24" class="leftListDown"><span></span><span @click="toProductList">MORE</span></el-col>
         </el-col>
         <el-col :span="12" class="right">
-          <el-col :span="24" class="rightListTop"><span>MORE</span><span></span></el-col>
+          <el-col :span="24" class="rightListTop"><span @click="toTecList">MORE</span><span></span></el-col>
           <el-col :span="23" class="infoRight">
             <el-col :span="24" class="tecList" v-for="(item, index) in tecList" :key="index">
               <span></span>
-              <span class="textOver">{{ item.name }}</span>
+              <span class="textOver" @click="tecDetail(item.id)">{{ item.name }}</span>
               <span>对接</span>
               <span>{{ item.meta | getDate }}</span>
             </el-col>
@@ -45,11 +45,11 @@
                   ><p>S</p>
                   <p>ervice</p></span
                 >
-                <span>更多</span>
+                <span @click="toServiceList">更多</span>
               </span>
             </el-col>
             <el-col :span="24" class="downLeftInfo">
-              <el-col :span="24" class="bankingList" v-for="(item, index) in serviceList" :key="index">
+              <el-col :span="24" class="bankingList" v-for="(item, index) in serviceList" :key="index" @click.native="serviceDetail(item.id)">
                 <el-col :span="10">
                   <el-image :src="item.image[0].url"></el-image>
                 </el-col>
@@ -162,6 +162,24 @@ export default {
       // res = await this.expertQuery({ skip: 0, limit: 4 });
       // if (this.$checkRes(res)) this.$set(this, `expertsList`, res.data);
     },
+    toProductList() {
+      window.location.href = 'http://free.liaoningdoupo.com/platweb/supermaket/supermarketlist?totaltype=1';
+    },
+    productDetail(id) {
+      window.location.href = 'http://free.liaoningdoupo.com/platweb/supermaket/supermarketdetail?totaltype=2&&?&id=' + id + '';
+    },
+    toTecList() {
+      window.location.href = 'http://free.liaoningdoupo.com/platweb/supermaket/supermarketlist?totaltype=0';
+    },
+    tecDetail(id) {
+      window.location.href = 'http://free.liaoningdoupo.com/platweb/supermaket/supermarketdetail?totaltype=0&&?&id=' + id + '';
+    },
+    toServiceList() {
+      window.location.href = 'http://free.liaoningdoupo.com/platweb/supermaket/supermarketlist?totaltype=2';
+    },
+    serviceDetail(id) {
+      window.location.href = 'http://free.liaoningdoupo.com/platweb/supermaket/supermarketdetail?totaltype=2&&?&id=' + id + '';
+    },
   },
 };
 </script>
@@ -254,6 +272,7 @@ export default {
   padding: 0 15px 0 0;
   color: #044b79;
   font-weight: 700;
+  cursor: pointer;
 }
 .right {
   float: right;
@@ -270,6 +289,7 @@ export default {
   padding: 0 0 0 15px;
   color: #044b79;
   font-weight: 700;
+  cursor: pointer;
 }
 .rightListTop span:last-child {
   display: inline-block;
@@ -387,6 +407,7 @@ export default {
   color: #044b79;
   position: relative;
   top: 20px;
+  cursor: pointer;
 }
 .bankingList {
   height: 152px;