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
lore-w
9 years ago
Commit
f1a9a9c00985162901b1e3f5a90d7cf3b102b956
2 parents
34f2dc89
84e14e8f
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
28 additions
and
25 deletions
library/Action/AbstractAction.php
library/Plugin/DataProcess/FloorProcess.php
static/js/me/address-act.js
static/js/me/order.js
static/js/product/detail/like.js
static/sass/me/_address.scss
static/sass/product/_detail.scss
static/sass/product/_product-description.scss
template/m.yohobuy.com/actions/product/detail/index.phtml
template/m.yohobuy.com/partials/home/goods_category.phtml
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
yohobuy/m.yohobuy.com/application/modules/Category/controllers/Brand.php
library/Action/AbstractAction.php
View file @
f1a9a9c
...
...
@@ -369,7 +369,7 @@ class AbstractAction extends Controller_Abstract
* @param string $homeUrl 返回首页的链接
* @return void
*/
protected
function
setNavHeader
(
$title
=
''
,
$backUrl
=
true
,
$homeUrl
=
'/'
)
protected
function
setNavHeader
(
$title
=
''
,
$backUrl
=
true
,
$homeUrl
=
'/'
,
$navBtn
=
false
)
{
$header
=
array
();
...
...
@@ -387,6 +387,9 @@ class AbstractAction extends Controller_Abstract
if
(
!
empty
(
$homeUrl
))
{
$header
[
'navHome'
]
=
$homeUrl
.
'?go=1&t='
.
time
();
}
if
(
$navBtn
)
{
$header
[
'navBtn'
]
=
true
;
}
$controller
=
$this
->
getRequest
()
->
getControllerName
();
if
(
$controller
!==
'Home'
)
{
...
...
library/Plugin/DataProcess/FloorProcess.php
View file @
f1a9a9c
...
...
@@ -301,7 +301,7 @@ class FloorProcess
// 区别多张图与一张图
if
(
count
(
$data
[
'big_image'
])
>
1
)
{
$result
[
'big_image'
][
'list'
]
=
$data
[
'big_image'
];
$result
[
'big_image'
][
'
big_
list'
]
=
$data
[
'big_image'
];
unset
(
$data
[
'big_image'
]);
}
...
...
static/js/me/address-act.js
View file @
f1a9a9c
...
...
@@ -131,6 +131,7 @@ $addressListPage.find('.address').each(function(i, elem) {
$this
.
siblings
().
hide
();
$this
.
children
(
'ul'
).
show
().
children
(
'li'
).
show
();
$
(
this
).
removeClass
(
'highlight'
);
e
.
srcEvent
.
preventDefault
();
e
.
srcEvent
.
stopPropagation
();
});
...
...
static/js/me/order.js
View file @
f1a9a9c
...
...
@@ -129,7 +129,7 @@ orderHammer.on('tap', function(e) {
if
(
data
.
code
===
200
)
{
//删除订单页面刷新
location
.
href
=
location
.
href
;
history
.
go
(
0
)
;
}
}
});
...
...
@@ -154,7 +154,7 @@ orderHammer.on('tap', function(e) {
if
(
data
.
code
===
200
)
{
//取消订单页面刷新
location
.
href
=
location
.
href
;
history
.
go
(
0
)
;
}
}
});
...
...
static/js/product/detail/like.js
View file @
f1a9a9c
...
...
@@ -37,6 +37,12 @@ likeHammer.on('tap', function(e) {
success
:
function
(
data
)
{
if
(
data
.
code
===
200
)
{
$this
.
toggleClass
(
'liked'
);
if
(
'cancel'
===
opt
)
{
tip
.
show
(
'取消收藏成功'
);
}
else
if
(
'ok'
===
opt
)
{
tip
.
show
(
'收藏成功'
);
}
}
else
if
(
data
.
code
===
400
)
{
location
.
href
=
data
.
data
;
//未登录跳转登录页
}
else
{
...
...
static/sass/me/_address.scss
View file @
f1a9a9c
...
...
@@ -23,7 +23,7 @@
display
:
inline-block
;
max-width
:
pxToRem
(
380px
);
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
...
...
@@ -40,7 +40,7 @@
font-size
:
pxToRem
(
40px
);
line-height
:
pxToRem
(
60px
);
text-align
:
right
;
.edit
,
.del
{
display
:
inline-block
;
...
...
@@ -48,6 +48,10 @@
width
:
pxToRem
(
60px
);
height
:
pxToRem
(
60px
);
color
:
#999
;
&
:hover
{
color
:
#666
;
}
}
.edit
{
...
...
@@ -212,7 +216,7 @@
float
:
right
;
color
:
#d0d0d0
;
}
&
.highlight
{
background
:
#eee
;
}
...
...
static/sass/product/_detail.scss
View file @
f1a9a9c
...
...
@@ -45,9 +45,6 @@ $basicBtnC:#eb0313;
font-size
:
pxToRem
(
24px
);
background-color
:
$tableCellC
;
float
:
left
;
&
:last-child
{
border-bottom
:
none
;
}
&
:nth-child
(
even
)
{
border-right
:
none
;
}
...
...
static/sass/product/_product-description.scss
View file @
f1a9a9c
...
...
@@ -66,12 +66,6 @@
}
}
}
// .material-type {
// width: pxToRem(581px);
// height: pxToRem(99px);
// border-top: 1px solid $borderC;
// padding: pxToRem(17px) 0;
// }
}
.wash-tips
{
padding-top
:pxToRem
(
18px
)
;
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
f1a9a9c
...
...
@@ -113,8 +113,8 @@
</div>
{
{/
enterStore
}
}
<div
id=
"productDesc"
></div>
<!--
{
{>
product/product-description
}
}
-->
<!--
<div
id=
"productDesc"
></div>
-->
{
{>
product/product-description
}
}
{
{>
product/recommend-for-you
}
}
{
{#cartInfo
}
}
...
...
@@ -139,5 +139,4 @@
{
{/if
}
}
</div>
{
{>
layout/footer
}
}
<div
class=
"bottom-blank"
></div>
\ No newline at end of file
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/home/goods_category.phtml
View file @
f1a9a9c
{
{>
home/floor_header_more
}
}
<div
class=
"goods-category"
>
{
{#
big_image
}
}
{
{#if
list
}
}
{
{#if
big_
list
}
}
<div
class=
"category-swiper"
>
<ul
class=
"swiper-wrapper"
>
{
{#
list
}
}
{
{#
big_
list
}
}
<li
class=
"swiper-slide"
>
<a
href=
"{{url}}"
>
<img
class=
"lazy"
data-original=
"{{img}}"
alt=
"{{title}}"
>
</a>
</li>
{
{/
list
}
}
{
{/
big_
list
}
}
</ul>
<div
class=
"swiper-pagination"
>
<div
class=
"pagination-inner clearfix"
>
...
...
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
View file @
f1a9a9c
...
...
@@ -52,7 +52,7 @@ class BrandModel
$brand
=
BrandData
::
package
(
self
::
CODE_TOPPOS_LIFESTYLE
,
4
);
break
;
}
var_dump
(
$brand
);
exit
;
// 模板中的使用JS标识
$result
[
'brandPage'
]
=
true
;
// 是否显示app下载浮层标识
...
...
yohobuy/m.yohobuy.com/application/modules/Category/controllers/Brand.php
View file @
f1a9a9c
...
...
@@ -41,7 +41,6 @@ class BrandController extends AbstractAction
}
// 渲染模板
print_r
(
Category\BrandModel
::
getBrandByChannel
(
$channel
));
$this
->
_view
->
display
(
'index'
,
Category\BrandModel
::
getBrandByChannel
(
$channel
));
}
...
...
Please
register
or
login
to post a comment