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
9bcf08357901b6f1127964a0df92f8af2074d79e
2 parents
ec3dfec5
37a31ca2
Merge branch 'develop/wap' of
http://git.dev.yoho.cn/web/yohobuy
into develop/wap
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
63 additions
and
82 deletions
static/js/common.js
static/js/home/home.js
static/js/me/pay.js
static/js/passport/back/email-success.js
static/js/passport/bind/password.js
static/sass/home/_side-nav.scss
static/sass/layout/_header.scss
template/m.yohobuy.com/partials/layout/page_header.phtml
yohobuy/m.yohobuy.com/application/models/Index/User.php
yohobuy/m.yohobuy.com/application/modules/Category/controllers/Brand.php
static/js/common.js
View file @
9bcf083
...
...
@@ -220,7 +220,7 @@ $yohoPage.on('touchstart', '.tap-hightlight', function() {
});
$
(
'.nav-home'
).
on
(
'touchstart'
,
function
()
{
$
(
'.homebuttom'
).
toggleClass
(
'
non
e'
);
$
(
'.homebuttom'
).
toggleClass
(
'
hid
e'
);
});
(
function
()
{
...
...
static/js/home/home.js
View file @
9bcf083
...
...
@@ -28,9 +28,15 @@ $('.nav-btn').on('touchstart', function(event) {
$mobileWrap
.
addClass
(
'menu-open'
);
$overlay
.
show
().
css
(
'opacity'
,
0.3
);
$sideNav
.
addClass
(
'on'
);
openSideNav
=
true
;
event
.
preventDefault
();
event
.
stopPropagation
();
openSideNav
=
true
;
//设置boy高宽,页面不能上下滑动
$
(
'body'
).
css
({
height
:
$
(
window
).
height
(),
overflow
:
'hidden'
});
return
false
;
});
...
...
@@ -41,6 +47,10 @@ function hideSideBar() {
$
(
'.overlay'
).
hide
();
$
(
'.sub-nav'
).
removeClass
(
'show'
);
$sideNav
.
removeClass
(
'on'
);
$
(
'body'
).
css
({
height
:
'auto'
,
overflow
:
'auto'
});
}
}
...
...
@@ -62,10 +72,6 @@ $sideNav.on('touchstart', 'li', function(e) {
}
});
$sideNav
.
on
(
'touchmove'
,
function
(
e
)
{
return
false
;
});
//返回一级导航,收起二级导航
$subNav
.
each
(
function
()
{
$
(
this
).
find
(
'li'
).
eq
(
0
).
on
(
'touchstart'
,
function
()
{
...
...
static/js/me/pay.js
View file @
9bcf083
...
...
@@ -21,7 +21,7 @@ var appIconPosition = {
bank
:
'-4rem'
};
//隐藏微信分享选项
//
隐藏微信分享选项
if
(
window
.
wx
)
{
wx
.
hideOptionMenu
();
}
...
...
@@ -44,10 +44,10 @@ if (typeof WeixinJSBridge === undefined) {
onBridgeReady
();
}
//调用微信JS api 支付
//
调用微信JS api 支付
function
jsApiCall
(
orderCode
,
jsApiParameters
)
{
//防止重复操作弹框
//
防止重复操作弹框
window
.
WeixinJSBridge
&&
window
.
WeixinJSBridge
.
invoke
(
'getBrandWCPayRequest'
,
jsApiParameters
,
...
...
@@ -57,7 +57,7 @@ function jsApiCall(orderCode, jsApiParameters) {
);
}
//微信支付
//
微信支付
function
callpay
(
orderCode
)
{
var
jsApiParameters
;
...
...
@@ -92,11 +92,7 @@ function callpay(orderCode) {
function
isWXOpen
()
{
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
ua
.
indexOf
(
'micromessenger'
)
>
0
)
{
return
true
;
}
else
{
return
false
;
}
return
ua
.
indexOf
(
'micromessenger'
)
>
0
;
}
function
hideWeChatPay
()
{
...
...
@@ -138,9 +134,7 @@ function loadIcon() {
}
function
showPage
()
{
var
$pageList
=
$
(
'.payapp-list'
);
$pageList
.
css
(
'visibility'
,
'visible'
);
$
(
'.payapp-list'
).
css
(
'visibility'
,
'visible'
);
}
if
(
wxHammer
)
{
...
...
static/js/passport/back/email-success.js
View file @
9bcf083
...
...
@@ -9,7 +9,7 @@ var $ = require('jquery');
var
$resend
=
$
(
'#resend'
);
var
tip
=
require
(
'../../plugin/tip'
),
show
Err
Tip
=
tip
.
show
;
showTip
=
tip
.
show
;
$resend
.
on
(
'touchstart'
,
function
(
e
)
{
e
.
preventDefault
();
...
...
@@ -18,11 +18,7 @@ $resend.on('touchstart', function(e) {
url
:
$resend
.
data
(
'url'
),
type
:
'GET'
,
success
:
function
(
data
)
{
if
(
data
.
code
===
200
)
{
showErrTip
(
data
.
message
);
}
else
{
showErrTip
(
data
.
message
);
}
showTip
(
data
.
message
);
}
});
});
\ No newline at end of file
...
...
static/js/passport/bind/password.js
View file @
9bcf083
...
...
@@ -21,32 +21,32 @@ var nickname = $('#nickname').val(),
areaCode
=
$
(
'#area-code'
).
val
().
replace
(
'+'
,
''
);
function
startBind
(
password
)
{
$
.
ajax
({
url
:
'/passport/bind/bindMobile'
,
type
:
'post'
,
data
:
{
areaCode
:
areaCode
.
replace
(
'+'
,
''
),
phoneNum
:
phoneNum
,
openId
:
openId
,
sourceType
:
sourceType
,
nickname
:
nickname
,
password
:
password
},
success
:
function
(
res
)
{
if
(
res
.
code
===
200
)
{
tip
.
show
(
'登录成功'
);
setTimeout
(
function
()
{
location
.
href
=
res
.
data
.
refer
;
},
2000
);
}
else
{
tip
.
show
(
res
.
message
);
}
},
error
:
function
(
err
)
{
tip
.
show
(
'登录失败,请重试!'
);
$
.
ajax
({
url
:
'/passport/bind/bindMobile'
,
type
:
'post'
,
data
:
{
areaCode
:
areaCode
.
replace
(
'+'
,
''
),
phoneNum
:
phoneNum
,
openId
:
openId
,
sourceType
:
sourceType
,
nickname
:
nickname
,
password
:
password
},
success
:
function
(
res
)
{
if
(
res
.
code
===
200
)
{
tip
.
show
(
'登录成功'
);
setTimeout
(
function
()
{
location
.
href
=
res
.
data
.
refer
;
},
2000
);
}
else
{
tip
.
show
(
res
.
message
);
}
});
}
},
error
:
function
(
err
)
{
tip
.
show
(
'登录失败,请重试!'
);
}
});
}
api
.
bindEyesEvt
({
status
:
'open'
//默认眼睛打开
...
...
static/sass/home/_side-nav.scss
View file @
9bcf083
...
...
@@ -152,18 +152,6 @@
}
}
// li.new {
// margin: (19rem / $pxConvertRem) 0 0;
// border-top: 1px solid #e0e0e0;
//
// a {}
//
// i {
// background: image-url("side-nav/new.png") no-repeat left center;
// background-size: 100% 100%;
// }
// }
li
.guang
,
li
.trendfinder
{
.nav-icon
{
background
:
image-url
(
"side-nav/guang.png"
)
no-repeat
left
center
;
...
...
@@ -208,15 +196,6 @@
z-index
:
2
;
}
/* img{
position: absolute;
max-width: 50rem / $pxConvertRem;
max-height: 50rem / $pxConvertRem;
left: 32rem / $pxConvertRem;
top: 50%;
margin-top: -25rem / $pxConvertRem;
border: none;
} */
.nav-point
{
position
:
absolute
;
left
:
0rem
/
$pxConvertRem
;
...
...
static/sass/layout/_header.scss
View file @
9bcf083
...
...
@@ -122,12 +122,13 @@
}
.homebuttom
{
display
:
block
;
width
:
100%
;
height
:
90rem
/
$pxConvertRem
;
overflow
:
hidden
;
border-top
:
1px
solid
rgba
(
255
,
255
,
255
,
0
.5
);
color
:
#fff
;
z-index
:
2
;
position
:
relative
;
&
.boys
{
@include
background-image
(
linear-gradient
(
#323232
,
#414141
));
...
...
@@ -169,10 +170,9 @@
overflow
:
hidden
;
display
:
block
;
line-height
:
40rem
/
$pxConvertRem
;
color
:
#fff
;
}
}
}
}
.none
{
display
:
none
;
}
...
...
template/m.yohobuy.com/partials/layout/page_header.phtml
View file @
9bcf083
...
...
@@ -20,7 +20,7 @@
{
{/navTitle
}
}
</header>
{
{#navBtn
}
}
<div
class=
"homebuttom
non
e {{#if boys}} boys{{/if}}{{#if girls}} girls{{/if}}{{#if kids}} kids{{/if}}{{#if lifeStyle}} life-style{{/if}}"
>
<div
class=
"homebuttom
hid
e {{#if boys}} boys{{/if}}{{#if girls}} girls{{/if}}{{#if kids}} kids{{/if}}{{#if lifeStyle}} life-style{{/if}}"
>
<ul>
<li>
<a
href=
"{{ indexUrl }}"
>
...
...
yohobuy/m.yohobuy.com/application/models/Index/User.php
View file @
9bcf083
...
...
@@ -359,13 +359,19 @@ class UserModel
{
$result
=
array
(
'code'
=>
400
,
'message'
=>
'出错啦~'
);
$record
=
UserData
::
delRecord
(
$uid
,
$skn
);
do
{
if
(
empty
(
$skn
))
{
break
;
}
// 处理数据
if
(
$record
&&
isset
(
$record
[
'code'
]))
{
$result
[
'code'
]
=
$record
[
'code'
];
$result
[
'message'
]
=
$record
[
'message'
];
}
$record
=
UserData
::
delRecord
(
$uid
,
$skn
);
// 处理数据
if
(
$record
&&
isset
(
$record
[
'code'
]))
{
$result
[
'code'
]
=
$record
[
'code'
];
$result
[
'message'
]
=
$record
[
'message'
];
}
}
while
(
false
);
return
$result
;
}
...
...
yohobuy/m.yohobuy.com/application/modules/Category/controllers/Brand.php
View file @
9bcf083
...
...
@@ -56,7 +56,7 @@ class BrandController extends AbstractAction
public
function
searchAction
()
{
$this
->
setTitle
(
'品牌一览'
);
$this
->
setNavHeader
(
'品牌一览'
);
$this
->
setNavHeader
(
'品牌一览'
,
true
,
false
);
$channel
=
Helpers
::
getChannelByCookie
();
...
...
Please
register
or
login
to post a comment