Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hongweigao
8 years ago
Commit
5329d2490f99f6deba74662c642e64c23133ef44
1 parent
960da457
修改样式
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
22 deletions
apps/product/models/newArrive-service.js
apps/product/views/partial/list/new-arrive-list.hbs
public/scss/product/_new-arrive.css
apps/product/models/newArrive-service.js
View file @
5329d24
...
...
@@ -215,7 +215,6 @@ const index = (req) => {
// 新品牌入驻
if
(
result
[
2
].
code
===
200
&&
result
[
2
].
data
)
{
let
hotBrandsData
=
_
.
get
(
result
,
'[2].data.hot_brand_list'
,
[]),
browseBrandsData
=
_
.
get
(
result
,
'[2].data.browse_brand_list'
,
[]),
recList
=
[];
_
.
forEach
(
hotBrandsData
,
hotBrand
=>
{
...
...
@@ -228,17 +227,6 @@ const index = (req) => {
});
});
_
.
forEach
(
browseBrandsData
,
browseBrand
=>
{
recList
.
push
({
url
:
helpers
.
urlFormat
(
''
,
{
shopId
:
browseBrand
.
shops_id
},
browseBrand
.
shop_domain
),
src
:
browseBrand
.
shop_logo
,
num
:
browseBrand
.
new_product_num
,
shopId
:
browseBrand
.
shops_id
,
brandId
:
browseBrand
.
brand_id
});
});
// 为您推荐
Object
.
assign
(
respData
.
recommond
.
dataList
,
recList
);
...
...
apps/product/views/partial/list/new-arrive-list.hbs
View file @
5329d24
...
...
@@ -29,7 +29,7 @@
{{!店铺}}
{{#if
shopType
}}
<div
class=
"good-info imgopacity"
recommend-type=
"
{{
recType
}}
"
data-shopId=
"
{{
shopId
}}
"
>
<
div
class=
"brand-box
"
>
<
a
class=
"brand-box"
href=
"
{{
url
}}
"
target=
"_blank
"
>
<div
class=
"logo-wrap"
>
<img
class=
"lazy"
data-original=
"
{{
image2
src
w
=
185
h
=
86
}}
"
style=
"display: block; opacity: 1;"
>
</div>
...
...
@@ -37,10 +37,10 @@
<p
class=
"shop-name"
>
{{
shopName
}}
</p>
<p
class=
"num-info"
>
上新
<span>
{{
newNum
}}
</span>
件
<span>
{{
collNum
}}
</span>
人收藏
</p>
<span
class=
"btn-tag tag-home"
>
<
a
href=
"
{{
url
}}
"
target=
"_blank"
><i
class=
"iconfont"
>

</i>
<em>
进入店铺
</em></a
>
<
i
class=
"iconfont"
>

</i>
<em>
进入店铺
</em
>
</span>
</div>
</
div
>
</
a
>
</div>
{{/if}}
{{!SK商品}}
...
...
public/scss/product/_new-arrive.css
View file @
5329d24
...
...
@@ -55,6 +55,7 @@
.new-num
{
background
:
#027cf9
;
opacity
:
.6
;
text-align
:
center
;
line-height
:
30px
;
font-size
:
14px
;
...
...
@@ -199,7 +200,7 @@
.list-box
{
border
:
1px
solid
#e0e0e0
;
border-top
:
0
;
height
:
1
49
px
;
height
:
1
51
px
;
padding-top
:
18px
;
padding-bottom
:
18px
;
padding-left
:
5px
;
...
...
@@ -236,6 +237,7 @@
display
:
inline-block
;
width
:
100%
;
background
:
#f5f5f5
;
cursor
:
pointer
;
}
.brand-info
{
...
...
@@ -287,7 +289,7 @@
}
.good-detail-img
,
.guang-box
,
.brand-box
{
height
:
29
6
px
;
height
:
29
8
px
;
overflow
:
hidden
;
}
...
...
@@ -295,16 +297,11 @@
height
:
65px
;
>
a
{
margin-top
:
15px
;
padding
:
0
5px
;
text-align
:
center
;
}
.price
{
text-align
:
center
;
font-size
:
14px
;
font-weight
:
bold
;
margin-top
:
3px
;
}
}
...
...
Please
register
or
login
to post a comment