Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
uedxwg
9 years ago
Commit
e2ed111819842b30970d73ef9b7d143e678b3398
2 parents
558d99b0
cbefa499
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
60 additions
and
36 deletions
static/js/category/index.js
static/js/passport/back/new-password.js
static/js/passport/register/password.js
static/js/plugin/tip.js
static/sass/category/_brand.scss
static/sass/category/_index.scss
static/sass/home/_hot-brands.scss
static/sass/index.scss
static/sass/index/_search.scss
static/sass/product/_list.scss
template/m.yohobuy.com/actions/category/class/index.phtml
template/m.yohobuy.com/actions/passport/back/new-password.phtml
template/m.yohobuy.com/actions/passport/reg/password.phtml
template/m.yohobuy.com/partials/passport/header.phtml
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Back.php
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Reg.php
static/js/category/index.js
View file @
e2ed111
...
...
@@ -15,6 +15,18 @@ var $curContent = $contents.not('.hide');
var
navHammer
,
ccHammer
;
//初始化container高度
(
function
()
{
var
$header
=
$
(
'.yoho-header'
),
$search
=
$
(
'#search-input'
);
var
h
=
$
(
window
).
height
()
-
$header
.
outerHeight
()
-
$search
.
outerHeight
()
-
$nav
.
outerHeight
();
$categoryContainer
.
css
(
'min-height'
,
h
);
$contents
.
height
(
h
);
}());
$
(
'#search-input'
).
focus
(
function
()
{
$
(
this
).
blur
();
});
...
...
static/js/passport/back/new-password.js
View file @
e2ed111
...
...
@@ -16,7 +16,9 @@ var showErrTip = tip.show;
var
$phoneNum
=
$
(
'#phone-num'
);
api
.
bindEyesEvt
();
api
.
bindEyesEvt
({
status
:
'open'
});
$pwd
.
bind
(
'input'
,
function
()
{
if
(
trim
(
$pwd
.
val
())
===
''
)
{
...
...
static/js/passport/register/password.js
View file @
e2ed111
...
...
@@ -54,14 +54,7 @@ $btnSure.on('touchstart', function() {
location
.
href
=
data
.
data
;
},
1000
);
}
else
{
if
(
data
.
code
===
401
||
data
.
code
===
404
||
data
.
code
===
505
)
{
showErrTip
(
data
.
message
);
}
else
{
showErrTip
(
data
.
message
);
setTimeout
(
function
()
{
location
.
href
=
data
.
data
;
},
1000
);
}
showErrTip
(
data
.
message
);
}
}
});
...
...
static/js/plugin/tip.js
View file @
e2ed111
...
...
@@ -17,7 +17,7 @@ var $tip, tipItime;
$
(
'.yoho-page'
).
append
(
tipHtml
);
$tip
=
$
(
'#yoho-tip'
);
$tip
.
on
(
't
ap
'
,
function
()
{
$tip
.
on
(
't
ouchend
'
,
function
()
{
$tip
.
hide
();
//清除Timeout
...
...
static/sass/category/_brand.scss
View file @
e2ed111
...
...
@@ -140,7 +140,6 @@
i
{
display
:
inline-block
;
margin-top
:
-4rem
/
$pxConvertRem
;
margin-left
:
24rem
/
$pxConvertRem
;
width
:
108rem
/
$pxConvertRem
;
height
:
42rem
/
$pxConvertRem
;
text-align
:
center
;
...
...
static/sass/category/_index.scss
View file @
e2ed111
...
...
@@ -32,7 +32,7 @@
}
.category-nav
{
height
:
7
1
rem
/
$pxConvertRem
;
height
:
7
0
rem
/
$pxConvertRem
;
border-bottom
:
1px
solid
#e6e6e6
;
li
{
...
...
@@ -40,10 +40,9 @@
box-sizing
:
border-box
;
float
:
left
;
height
:
100%
;
line-height
:
71rem
/
$pxConvertRem
;
padding
:
20rem
/
$pxConvertRem
0
;
width
:
25%
;
text-align
:
center
;
border-right
:
1px
solid
#e6e6e6
;
color
:
#999
;
&
:last-child
{
...
...
@@ -54,17 +53,33 @@
color
:
#000
;
}
}
span
{
display
:
block
;
width
:
100%
;
height
:
30rem
/
$pxConvertRem
;
line-height
:
30rem
/
$pxConvertRem
;
font-size
:
30rem
/
$pxConvertRem
;
border-right
:
1px
solid
#e6e6e6
;
}
li
:last-child
span
{
border-right
:
0
;
}
}
.content.hide
{
display
:
none
;
.content
{
background
:
#f8f8f8
;
&
.hide
{
display
:
none
;
}
}
.primary-level
{
float
:
left
;
box-sizing
:
border-box
;
width
:
40%
;
background
:
#f8f8f8
;
>
li
{
height
:
69rem
/
$pxConvertRem
;
...
...
@@ -83,6 +98,8 @@
padding-left
:
20rem
/
$pxConvertRem
;
background
:
#fff
;
width
:
60%
;
height
:
100%
;
overflow
:
auto
;
}
.sub-level
{
...
...
@@ -107,10 +124,6 @@
height
:
100%
;
width
:
100%
;
color
:
#000
;
&
:visisted
{
color
:
#000
;
}
}
}
}
\ No newline at end of file
...
...
static/sass/home/_hot-brands.scss
View file @
e2ed111
.hot-brands
{
background
:
#f
ff
;
background
:
#f
0f0f0
;
border-bottom
:
1px
solid
#e0e0e0
;
a
{
...
...
@@ -8,6 +8,10 @@
height
:
100%
;
}
>
*
{
background
:
#fff
;
}
.brand
{
float
:
left
;
width
:
158rem
/
$pxConvertRem
;
...
...
static/sass/index.scss
View file @
e2ed111
...
...
@@ -45,6 +45,13 @@ a {
text-decoration
:
none
;
outline
:
none
;
color
:
#000
;
&
:link
,
&
:visited
,
&
:hover
,
&
:actived
{
color
:
#000
;
}
}
*
:focus
{
...
...
static/sass/index/_search.scss
View file @
e2ed111
...
...
@@ -66,10 +66,6 @@
font-size
:
28rem
/
$pxConvertRem
;
background
:
#f8f8f8
;
color
:
#000
;
&
:visited
{
color
:
#000
;
}
}
.clear-history
{
...
...
static/sass/product/_list.scss
View file @
e2ed111
...
...
@@ -50,10 +50,6 @@
font-size
:
17px
;
background
:
#fff
;
color
:
#000
;
&
:visisted
{
color
:
#000
;
}
}
.brand-thumb
{
...
...
template/m.yohobuy.com/actions/category/class/index.phtml
View file @
e2ed111
...
...
@@ -10,7 +10,7 @@
<div
class=
"category-nav clearfix"
>
{
{#
class
}
}
<li
class=
{
{#if
focus
}
}focus
{
{/if
}
}>
{
{name
}
}
<span>
{
{name
}
}</span>
</li>
{
{/
class
}
}
</div>
...
...
template/m.yohobuy.com/actions/passport/back/new-password.phtml
View file @
e2ed111
...
...
@@ -3,7 +3,7 @@
{
{>
passport/header
}
}
<div
class=
"content"
>
<div
class=
"input-container row has-eye"
>
<input
id=
"pwd"
class=
"input pwd"
type=
"
password
"
placeholder=
"请输入新密码"
autocomplete=
"off"
maxlength=
"20"
>
<input
id=
"pwd"
class=
"input pwd"
type=
"
text
"
placeholder=
"请输入新密码"
autocomplete=
"off"
maxlength=
"20"
>
</div>
<span
id=
"btn-ok"
class=
"btn btn-ok disable"
>完成</span>
</div>
...
...
template/m.yohobuy.com/actions/passport/reg/password.phtml
View file @
e2ed111
...
...
@@ -3,7 +3,7 @@
{
{>
passport/header
}
}
<div
class=
"content"
>
<div
class=
"input-container row has-eye"
>
<input
id=
"pwd"
class=
"input pwd"
type=
"
password
"
placeholder=
"请输入密码"
autocomplete=
"off"
maxlength=
"20"
>
<input
id=
"pwd"
class=
"input pwd"
type=
"
text
"
placeholder=
"请输入密码"
autocomplete=
"off"
maxlength=
"20"
>
</div>
<span
id=
"btn-sure"
class=
"btn btn-sure disable row"
>确定</span>
</div>
...
...
template/m.yohobuy.com/partials/passport/header.phtml
View file @
e2ed111
<div class="header">
{{#backUrl}}
<a class="go-back" href=
{{.}}
></a>
<a class="go-back" href=
"javascript:history.go(-1);"
></a>
{{/backUrl}}
{{#showHeaderImg}}
<div class="img-header"></div>
...
...
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Back.php
View file @
e2ed111
...
...
@@ -165,7 +165,7 @@ class BackController extends AbstractAction
*/
public
function
sendcodeAction
()
{
$result
=
array
(
'code'
=>
400
,
'message'
=>
'
手机号码格式不正确
,请重新输入'
,
'data'
=>
''
);
$result
=
array
(
'code'
=>
400
,
'message'
=>
'
密码只能使用数字、字母和半角标点符号
,请重新输入'
,
'data'
=>
''
);
do
{
/* 判断是不是AJAX请求 */
...
...
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Reg.php
View file @
e2ed111
...
...
@@ -149,7 +149,7 @@ class RegController extends AbstractAction
*/
public
function
verifycodeAction
()
{
$data
=
array
(
'code'
=>
400
,
'message'
=>
'验证码
不正确
'
,
'data'
=>
''
);
$data
=
array
(
'code'
=>
400
,
'message'
=>
'验证码
错误
'
,
'data'
=>
''
);
do
{
/* 判断是不是AJAX请求 */
...
...
@@ -175,6 +175,8 @@ class RegController extends AbstractAction
if
(
$data
[
'code'
]
==
200
)
{
$token
=
Helpers
::
makeToken
(
$mobile
);
$data
[
'data'
]
=
'/passport/reg/password?token='
.
$token
.
'&phoneNum='
.
$mobile
.
'&areaCode='
.
$area
;
}
else
if
(
$data
[
'code'
]
==
404
)
{
$data
[
'message'
]
=
'验证码错误'
;
//统一验证提示
}
}
while
(
false
);
...
...
Please
register
or
login
to post a comment