Przeglądaj źródła

首页增加地址埋点

tanxue 3 lat temu
rodzic
commit
cc54c02597
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      pages/index.vue

+ 2 - 0
pages/index.vue

@@ -165,6 +165,7 @@
               <ul>
                 <li v-for="(item, index) in topCarousels" v-if="index >= 1">
                   <h4 @click="checkInfo(item)">
+                    <a style="display: none" :href="`${baseUrl}/news/${item.code}`"></a>
                     <span>{{ item.yyyy }}</span>{{ item.title }}
                   </h4>
                   <p><span>{{ item.mmdd}}</span>{{ item.intro }}</p>
@@ -183,6 +184,7 @@
         <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)">
+            <a style="display: none" :href="`${baseUrl}/news/${item.code}`"></a>
             <h4>{{ item.title }}<i></i></h4>
             <span>{{ item.yyyy }}-{{ item.mmdd }}</span>
             <p>{{ item.intro }}</p>