Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
Plain Diff
Browse Files
Authored by
毕凯
2017-09-19 17:26:14 +0800
Commit
9c8c7af520425132a24ff095327525600bc3bc94
2 parents
9b0242b7
08900db4
Merge branch 'feature/guangDetail' into 'release/6.1'
样式调整,过滤空数据 See merge request
!907
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
15 deletions
apps/guang/views/partial/detail/related-reco.hbs
public/scss/guang/_detail.css
utils/guang-process.js
apps/guang/views/partial/detail/related-reco.hbs
View file @
9c8c7af
...
...
@@ -19,7 +19,7 @@
</span>
</p>
{{else}}
<a
class=
"go-detail"
href=
"
{{
url
}}
"
>
查看详情
<span
class=
"iconfont"
>

</span></a>
<a
class=
"go-detail"
href=
"
{{
url
}}
"
>
查看详情
<span
class=
"iconfont
detail-arr
"
>

</span></a>
{{/
unlessor
}}
</div>
</div>
\ No newline at end of file
...
...
public/scss/guang/_detail.css
View file @
9c8c7af
...
...
@@ -377,6 +377,10 @@ $focus-size: 42px;
right
:
30px
;
}
.detail-arr
{
vertical-align
:
text-top
;
}
.iconfont
{
font-size
:
12px
;
}
...
...
@@ -811,7 +815,7 @@ $focus-size: 42px;
position
:
relative
;
width
:
275px
;
margin-left
:
0
;
height
:
1
4
0px
;
height
:
1
3
0px
;
padding
:
0
15px
;
.price
{
...
...
@@ -819,19 +823,9 @@ $focus-size: 42px;
}
.go-detail
{
display
:
block
;
background-color
:
#444
;
color
:
#fff
;
border-radius
:
20px
;
height
:
40px
;
line-height
:
40px
;
text-align
:
center
;
float
:
right
;
width
:
130px
;
font-size
:
20px
;
position
:
absolute
;
right
:
10px
;
bottom
:
10px
;
right
:
15px
;
bottom
:
0
;
line-height
:
50px
;
}
}
...
...
utils/guang-process.js
View file @
9c8c7af
...
...
@@ -494,6 +494,10 @@ const pushGoodsInfo = (finalDetail, goodsList, isApp) => {
}
});
finalDetail
[
key
].
relatedReco
.
goods
=
_
.
remove
(
finalDetail
[
key
].
relatedReco
.
goods
,
(
obj
)
=>
{
return
obj
;
});
let
moreNum
=
_
.
get
(
finalDetail
[
key
],
'relatedReco.goods.length'
,
0
);
finalDetail
[
key
].
relatedReco
.
moreNum
=
moreNum
-
4
>
0
?
moreNum
-
4
:
0
;
// 改成第一屏幕最多展示4个
...
...
Please
register
or
login
to post a comment