瀏覽代碼

首页增加爬虫埋点

tanxue 3 年之前
父節點
當前提交
6bc298de30
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 1
      README.md
  2. 2 0
      pages/index.vue

+ 1 - 1
README.md

@@ -8,7 +8,7 @@
 - package.json
 - package-lock.json
 - 共6个文件 需要npm run start
-## 从mtavip(master)网站打出的分支----2021-10-20  -tx
+## 从mtavip(master)网站打出的分支,没做响应式----2021-10-20  -tx
 ## 给后台包名:jiuchuangruikangdist ----2021-10-20  -tx
 ## 资料
 - 关于 [asyncData](https://segmentfault.com/q/1010000011729274)

+ 2 - 0
pages/index.vue

@@ -192,6 +192,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>
@@ -210,6 +211,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>