...
|
...
|
@@ -172,60 +172,79 @@ const getSizeInfo = (sizeInfo) => { |
|
|
|
|
|
// 模特试穿, 竖着输出排列显示
|
|
|
if (!_.isEmpty(sizeInfo.modelBos)) {
|
|
|
dest.reference = {};
|
|
|
dest.reference.title = '模特试穿';
|
|
|
dest.reference.enTitle = 'REFERENCE';
|
|
|
dest.reference.detail = {};
|
|
|
dest.reference.detail.list = [];
|
|
|
let reference = {
|
|
|
title: '模特试穿',
|
|
|
enTitle: 'REFERENCE'
|
|
|
};
|
|
|
|
|
|
dest.reference = reference;
|
|
|
|
|
|
// 控制是否显示备注
|
|
|
let showRemark = false;
|
|
|
let remarkList = [];
|
|
|
|
|
|
remarkList[0] = {};
|
|
|
remarkList[0].param = '备注';
|
|
|
|
|
|
for (let i = 0; i < 7; i++) {
|
|
|
dest.reference.detail.list[i] = {};
|
|
|
dest.reference.detail.list[i].params = [];
|
|
|
dest.reference.detail.list[i].params[0] = {};
|
|
|
}
|
|
|
|
|
|
dest.reference.detail.list[0].params[0] && (dest.reference.detail.list[0].params[0].param = '');
|
|
|
dest.reference.detail.list[1].params[0] && (dest.reference.detail.list[1].params[0].param = '模特');
|
|
|
dest.reference.detail.list[2].params[0] && (dest.reference.detail.list[2].params[0].param = '身高');
|
|
|
dest.reference.detail.list[3].params[0] && (dest.reference.detail.list[3].params[0].param = '体重');
|
|
|
dest.reference.detail.list[4].params[0] && (dest.reference.detail.list[4].params[0].param = '三围');
|
|
|
dest.reference.detail.list[5].params[0] && (dest.reference.detail.list[5].params[0].param = '吊牌尺码');
|
|
|
dest.reference.detail.list[6].params[0] && (dest.reference.detail.list[6].params[0].param = '试穿描述');
|
|
|
let remarkList = [{
|
|
|
param: '备注'
|
|
|
}];
|
|
|
|
|
|
let detail = {
|
|
|
list: [{
|
|
|
params: [{
|
|
|
param: ''
|
|
|
}]
|
|
|
}, {
|
|
|
params: [{
|
|
|
param: '模特'
|
|
|
}]
|
|
|
}, {
|
|
|
params: [{
|
|
|
param: '身高'
|
|
|
}]
|
|
|
}, {
|
|
|
params: [{
|
|
|
param: '体重'
|
|
|
}]
|
|
|
}, {
|
|
|
params: [{
|
|
|
param: '三围'
|
|
|
}]
|
|
|
}, {
|
|
|
params: [{
|
|
|
param: '吊牌尺码'
|
|
|
}]
|
|
|
}, {
|
|
|
params: [{
|
|
|
param: '试穿描述'
|
|
|
}]
|
|
|
}]
|
|
|
};
|
|
|
|
|
|
reference.detail = detail;
|
|
|
_.forEach(sizeInfo.modelBos, function(value) {
|
|
|
dest.reference.detail.list[0].params.push({
|
|
|
detail.list[0].params.push({
|
|
|
param: value.avatar.replace('http://', '//')
|
|
|
});
|
|
|
dest.reference.detail.list[1].params.push({
|
|
|
detail.list[1].params.push({
|
|
|
param: value.modelName
|
|
|
});
|
|
|
dest.reference.detail.list[2].params.push({
|
|
|
detail.list[2].params.push({
|
|
|
param: value.height
|
|
|
});
|
|
|
dest.reference.detail.list[3].params.push({
|
|
|
detail.list[3].params.push({
|
|
|
param: value.weight
|
|
|
});
|
|
|
dest.reference.detail.list[4].params.push({
|
|
|
detail.list[4].params.push({
|
|
|
param: value.vitalStatistics
|
|
|
});
|
|
|
dest.reference.detail.list[5].params.push({
|
|
|
param: value.fitModelBo.fit_size
|
|
|
detail.list[5].params.push({
|
|
|
param: value.fitModelBo && value.fitModelBo.fit_size
|
|
|
});
|
|
|
dest.reference.detail.list[6].params.push({
|
|
|
param: value.fitModelBo.feel
|
|
|
detail.list[6].params.push({
|
|
|
param: value.fitModelBo && value.fitModelBo.feel
|
|
|
});
|
|
|
|
|
|
if (value.fitModelBo.fit_remark) {
|
|
|
if (value.fitModelBo && value.fitModelBo.fit_remark) {
|
|
|
showRemark = true;
|
|
|
remarkList.push({
|
|
|
param: value.fitModelBo.fit_remark
|
|
|
param: value.fitModelBo && value.fitModelBo.fit_remark
|
|
|
});
|
|
|
} else {
|
|
|
remarkList.push({
|
...
|
...
|
@@ -236,8 +255,8 @@ const getSizeInfo = (sizeInfo) => { |
|
|
|
|
|
// 显示模特备注
|
|
|
if (showRemark) {
|
|
|
dest.reference.detail.list[7] = {};
|
|
|
dest.reference.detail.list[7].params = remarkList;
|
|
|
detail.list[7] = {};
|
|
|
detail.list[7].params = remarkList;
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
|