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
hf
9 years ago
Commit
0c9fab307a88e6248ab56b77ebc0d18f35785bfb
2 parents
d2cecb20
f40e863c
reset compile php file
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
5 deletions
yohobuy/m.yohobuy.com/application/controllers/Kids.php
yohobuy/m.yohobuy.com/application/controllers/Lifestyle.php
yohobuy/m.yohobuy.com/application/models/Category/Class.php
yohobuy/m.yohobuy.com/application/models/Index/Side.php
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Back.php
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Reg.php
yohobuy/m.yohobuy.com/application/controllers/Kids.php
View file @
0c9fab3
...
...
@@ -20,7 +20,7 @@ class KidsController extends AbstractAction
// 设置网站标题
$this
->
setTitle
(
'潮童首页'
);
// 显示侧边栏
$this
->
setNavSide
();
$this
->
setNavSide
(
'kids'
);
// 显示底部TAB
$this
->
setNavFooterTab
();
...
...
yohobuy/m.yohobuy.com/application/controllers/Lifestyle.php
View file @
0c9fab3
...
...
@@ -20,7 +20,7 @@ class LifestyleController extends AbstractAction
// 设置网站标题
$this
->
setTitle
(
'创意生活首页'
);
// 显示侧边栏
$this
->
setNavSide
();
$this
->
setNavSide
(
'lifestyle'
);
// 显示底部TAB
$this
->
setNavFooterTab
();
...
...
yohobuy/m.yohobuy.com/application/models/Category/Class.php
View file @
0c9fab3
...
...
@@ -52,6 +52,17 @@ class ClassModel
$item
=
array
();
$item
[
'name'
]
=
$val
[
'category_name'
];
$item
[
'id'
]
=
$val
[
'relation_parameter'
][
'sort'
];
// 首先添加一级分类
$item
[
'sub'
][]
=
array
(
'name'
=>
'全部'
.
$item
[
'name'
],
'id'
=>
$item
[
'id'
],
'url'
=>
Helpers
::
url
(
'/'
,
array
(
'sort'
=>
$item
[
'id'
],
'sort_name'
=>
$item
[
'name'
],
'list'
))
);
$subitem
=
array
();
foreach
(
$val
[
'sub'
]
as
$value
)
{
$subitem
=
array
();
$subitem
[
'name'
]
=
$value
[
'category_name'
];
...
...
yohobuy/m.yohobuy.com/application/models/Index/Side.php
View file @
0c9fab3
...
...
@@ -77,6 +77,16 @@ class SideModel
*/
private
static
function
genLeftNavGuang
(
$guangChoosed
=
'all'
)
{
// 判断逛的背景色
$color
=
false
;
if
(
$guangChoosed
===
'girls'
)
{
$color
=
'#FF88AE'
;
}
else
if
(
$guangChoosed
===
'kids'
)
{
$color
=
'#7ad9f9'
;
}
else
if
(
$guangChoosed
===
'lifestyle'
)
{
$color
=
'#4f4138'
;
}
return
array
(
'textCn'
=>
'逛'
,
'textEn'
=>
'TRENDFINDER'
,
...
...
@@ -88,7 +98,7 @@ class SideModel
'textEn'
=>
'TrendFinder'
,
'back'
=>
true
,
'isSelect'
=>
false
,
'bgColor'
=>
(
$guangChoosed
===
'girls'
)
?
'#FF88AE'
:
false
,
'bgColor'
=>
$color
,
),
1
=>
array
(
'textCn'
=>
'查看全部'
,
...
...
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Back.php
View file @
0c9fab3
...
...
@@ -209,7 +209,7 @@ class BackController extends AbstractAction
'phoneNum'
=>
$phoneNum
);
$this
->
_view
->
assign
(
'title'
,
'YOHO!有货
'
);
$this
->
setTitle
(
'找回密码-通过手机号
'
);
$this
->
_view
->
display
(
'mobile-code'
,
$data
);
}
...
...
@@ -246,6 +246,11 @@ class BackController extends AbstractAction
// 邮箱验证码
$code
=
$this
->
get
(
'code'
,
''
);
// 判断是否允许访问, 不允许则跳转到错误页面
if
((
!
$token
||
!
Helpers
::
verifyMobile
(
$phoneNum
))
&&
!
$code
)
{
$this
->
error
();
}
$data
=
array
(
'backUrl'
=>
'/signin.html'
,
...
...
@@ -258,7 +263,7 @@ class BackController extends AbstractAction
'code'
=>
$code
);
$this
->
_view
->
assign
(
'title'
,
'YOHO!有货
'
);
$this
->
setTitle
(
'找回密码-输入新密码
'
);
$this
->
_view
->
display
(
'new-password'
,
$data
);
}
...
...
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Reg.php
View file @
0c9fab3
...
...
@@ -249,6 +249,11 @@ class RegController extends AbstractAction
if
(
!
Helpers
::
verifyToken
(
$mobile
,
$token
))
{
break
;
}
/* 判断密码是否符合规则 */
if
(
!
Helpers
::
verifyPassword
(
$password
))
{
break
;
}
/* 验证注册的标识码是否有效 */
$data
=
RegData
::
regMobile
(
$area
,
$mobile
,
$password
);
...
...
Please
register
or
login
to post a comment