Explorar o código

行为轨迹统计

zhengjinyi %!s(int64=2) %!d(string=hai) anos
pai
achega
2b420e7688

+ 3 - 1
src/main/resources/static/js/activity/beautyTopic.js

@@ -5,7 +5,7 @@
 var activeApp = (function () {
     return new Vue({
         el: '#app',
-        mixins: [swiperMixin, showMoreMixin],
+        mixins: [swiperMixin, showMoreMixin,cmSysVitaMixins],
         data: {
             isMobile: window.innerWidth < 992,
             showCouponEntry: false,
@@ -52,6 +52,7 @@ var activeApp = (function () {
         }
         ,
         created: function created() {
+            this.cmSysParams.pageType = 13;
             this.initUserInfo();
             this.getFloorData();
         }
@@ -143,6 +144,7 @@ var activeApp = (function () {
                     if (res.code === 0) {
                         that.floorList = res.data.floorList;
                         that.pageInfo = res.data.page;
+                        that.cmSysParams.pageLabel = that.pageInfo.contentLabel;
                         that.isRequest = false;
                         that.makeVideoFetchMap();
                         that.activityEntryVisiable = that.initActivityEntry(res.data.page.redPacketBeginTime, res.data.page.redPacketEndTime);

+ 1 - 1
src/main/resources/static/js/product/detail.js

@@ -183,7 +183,7 @@ var productDetail = new Vue({
                     _self.recommendType = product.recommendType ? product.recommendType : 0;
                     _self.archiveId = product.archiveId; // 保存资料列表id
                     _self.productDetailChose = product.productDetailChose; // 同资质机构显示商品详情
-                    _self.cmSysParams.pageLabel = `${product.smallTypeName}${product.brandName?product.brandName:''}`;//设置统计数据标签
+                    _self.cmSysParams.pageLabel = `${product.smallTypeName}-${product.brandName?product.brandName:''}`;//设置统计数据标签
                     if(product.shopType == 2){
                         _self.isShowCaimeiShop = true
                     }

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

@@ -1,5 +1,6 @@
  var instrueMent = new Vue({
     el:'#instrueMent',
+     mixins: [cmSysVitaMixins],
     data:{
          listLoading:true,
          categorylist:[],
@@ -95,6 +96,7 @@
                  if(response.code == 0){
                      var data = response.data;
                      _self.floorList = data.floorList;
+                     _self.cmSysParams.pageLabel = data.contentLabel;
                      setTimeout(function(){
                          // 图片懒加载
                          $("img[data-original]").lazyload();
@@ -206,6 +208,9 @@
             });
         }
     },
+    created: function () {
+         this.cmSysParams.pageType = 13;
+    },
     mounted: function(){
         var _self = this;
          var userInfo = localStorage.getItem('userInfo');

+ 3 - 1
src/main/resources/static/js/product/temporary.js

@@ -1,5 +1,6 @@
  var instrueMent = new Vue({
     el:'#instrueMent',
+    mixins: [cmSysVitaMixins],
     data:{
          listLoading:true,
          categorylist:[],
@@ -21,7 +22,7 @@
         },
     },
      created: function() {
-
+         this.cmSysParams.pageType = 13;
      },
      methods:{
          PromotionsFormat:function(promo){//促销活动类型数据处理
@@ -60,6 +61,7 @@
                      _self.hotlist = res.data.hotSearchList;
                      _self.floorList = res.data.floorList;
                      _self.typeSort = res.data.page.typeSort;
+                     _self.cmSysParams.pageLabel = res.data.page.contentLabel;
                      _self.listLoading =false;
                      _self.floorList.forEach(function(page){
                          if(page.floorContent) {

+ 3 - 0
src/main/resources/static/js/single-page/topic.js

@@ -1,5 +1,6 @@
 var topicPage = new Vue({
     el: "#topicPage",
+    mixins: [cmSysVitaMixins],
     data: {
         pageId: 0,
         floorDatas: [],
@@ -17,6 +18,7 @@ var topicPage = new Vue({
                     var data = response.data;
                     _self.floorDatas = data.floorList;
                     _self.pageInfo = data.page;
+                    _self.cmSysParams.pageLabel = _self.pageInfo.contentLabel;
                     if( _self.pageInfo.backgroundImageWay == 1){
                         _self.bgClass = 'bg-repeat';
                     }else{
@@ -31,6 +33,7 @@ var topicPage = new Vue({
         },
     },
     created: function () {
+        this.cmSysParams.pageType = 13;
         var paramsArr = window.location.pathname.split(".")[0].split("-");
         this.pageId  =  paramsArr.length>=1 ? paramsArr[1] : '';
         // 获取列表数据

+ 1 - 0
src/main/resources/templates/activity/beautyTopic.html

@@ -849,6 +849,7 @@
 <script charset="utf-8" type="text/javascript" th:src="@{/js/activity/beautyTopic/utils.js(v=${version})}"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/activity/beautyTopic/layout.js(v=${version})}"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/activity/beautyTopic/mixin.js(v=${version})}"></script>
+<script charset="utf-8" type="text/javascript" th:src="@{/js/mixins/cmSysMixins.js(v=${version})}"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/activity/beautyTopic.js(v=${version})}"></script>
 <script>
     var isFormal = window.location.href.indexOf('www.caimei365.com') !== -1;

+ 1 - 1
src/main/resources/templates/product/instruelist.html

@@ -23,7 +23,7 @@
             <div class="search-text">
                 <div class="crumbs-link"> 筛选条件: </div>
                 <div  class="crumbs-nav-main">
-                    <div class="crumbs-nav-item" th:if="not${#strings.isEmpty(bigTypeName)}" th:text="${bigTypeName}"></div>
+                    <div class="crumbs-nav-item on" th:if="not${#strings.isEmpty(bigTypeName)}" th:text="${bigTypeName}"></div>
                     <div class="crumbs-nav-item on" th:if="not${#strings.isEmpty(smallTypeName)}" th:text="${smallTypeName}"></div>
                     <div class="crumbs-nav-item on" th:if="not${#strings.isEmpty(tinyTypeName)}" th:text="${tinyTypeName}"></div>
                     <div class="crumbs-nav-item on" th:if="not${#strings.isEmpty(tinyTypeName)}" th:text="${tinyTypeName}"></div>

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

@@ -314,5 +314,6 @@
 <template th:replace="components/footer"></template>
 <template th:replace="components/foot-link"></template>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/common/serviceapi/product.service.js(v=${version})}"></script>
+<script charset="utf-8" type="text/javascript" th:src="@{/js/mixins/cmSysMixins.js(v=${version})}"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/product/instruement.js(v=${version})}"></script>
 </body>

+ 1 - 0
src/main/resources/templates/product/temporary.html

@@ -828,5 +828,6 @@
 <template th:replace="components/foot-link"></template>
 <script charset="utf-8" type="text/javascript"
         th:src="@{/js/common/serviceapi/product.service.js(v=${version})}"></script>
+<script charset="utf-8" type="text/javascript" th:src="@{/js/mixins/cmSysMixins.js(v=${version})}"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/product/temporary.js(v=${version})}"></script>
 </body>

+ 1 - 0
src/main/resources/templates/single-page/topic.html

@@ -54,6 +54,7 @@
 <template th:replace="components/footer"></template>
 <template th:replace="components/foot-link"></template>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/common/serviceapi/pages.service.js(v=${version})}"></script>
+<script charset="utf-8" type="text/javascript" th:src="@{/js/mixins/cmSysMixins.js(v=${version})}"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/single-page/topic.js(v=${version})}"></script>
 </body>
 </html>