...
|
...
|
@@ -819,26 +819,83 @@ |
|
|
name: '',
|
|
|
price: '',
|
|
|
salePrice: '',
|
|
|
colors: [
|
|
|
/**colors: [
|
|
|
{
|
|
|
id: 1,
|
|
|
chosed: true,
|
|
|
name: '黄色',
|
|
|
colorNum:10,
|
|
|
shortUrl:'',
|
|
|
sizes: [
|
|
|
{
|
|
|
},
|
|
|
...
|
|
|
],**/
|
|
|
|
|
|
colors: [
|
|
|
{
|
|
|
color:[//说明:第一行,其colorNum的值为其下所有尺码数量之和,不需要sizeNumStr的值.
|
|
|
{
|
|
|
id: 1,
|
|
|
name: '黄色',
|
|
|
colorNum:10,
|
|
|
shortUrl:'',
|
|
|
},
|
|
|
{
|
|
|
id: 2,
|
|
|
name: '红色',
|
|
|
colorNum:20,
|
|
|
shortUrl:'',
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
color:[//说明:第二行至最后一行,其colorNum的值为其对应尺码的数量,不需要sizeNumStr的值.
|
|
|
{
|
|
|
id: 1,
|
|
|
name: '黄色',
|
|
|
colorNum:10,
|
|
|
shortUrl:'',
|
|
|
},
|
|
|
{
|
|
|
id: 2,
|
|
|
name: '红色',
|
|
|
colorNum:20,
|
|
|
shortUrl:'',
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
|
|
|
sizes: [
|
|
|
{
|
|
|
size:[//说明:第一行,显示所有的尺寸,即为下面的defaultSizes,不需要numStr的值
|
|
|
{
|
|
|
id: 1,
|
|
|
name: 'M',
|
|
|
sizeNum: 2
|
|
|
},
|
|
|
{
|
|
|
id: 2,
|
|
|
chosed: true,
|
|
|
name: 'X',
|
|
|
sizeNum: 2
|
|
|
},
|
|
|
...
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
...
|
|
|
],
|
|
|
defaultSizes: [
|
|
|
{
|
|
|
size:[//说明:第一行至最后一行,不需要numStr的值
|
|
|
{
|
|
|
id: 3,
|
|
|
name: 'M',
|
|
|
sizeNum: 2
|
|
|
},
|
|
|
{
|
|
|
id: 4,
|
|
|
name: 'X',
|
|
|
sizeNum: 2
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
/**defaultSizes: [
|
|
|
{
|
|
|
numZero: true,
|
|
|
name: 'X',
|
...
|
...
|
@@ -847,7 +904,7 @@ |
|
|
...
|
|
|
]
|
|
|
|
|
|
totalNum: 20
|
|
|
totalNum: 20**/
|
|
|
}
|
|
|
|
|
|
### 购物车商品
|
...
|
...
|
|