|
@@ -846,7 +846,6 @@ export default {
|
|
|
const dataStr = JSON.stringify(response.data)
|
|
|
this.product = JSON.parse(dataStr)
|
|
|
this.skuProduct = JSON.parse(dataStr)
|
|
|
- console.log('is same obj',this.product === this.skuProduct)
|
|
|
this.skusCount = this.product.skus.length
|
|
|
this.addParams.skuId = this.product.skuId
|
|
|
if (this.product.tinyTypeName) {
|
|
@@ -857,10 +856,11 @@ export default {
|
|
|
productLabel = this.product.bigTypeName
|
|
|
}
|
|
|
//设置统计数据标签
|
|
|
- uni.setStorageSync(
|
|
|
- 'productLabel',
|
|
|
- `${productLabel}-${this.product.brandName ? this.product.brandName : ''}`
|
|
|
- )
|
|
|
+ if(this.product.tags){
|
|
|
+ uni.setStorageSync('productLabel',this.product.tags)
|
|
|
+ }else{
|
|
|
+ uni.setStorageSync('productLabel',`${productLabel}-${this.product.brandName ? this.product.brandName : ''}`)
|
|
|
+ }
|
|
|
//校验是否为ross
|
|
|
this.checkedIsRossSet()
|
|
|
//判断是否可以跳转供应商主页
|