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
xuqi
9 years ago
Commit
1f1f3230892e2a6a27760e3884ded256eaea152a
2 parents
e7b794bc
d4cb1d77
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
static/sass/me/_home.scss
yohobuy/m.yohobuy.com/application/models/Index/User.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
static/sass/me/_home.scss
View file @
1f1f323
...
...
@@ -114,7 +114,7 @@
&
.no-login
{
padding
:
0
;
height
:
pxToRem
(
88px
);
.link-item
{
.link-item
p
{
font-size
:
pxToRem
(
32px
);
line-height
:
pxToRem
(
88px
);
}
...
...
yohobuy/m.yohobuy.com/application/models/Index/User.php
View file @
1f1f323
...
...
@@ -187,10 +187,14 @@ class UserModel
$datas
=
array
();
$product
=
array
();
foreach
(
$favProduct
[
'data'
][
'product_list'
]
as
$val
)
{
if
(
empty
(
$val
[
'product_skn'
]))
{
continue
;
}
$product
=
array
();
$product
[
'fav_id'
]
=
$val
[
'product_id'
];
$product
[
'link'
]
=
isset
(
$val
[
'goodsId'
])
?
Helpers
::
url
(
'/product/pro_'
.
$val
[
'product_id'
]
.
'_'
.
$val
[
'goodsId'
]
.
'/'
.
$val
[
'cnAlphabet'
]
.
'.html'
)
:
''
;
$product
[
'imgUrl'
]
=
Helpers
::
getImageUrl
(
$val
[
'image'
],
447
,
596
);
$product
[
'link'
]
=
isset
(
$val
[
'goodsId'
],
$val
[
'cnAlphabet'
])
?
Helpers
::
url
(
'/product/pro_'
.
$val
[
'product_id'
]
.
'_'
.
$val
[
'goodsId'
]
.
'/'
.
$val
[
'cnAlphabet'
]
.
'.html'
)
:
''
;
$product
[
'imgUrl'
]
=
!
empty
(
$val
[
'image'
])
?
Helpers
::
getImageUrl
(
$val
[
'image'
],
447
,
596
)
:
''
;
;
$product
[
'title'
]
=
$val
[
'product_name'
];
$product
[
'price'
]
=
!
empty
(
$val
[
'market_price'
])
?
'¥'
.
$val
[
'market_price'
]
.
'.00'
:
0
;
...
...
@@ -247,8 +251,12 @@ class UserModel
// 处理品牌产品
$product
=
array
();
foreach
(
$val
[
'new_product'
]
as
$one
)
{
if
(
empty
(
$one
[
'product_skn'
]))
{
continue
;
}
$product
=
array
();
$product
[
'link'
]
=
isset
(
$one
[
'goods'
][
0
])
?
Helpers
::
url
(
'/product/pro_'
.
$one
[
'product_id'
]
.
'_'
.
$one
[
'goods'
][
0
][
'id'
]
.
'/'
.
$one
[
'cnAlphabet'
]
.
'.html'
)
:
''
;
$product
[
'link'
]
=
isset
(
$one
[
'goods'
][
0
]
,
$one
[
'cnAlphabet'
]
)
?
Helpers
::
url
(
'/product/pro_'
.
$one
[
'product_id'
]
.
'_'
.
$one
[
'goods'
][
0
][
'id'
]
.
'/'
.
$one
[
'cnAlphabet'
]
.
'.html'
)
:
''
;
$product
[
'imgUrl'
]
=
(
isset
(
$one
[
'default_images'
])
&&
!
empty
(
$one
[
'default_images'
]))
?
Images
::
getImageUrl
(
$one
[
'default_images'
],
235
,
314
)
:
''
;
$product
[
'price'
]
=
!
empty
(
$one
[
'market_price'
])
?
'¥'
.
$one
[
'market_price'
]
:
0
;
$product
[
'discount'
]
=
(
$one
[
'market_price'
]
>
$one
[
'sales_price'
])
?
'¥'
.
$one
[
'sales_price'
]
:
false
;
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
View file @
1f1f323
...
...
@@ -177,7 +177,7 @@ class NewsaleController extends AbstractAction
$color
=
$this
->
get
(
'color'
,
null
);
$size
=
$this
->
get
(
'size'
,
null
);
$price
=
$this
->
get
(
'price'
,
null
);
$p_d
=
'0.1,0.3'
;
$p_d
=
$this
->
get
(
'discount'
,
null
)
;
$dayLimit
=
$this
->
get
(
'dayLimit'
,
null
);
$limit
=
$this
->
get
(
'limit'
,
60
);
$page
=
$this
->
get
(
'page'
,
1
);
...
...
Please
register
or
login
to post a comment