Ver Fonte

用户行为记录修改

zhengjinyi há 2 anos atrás
pai
commit
7cfc43876e

+ 6 - 2
src/main/resources/static/js/mixins/cmSysMixins.js

@@ -45,7 +45,7 @@ var cmSysVitaMixins = function () {
             // 校验是否为配置的路径
             checkedIsInclude(url) {
                 if (!url) return false
-                return includeList.some(item => url.indexOf(item.url) > -1)
+                return includeList.some(item => url === item.url)
             },
             handleCmSysNetInfo() {
                 //设置定时器
@@ -64,13 +64,17 @@ var cmSysVitaMixins = function () {
                 }
                 const pageUrls = window.location.pathname;
                 const pagePath = window.location.href;
+                console.log('===',pageUrls)
+                console.log('===',this.checkedIsInclude(pageUrls))
                 if(this.checkedIsInclude(pageUrls)){
                     const pageData = this.checkedIsIncludeType(pageUrls);
                     this.cmSysParams.pageType = pageData ? pageData.pageType : '';
                     this.cmSysParams.pageLabel = pageData ? pageData.pageLabel : '';
                 }
                 this.cmSysParams.pagePath = pagePath;
-                this.handleSetNetworks(this.cmSysParams);
+                setTimeout(()=>{
+                    this.handleSetNetworks(this.cmSysParams);
+                },1000)
             },
             handleSetNetworks(params){// 进入页面执行统计
                 console.log(`页面路径:${params.pagePath}`,`标签:${params.pageLabel}`)

+ 3 - 8
src/main/resources/static/js/product/list.js

@@ -89,7 +89,7 @@ var productList = new Vue({
             // 商品价格仅资质机构可见
             if(pros.priceFlag === 2  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2) return true;
             // 商品价格仅医美机构可见
-            if(pros.priceFlag === 3  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE == 1) return true;
+            if(pros.priceFlag === 3  && pros.svipProductFlag === 1 && GLOBAL_USER_IDENTITY === 2 &&  GLOBAL_CLUB_TYPE === 1) return true;
             // 其它
             return false;
         },
@@ -115,7 +115,7 @@ var productList = new Vue({
         },
         PromotionsFormat:function(promo){//促销活动类型数据处理
             if(promo!=null){
-                if(promo.type == 1 && promo.mode == 1){
+                if(promo.type === 1 && promo.mode === 1){
                     return true
                 }else{
                     return false
@@ -153,12 +153,7 @@ var productList = new Vue({
                     }else{
                         _self.listData = _self.listData.concat(resultData);
                     }
-                    console.log('listData',_self.listData)
-                    if( _self.listData.length>0){
-                        _self.isListEmpty = false;
-                    }else{
-                        _self.isListEmpty = true;
-                    }
+                    _self.isListEmpty = _self.listData.length <= 0;
                     _self.listLoading = false;
                     _self.requestFlag = true;
                 }else {