Authored by zhangxiaoru

brand

... ... @@ -25,6 +25,7 @@ const _processListData = (list) => {
list = camelCase(list);
let listKey = [];
//console.log(list)
_.forEach(list.data.allList, function(value, index) {
... ... @@ -32,25 +33,26 @@ const _processListData = (list) => {
data.brandDomain = `${config.siteUrl}/product/shop/${data.brandDomain}`;
});
if (index === '0~9') {
index = '0-9';
} else {
if (index !== '0~9') {
listKey.push(index);
}
// listData.push({
// key: index,
// brands: value
// });
});
console.log(list)
listKey.sort();
listKey.push('0-9');
_.forEach(listKey, function(key) {
let keyName = key;
if (key === '0-9') {
key = '0~9';
}
listData.push({
key: key,
key: keyName,
brands: list.data.allList[key]
});
});
... ...
... ... @@ -142,7 +142,7 @@
<div class="info">
<p class="good-name">{{productName}}</p>
<p>颜色:{{colorName}}&nbsp;尺码:{{sizeName}}</p>
<p>×{{num}}</p>
<p>{{num}}</p>
</div>
</div>
<div class="common special-border">
... ...