Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
6d94f5089bdc50872246941a456641e283215a28
2 parents
ccfe560f
c6b36cec
Merge branch 'develop/wap' into beta/wap
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
52 additions
and
8 deletions
static/js/me/fav.js
static/sass/guang/_detail.scss
static/sass/product/_recommend-for-you.scss
template/m.yohobuy.com/actions/guang/info/index.phtml
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
yohobuy/m.yohobuy.com/application/modules/Category/controllers/Brand.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Info.php
static/js/me/fav.js
View file @
6d94f50
...
...
@@ -79,6 +79,8 @@ function loadData($parent, url, page) {
page
:
page
},
success
:
function
(
data
)
{
var
$loadingMask
=
$parent
.
closest
(
'.fav-type'
).
find
(
'.fav-content-loading'
);
if
(
url
===
'favBrand'
)
{
$brandLoadMore
.
addClass
(
'hide'
);
}
else
{
...
...
@@ -86,9 +88,16 @@ function loadData($parent, url, page) {
}
if
(
data
===
' '
)
{
$
parent
.
closest
(
'.fav-type'
).
find
(
'.fav-content-loading'
)
.
addClass
(
'hide'
);
$
loadingMask
.
addClass
(
'hide'
);
$parent
.
closest
(
'.fav-type'
).
find
(
'.fav-null-box'
).
removeClass
(
'hide'
);
}
else
if
(
data
===
'end'
)
{
//处理data等于end时如果loadingMask存在且没有hide样式的情况
if
(
$loadingMask
&&
!
$loadingMask
.
hasClass
(
'hide'
))
{
$loadingMask
.
addClass
(
'hide'
);
$parent
.
closest
(
'.fav-type'
).
find
(
'.fav-null-box'
).
removeClass
(
'hide'
);
}
$parent
.
closest
(
'.fav-type'
).
find
(
'.fav-load-background'
)
.
removeClass
(
'fav-load-background'
).
html
(
'没有更多了'
);
...
...
@@ -97,7 +106,9 @@ function loadData($parent, url, page) {
lockId
=
true
;
}
else
if
(
data
.
length
>
10
)
{
$parent
.
append
(
data
);
$parent
.
closest
(
'.fav-type'
).
find
(
'.fav-content-loading'
).
remove
();
//如果有数据loadingMask会被remove掉
$loadingMask
.
remove
();
if
(
url
===
'favBrand'
)
{
initSwiper
(
data
);
//如果是收藏品牌需要初始化swiper
...
...
static/sass/guang/_detail.scss
View file @
6d94f50
...
...
@@ -332,6 +332,22 @@ $clothes: sprite-map("guang/clothes/*.png");
}
}
.link-block
{
display
:
block
;
height
:
80rem
/
$pxConvertRem
;
line-height
:
80rem
/
$pxConvertRem
;
padding
:
0
30rem
/
$pxConvertRem
;
font-size
:
16px
;
background
:
#fff
;
border-top
:
1px
solid
#e0e0e0
;
border-bottom
:
1px
solid
#e0e0e0
;
.iconfont
{
float
:
right
;
color
:
#ccc
;
}
}
.related-brand
{
margin-top
:
30rem
/
$pxConvertRem
;
...
...
static/sass/product/_recommend-for-you.scss
View file @
6d94f50
...
...
@@ -43,7 +43,7 @@
width
:
100%
;
white-space
:
nowrap
;
margin-top
:
pxToRem
(
20px
);
color
:
gray
;
color
:
#444
;
}
.price
{
...
...
template/m.yohobuy.com/actions/guang/info/index.phtml
View file @
6d94f50
...
...
@@ -63,6 +63,13 @@
</div>
{
{/if
}
}
{
{#if
moreLink
}
}
<a
class=
"post-block link-block"
href=
"{{moreLink}}"
>
更多商品
<span
class=
"iconfont"
>
604
;</span>
</a>
{
{/if
}
}
{
{#if
relatedReco
}
}
<div
class=
"post-block related-reco-block clearfix"
>
<h
2
>相关推荐</h
2
>
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
6d94f50
...
...
@@ -375,7 +375,7 @@ class IndexController extends AbstractAction
// 设置网站标题
$this
->
setTitle
(
'选择地址'
);
$this
->
setNavHeader
(
'选择地址'
,
Helpers
::
url
(
'/cart/index/orderEnsure'
));
$this
->
setNavHeader
(
'选择地址'
,
Helpers
::
url
(
'/cart/index/orderEnsure'
)
,
false
);
$uid
=
$this
->
getUid
(
true
);
$address
=
UserModel
::
getAddressData
(
$uid
);
...
...
@@ -397,7 +397,7 @@ class IndexController extends AbstractAction
// 设置网站标题
$this
->
setTitle
(
'选择优惠券'
);
$this
->
setNavHeader
(
'选择优惠券'
,
Helpers
::
url
(
'/cart/index/orderEnsure'
));
$this
->
setNavHeader
(
'选择优惠券'
,
Helpers
::
url
(
'/cart/index/orderEnsure'
)
,
false
);
$this
->
_view
->
display
(
'select-coupon'
,
array
(
'selectCouponPage'
=>
true
,
...
...
@@ -410,8 +410,6 @@ class IndexController extends AbstractAction
*/
public
function
orderSubAction
()
{
$result
=
array
();
if
(
$this
->
isAjax
())
{
$uid
=
$this
->
getUid
(
true
);
$addressId
=
$this
->
post
(
'addressId'
,
null
);
...
...
yohobuy/m.yohobuy.com/application/modules/Category/controllers/Brand.php
View file @
6d94f50
...
...
@@ -18,7 +18,7 @@ class BrandController extends AbstractAction
public
function
indexAction
()
{
$this
->
setTitle
(
'品牌一览'
);
$this
->
setNavHeader
(
'品牌一览'
,
'/boys?go=1&t='
.
time
());
$this
->
setNavHeader
(
'品牌一览'
,
'/boys?go=1&t='
.
time
()
,
false
);
/* 判断参数是否有效 */
$channel
=
null
;
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Info.php
View file @
6d94f50
...
...
@@ -146,6 +146,10 @@ class InfoController extends AbstractAction
}
}
}
// 更多商品链接
elseif
(
isset
(
$value
[
'link'
]))
{
$build
[
'moreLink'
]
=
$value
[
'link'
][
'data'
][
0
][
'url'
];
}
$data
[
'detail'
][
'content'
][]
=
$build
;
}
...
...
@@ -313,6 +317,10 @@ class InfoController extends AbstractAction
}
}
}
// 更多商品链接
elseif
(
isset
(
$value
[
'link'
]))
{
$build
[
'moreLink'
]
=
$value
[
'link'
][
'data'
][
0
][
'url'
];
}
$data
[
'detail'
][
'content'
][]
=
$build
;
}
...
...
@@ -445,6 +453,10 @@ class InfoController extends AbstractAction
}
}
}
// 更多商品链接
elseif
(
isset
(
$value
[
'link'
]))
{
$build
[
'moreLink'
]
=
$value
[
'link'
][
'data'
][
0
][
'url'
];
}
// 内容详情
if
(
array
()
!==
$build
)
{
...
...
Please
register
or
login
to post a comment