|
@@ -2007,7 +2007,15 @@ export default {
|
|
// this.goods.keywords = null;
|
|
// this.goods.keywords = null;
|
|
// }
|
|
// }
|
|
// this.specifications = response.data.data.specifications;
|
|
// this.specifications = response.data.data.specifications;
|
|
- this.products = response.data.data.products;
|
|
|
|
|
|
+ let products = response.data.data.products;
|
|
|
|
+ let list=[];
|
|
|
|
+ products.forEach(item=>{
|
|
|
|
+ let pItem=item;
|
|
|
|
+ pItem.timeRange=(item.timeRange==null?[]:item.timeRange.split(','));
|
|
|
|
+ list.push(pItem);
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+ this.products=list;
|
|
// if (this.products.length > 0) this.productForm = this.products[0];
|
|
// if (this.products.length > 0) this.productForm = this.products[0];
|
|
|
|
|
|
this.attributes = response.data.data.attributes;
|
|
this.attributes = response.data.data.attributes;
|