|  | @@ -2,10 +2,6 @@ const _Http = getApp().globalData.http;
 | 
	
		
			
				|  |  |  let sa_brandid = null,
 | 
	
		
			
				|  |  |  	sys_enterpriseid = null;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -import {
 | 
	
		
			
				|  |  | -	getLabelList
 | 
	
		
			
				|  |  | -} from "../../utils/customItemType";
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  import {
 | 
	
		
			
				|  |  |  	fileList
 | 
	
		
			
				|  |  |  } from "../../utils/FormatTheAttachment";
 | 
	
	
		
			
				|  | @@ -15,7 +11,6 @@ Page({
 | 
	
		
			
				|  |  |  	data: {
 | 
	
		
			
				|  |  |  		itemCount: 0,
 | 
	
		
			
				|  |  |  		selectCount: 0,
 | 
	
		
			
				|  |  | -		labelList: getLabelList(),
 | 
	
		
			
				|  |  |  		hidePrice: wx.getStorageSync('hidePrice'),
 | 
	
		
			
				|  |  |  		badge: getApp().globalData.collectCount,
 | 
	
		
			
				|  |  |  		favoriteCount: getApp().globalData.favoriteCount,
 | 
	
	
		
			
				|  | @@ -27,6 +22,7 @@ Page({
 | 
	
		
			
				|  |  |  			material: "", //材质
 | 
	
		
			
				|  |  |  			cheek: "" //边框
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  | +		itmes: [],
 | 
	
		
			
				|  |  |  		detail: {
 | 
	
		
			
				|  |  |  			spec: ""
 | 
	
		
			
				|  |  |  		},
 | 
	
	
		
			
				|  | @@ -82,7 +78,7 @@ Page({
 | 
	
		
			
				|  |  |  			item.gradeprice = CNY(item.gradeprice);
 | 
	
		
			
				|  |  |  			item.marketprice = CNY(item.marketprice);
 | 
	
		
			
				|  |  |  			item.qty = item.orderaddqty;
 | 
	
		
			
				|  |  | -			let ros = {
 | 
	
		
			
				|  |  | +			let row = {
 | 
	
		
			
				|  |  |  				specRows: res.data.specRows.reverse(),
 | 
	
		
			
				|  |  |  				cheekRows: res.data.cheekRows,
 | 
	
		
			
				|  |  |  				materialRows: res.data.materialRows,
 | 
	
	
		
			
				|  | @@ -92,7 +88,7 @@ Page({
 | 
	
		
			
				|  |  |  			let obj = {},
 | 
	
		
			
				|  |  |  				auto = true,
 | 
	
		
			
				|  |  |  				UniqueLine = true;
 | 
	
		
			
				|  |  | -			['spec', 'cheek', 'material', 'color'].forEach(key => obj[key] = ros[key + 'Rows'].filter(v => v.flag))
 | 
	
		
			
				|  |  | +			res.data.customschemeItems.map(v => v.value).forEach(key => obj[key] = row[key + 'Rows'].filter(v => v.flag))
 | 
	
		
			
				|  |  |  			for (const key in obj) {
 | 
	
		
			
				|  |  |  				if (obj[key].length > 1) {
 | 
	
		
			
				|  |  |  					auto = false
 | 
	
	
		
			
				|  | @@ -104,15 +100,18 @@ Page({
 | 
	
		
			
				|  |  |  					if (obj[key].length) content[key] = obj[key][0].parm;
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  			this.setData({
 | 
	
		
			
				|  |  |  				content,
 | 
	
		
			
				|  |  |  				detail: item,
 | 
	
		
			
				|  |  | -				...ros,
 | 
	
		
			
				|  |  | +				row,
 | 
	
		
			
				|  |  | +				customschemeItems: res.data.customschemeItems,
 | 
	
		
			
				|  |  |  				loading: false,
 | 
	
		
			
				|  |  |  				itemCount: ['specRows', 'cheekRows', 'materialRows', 'colorRows'].filter(v => res.data[v].length).length,
 | 
	
		
			
				|  |  |  				selectCount: ['cheek', 'color', 'material', 'spec'].filter(v => content[v].length).length,
 | 
	
		
			
				|  |  |  				UniqueLine
 | 
	
		
			
				|  |  |  			});
 | 
	
		
			
				|  |  | +			console.log("itmes", this.data.itmes)
 | 
	
		
			
				|  |  |  			//是否定制
 | 
	
		
			
				|  |  |  			if (getCustom && item.iscustomsize == 1) this.selectComponent("#customMade").init(item);
 | 
	
		
			
				|  |  |  		})
 |