Browse Source

首页进入详情页面跳转方式

tanxue 3 years ago
parent
commit
0df9974a76
1 changed files with 10 additions and 6 deletions
  1. 10 6
      pages/index.vue

+ 10 - 6
pages/index.vue

@@ -76,7 +76,7 @@
             <ul class="demand-tab-list demand-kaoshi-list">
               <li v-for="item in kaoshiLiArray">
                 <div class="demand-content-box">{{item.demandNumber}}</div>
-                <a class="demand-onclick-btn mta-hidden-sm" :href="`${baseUrl}/${item.demandHref}`"></a>
+                <a class="demand-onclick-btn mta-hidden-sm" @click="goDetailsPage(item.demandHref)"></a>
                 <div class="demand-img-box"><i></i><h4>{{item.demandTitle}}</h4></div>
                 <div class="demand-mask-box">
                   <h4>{{item.demandTitle}}<a :href="`${baseUrl}/${item.demandHref}`"><span>了解详情</span><i></i></a></h4>
@@ -173,7 +173,7 @@
     <!-- 新闻资讯 手机-->
     <div class="client-newsInfo-phone mta-hidden-sm">
       <h4 class="client-title">新闻资讯</h4>
-      <el-carousel :interval="40000000" type="card" height="300px" indicator-position="none" arrow="never">
+      <el-carousel :interval="5000" type="card" height="300px" indicator-position="none" arrow="never">
         <el-carousel-item v-for="(item,index) in topCarousels" :key="index" class="el-row">
           <img :src="item.pic" alt="新闻资讯"  @click="checkInfo(item)"/>
           <div class="newsInfo-card-content"  @click="checkInfo(item)">
@@ -604,6 +604,10 @@
       }
     },
     methods:    {
+      // 移动端跳转详情页
+      goDetailsPage(data){
+        this.$router.push({ name: data});
+      },
       // 判断是否为移动端
       getSystemWidth(){
         var browserWidth=document.documentElement.clientWidth;
@@ -629,15 +633,15 @@
         this.getSystemWidth();
         if(this.SystemWidthFlag){
           if(registerType===1) {
-            window.open('https://cdnks.mtavip.com/mdist/#/webRegister?flug=1')
+            window.open('https://172.mtavip.com/mdist/#/webRegister?flug=1')
           }else {
-            window.open('https://cdnks.mtavip.com/mdist/#/webRegister?flug=2')
+            window.open('https://172.mtavip.com/mdist/#/webRegister?flug=2')
           }
         }else{
           if(registerType===1){
-            window.open('https://cdnks.mtavip.com/a/register?flug=1')
+            window.open('https://172.mtavip.com/a/register?flug=1')
           }else{
-            window.open('https://cdnks.mtavip.com/a/register?flug=2')
+            window.open('https://172.mtavip.com/a/register?flug=2')
           }
 
         }