Browse Source

用户行为记录修改

zhengjinyi 2 years ago
parent
commit
413e7bb365

+ 1 - 0
src/main/resources/static/js/mixins/cmSysMixins.js

@@ -12,6 +12,7 @@ var cmSysVitaMixins = function () {
                     pageLabel:'',//页面标签
                     pageLabel:'',//页面标签
                     userId:0,//用户Id
                     userId:0,//用户Id
                     productId:0,//商品Id
                     productId:0,//商品Id
+                    shopId:0,//供应商Id
                     behaviorType:1 // 用户行为类型
                     behaviorType:1 // 用户行为类型
                 },
                 },
                 handleProsId:0,
                 handleProsId:0,

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

@@ -199,7 +199,12 @@ var productDetail = new Vue({
                     }else{
                     }else{
                         $pageLabel = product.bigTypeName
                         $pageLabel = product.bigTypeName
                     }
                     }
-                    _self.cmSysParams.pageLabel = `${$pageLabel}-${product.brandName?product.brandName:''}`;//设置统计数据标签
+                    // 设置统计商品详情标签
+                    if(product.tags){
+                        _self.cmSysParams.pageLabel = product.tags;
+                    }else{
+                        _self.cmSysParams.pageLabel = `${$pageLabel}-${product.brandName?product.brandName:''}`;
+                    }
                     if(product.shopType == 2){
                     if(product.shopType == 2){
                         _self.isShowCaimeiShop = true
                         _self.isShowCaimeiShop = true
                     }
                     }

+ 1 - 1
src/main/resources/static/js/supplier/index.js

@@ -215,7 +215,7 @@ var supplierHome = new Vue({
     created: function () {
     created: function () {
         // this.params.id = getUrlParam("id") ? getUrlParam("id") * 1 : 0;
         // this.params.id = getUrlParam("id") ? getUrlParam("id") * 1 : 0;
         var paramsArr = window.location.pathname.split(".")[0].split("-");
         var paramsArr = window.location.pathname.split(".")[0].split("-");
-        this.params.id = this.handleShopId =  paramsArr.length>=1 ? paramsArr[1]*1 : 0;
+        this.params.id = this.cmSysParams.shopId = this.handleShopId =  paramsArr.length>=1 ? paramsArr[1]*1 : 0;
         this.cmSysParams.pageType = 14;
         this.cmSysParams.pageType = 14;
         this.cmSysParams.pageLabel = `供应商主页`;//设置统计数据标签
         this.cmSysParams.pageLabel = `供应商主页`;//设置统计数据标签
         if(this.params.id !== 0) {
         if(this.params.id !== 0) {