Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangxiaoru
9 years ago
Commit
8f15b15166cc526028429de2f421d32ce48efa62
1 parent
b2ee738b
brand
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
apps/brand/models/brand.js
apps/me/views/partial/exchange-detail.hbs
apps/brand/models/brand.js
View file @
8f15b15
...
...
@@ -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
:
key
Name
,
brands
:
list
.
data
.
allList
[
key
]
});
});
...
...
apps/me/views/partial/exchange-detail.hbs
View file @
8f15b15
...
...
@@ -142,7 +142,7 @@
<div
class=
"info"
>
<p
class=
"good-name"
>
{{
productName
}}
</p>
<p>
颜色:
{{
colorName
}}
尺码:
{{
sizeName
}}
</p>
<p>
×
{{
num
}}
</p>
<p>
{{
num
}}
</p>
</div>
</div>
<div
class=
"common special-border"
>
...
...
Please
register
or
login
to post a comment