Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
9 years ago
Commit
56b363f337f31b4545301ae318d089ad30b711bf
1 parent
c51b909f
'brandId'
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
apps/channel/models/brand.js
apps/product/models/shop.js
apps/channel/models/brand.js
View file @
56b363f
...
...
@@ -69,7 +69,7 @@ const handleBrandList = origin => {
// 如果有数字,单独处理
if
(
hasNum
)
{
let
brands
=
{}
;
let
brands
=
[]
;
_
.
forEach
(
numTemp
,
(
subValue
)
=>
{
brands
.
push
({
...
...
apps/product/models/shop.js
View file @
56b363f
...
...
@@ -151,8 +151,17 @@ const getBrandShopGoodsData = params => {
return
shopApi
.
getBrandInfoByDomain
({
domain
:
params
.
domain
}).
then
(
result
=>
{
if
(
result
.
data
&&
result
.
data
.
shop_id
)
{
Object
.
assign
(
params
,
{
shopId
:
result
.
data
.
shop_id
});
if
(
result
.
data
)
{
if
(
result
.
data
.
shop_id
)
{
Object
.
assign
(
params
,
{
shopId
:
result
.
data
.
shop_id
});
}
if
(
result
.
data
.
id
)
{
Object
.
assign
(
params
,
{
brand
:
result
.
data
.
id
});
}
}
return
_getGoodsList
(
params
);
});
...
...
Please
register
or
login
to post a comment