Pārlūkot izejas kodu

行为轨迹统计

zhengjinyi 2 gadi atpakaļ
vecāks
revīzija
229a60aad4

+ 2 - 0
src/main/resources/static/js/product/instruement.js

@@ -224,6 +224,8 @@
         if (GLOBAL_USER_ID) {
             this.GetHomeData();
         }else {
+            //获取页面标签名称
+            this.cmSysParams.pageLabel = $('#contentLabel').val();
             // 设置页面查看更多
             this.setReadeMore();
             // 推荐专区商品轮播

+ 3 - 0
src/main/resources/templates/product/instrument.html

@@ -13,6 +13,9 @@
 <template th:replace="components/header"></template>
 <div id="container">
     <div id="instrueMent" >
+        <th:block th:if="${typeFloorJson.get('contentLabel')}!=null" th:object="${typeFloorJson}">
+            <input type="hidden" th:value="${typeFloorJson.get('contentLabel')}" id="contentLabel">
+        </th:block>
         <div class="instrue-right" th:if="${typeFloorJson.get('hotSearchList')}!=null and ${typeFloorJson.get('hotSearchList').size}>0">
             <div class="wrap_tittle"> 大家都在搜<span class="line"></span></div>
             <div v-if="isPC" class="hot-search">