Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
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
Email Patches
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
28e549ccd7243aae97bbe7d05ea54069a7eb1d02
1 parent
79dac278
gulp ge文件
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
static/dist/myohobuy/1.3.8/index-debug.js
static/dist/myohobuy/1.3.8/index.js
static/dist/myohobuy/1.3.8/index-debug.js
View file @
28e549c
...
...
@@ -301,6 +301,8 @@ $.extend({
}
});
FastClick
.
attach
(
document
.
body
);
//暴露公共接口
window
.
cookie
=
cookie
;
...
...
@@ -1761,7 +1763,7 @@ $sideNav.on('touchend', 'li', function(e) {
// 返回一级导航,收起二级导航
$subNav
.
each
(
function
()
{
$
(
this
).
find
(
'li'
).
eq
(
0
).
on
(
'
touchstart
'
,
function
()
{
$
(
this
).
find
(
'li'
).
eq
(
0
).
on
(
'
click
'
,
function
()
{
$sideNav
.
css
(
'pointer-events'
,
'none'
);
setTimeout
(
function
()
{
...
...
@@ -5381,6 +5383,7 @@ if (goodsDiscountHammer && $discountFolder.children().length > 0) {
$
(
'#limit-sale'
).
on
(
'touchend'
,
function
(
e
)
{
var
loginUrl
=
$
(
'#loginUrl'
).
val
(),
time
,
ifr
;
e
.
stopPropagation
();
...
...
@@ -5394,15 +5397,19 @@ $('#limit-sale').on('touchend', function(e) {
rightBtnText
:
'打开Yoho!Buy有货APP'
}
},
function
()
{
ifr
=
document
.
createElement
(
'iframe'
);
ifr
.
src
=
appUrl
;
ifr
.
style
.
display
=
'none'
;
document
.
body
.
appendChild
(
ifr
);
window
.
location
.
href
=
appUrl
;
window
.
setTimeout
(
function
(){
document
.
body
.
removeChild
(
ifr
);
ifr
=
document
.
createElement
(
'iframe'
);
ifr
.
src
=
appUrl
;
ifr
.
style
.
display
=
'none'
;
document
.
body
.
appendChild
(
ifr
);
window
.
location
.
href
=
appUrl
;
time
=
Date
.
now
();
window
.
setTimeout
(
function
()
{
document
.
body
.
removeChild
(
ifr
);
if
(
Date
.
now
()
-
time
<
3200
)
{
window
.
location
.
href
=
'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho'
;
},
3000
);
}
},
3000
);
},
undefined
,
true
);
...
...
static/dist/myohobuy/1.3.8/index.js
View file @
28e549c
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment