|
@@ -176,6 +176,7 @@ var productDetail = new Vue({
|
|
|
ProductApi.GetProductDdtails({userId: GLOBAL_USER_ID, productId: _self.productId,typeId:_self.typeId}, function (response) {
|
|
|
if (response.code == 0) {
|
|
|
var product = response.data;
|
|
|
+ var $pageLabel = '';
|
|
|
_self.product = response.data;
|
|
|
_self.pcActType = product.pcActType;
|
|
|
_self.beautyActFlag = product.beautyActFlag;
|
|
@@ -183,7 +184,14 @@ 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.smallTypeName : ''}-${product.brandName?product.brandName:''}`;//设置统计数据标签
|
|
|
+ if(product.tinyTypeName){
|
|
|
+ $pageLabel = product.tinyTypeName
|
|
|
+ }else if(!product.tinyTypeName && product.smallTypeName){
|
|
|
+ $pageLabel = product.smallTypeName
|
|
|
+ }else{
|
|
|
+ $pageLabel = product.bigTypeName
|
|
|
+ }
|
|
|
+ _self.cmSysParams.pageLabel = `${$pageLabel}-${product.brandName?product.brandName:''}`;//设置统计数据标签
|
|
|
if(product.shopType == 2){
|
|
|
_self.isShowCaimeiShop = true
|
|
|
}
|