Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
Lynnic
9 years ago
Commit
df5a5db4b8133186833d16860eb1200320d82ba1
2 parents
c33ac52b
93b35e61
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
9 deletions
static/js/me/entry.js
static/js/product/recommend-for-you.js
static/sass/product/_recommend-for-you.scss
template/m.yohobuy.com/actions/index/home/index.phtml
template/m.yohobuy.com/partials/product/recommend-content.phtml
static/js/me/entry.js
View file @
df5a5db
...
...
@@ -9,4 +9,5 @@ require('./order-detail');
require
(
'./fav'
);
require
(
'./index'
);
require
(
'./coupons'
);
require
(
'./online-service'
);
\ No newline at end of file
require
(
'./online-service'
);
require
(
'./address'
);
\ No newline at end of file
...
...
static/js/product/recommend-for-you.js
View file @
df5a5db
...
...
@@ -17,7 +17,7 @@ $.get('/home/preference').then(function(html) {
recommendSwiper
=
new
Swiper
(
'#swiper-recommend'
,
{
slidesPerView
:
'auto'
,
grabCursor
:
true
,
slideElement
:
'
li
'
,
slideElement
:
'
a
'
,
lazyLoading
:
true
,
watchSlidesVisibility
:
true
});
...
...
static/sass/product/_recommend-for-you.scss
View file @
df5a5db
...
...
@@ -58,7 +58,7 @@
.old-price
{
position
:
absolute
;
top
:
0
;
right
:
pxToRem
(
-
6
px
);
right
:
pxToRem
(
-
4
px
);
color
:
#b0b0b0
;
text-decoration
:
line-through
;
}
...
...
template/m.yohobuy.com/actions/index/home/index.phtml
View file @
df5a5db
...
...
@@ -101,8 +101,6 @@
</a>
</div>
{
{#isLogin
}
}
{
{>
product/recommend-for-you
}
}
{
{/isLogin
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/product/recommend-content.phtml
View file @
df5a5db
<div class="title">为您优选新品</div>
<div id="swiper-recommend" class="swiper-container">
<
ul
class="swiper-wrapper swiper-wrapper-recommend">
<
div
class="swiper-wrapper swiper-wrapper-recommend">
{{#recommendList}}
<
li class="swiper-slide
">
<
a class="swiper-slide" href="{{url}}
">
<img class="swiper-lazy img-box" data-src="{{thumb}}">
<div class="price">
<span class="sale-price {{^price}}no-price{{/price}}">¥{{salePrice}}</span>
{{#price}}<span class="old-price">¥{{.}}</span>{{/price}}
</div>
<div class="swiper-lazy-preloader"></div>
</
li
>
</
a
>
{{/recommendList}}
</
ul
>
</
div
>
</div>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment