Parcourir la source

修复商品详情统计类型变成美业资料

zhengjinyi il y a 2 ans
Parent
commit
838dac4700

+ 2 - 0
src/main/resources/static/js/document/beauty-archive-detail.js

@@ -12,6 +12,8 @@ var beautyArchiveDetail = new Vue({
         // 获取路由hash标识,设置默认展开tab
         this.archiveId = CAIMEI.getUrlParam('id');
         this.getProdcutArchiveDetails();
+        this.cmSysParams.pageType = 20;
+        this.cmSysParams.pageLabel =  this.relatedLabels;
     },
 });
 

+ 3 - 3
src/main/resources/static/js/document/beautyArchiveDetailMixin.js

@@ -18,7 +18,8 @@ var beautyArchiveDetailMixin = {
         fileArchiveList: [], // 文件资料列表
         defaultImage: 'https://static.caimei365.com/app/img/icon2/PC-default.png',  // 默认图片
         videoCover: 'https://static.caimei365.com/app/img/icon2/video-cover.png', //默认视频封面
-        archiveProductInfo: {}
+        archiveProductInfo: {},
+        relatedLabels:''
     },
     filters: {
         // 时间格式化
@@ -237,8 +238,7 @@ var beautyArchiveDetailMixin = {
                 _self.archiveProductInfo.productType = res.data.productType;
                 _self.archiveProductInfo.shopName = res.data.shopName;
                 _self.listLoading = false;
-                _self.cmSysParams.pageLabel =  res.data.relatedLabels;
-                _self.cmSysParams.pageType = 20;
+                _self.relatedLabels =  res.data.relatedLabels;
                 // 只有当前用户权限为0时初始化图片预览
                 if (_self.permission === 0) {
                     setTimeout(function () {