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
郭成尧
8 years ago
Commit
bbbc5c2a8040d4d51677d676366d3d2cedb0c615
2 parents
b0c1aa45
efab657b
Merge branch 'feature/ordrEnsurOptmz' of git.yoho.cn:fe/YOHOBUYWAP into feature/ordrEnsurOptmz
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
static/js/plugin/rich-tip.js
static/js/plugin/rich-tip.js
View file @
bbbc5c2
...
...
@@ -20,16 +20,23 @@ function setCallback(t, p) {
*/
(
function
()
{
$tip
.
on
(
'touchend'
,
function
(
event
)
{
if
(
'SPAN'
!==
event
.
target
.
tagName
)
{
$tip
.
hide
();
}
else
{
if
(
'SPAN'
===
event
.
target
.
tagName
)
{
if
(
touchCallback
)
{
touchCallback
(
params
);
touchCallback
(
params
);
}
touchCallback
=
null
;
params
=
null
;
setTimeout
(
function
()
{
$tip
.
hide
();
},
5
);
}
else
if
(
'A'
===
event
.
target
.
tagName
){
setTimeout
(
function
()
{
$tip
.
hide
();
},
5
);
}
else
{
$tip
.
hide
();
}
});
}());
...
...
@@ -55,8 +62,8 @@ function show(con, btn) {
}
else
{
buttons
+=
'<a href="'
+
btn
[
0
].
href
+
'" class="order-tip-btn1 '
+
btn
[
0
].
class
+
'"><span>'
+
btn
[
0
].
text
+
'</span></a>'
;
+
'">'
+
btn
[
0
].
text
+
'</a>'
;
}
}
...
...
@@ -69,8 +76,8 @@ function show(con, btn) {
}
else
{
buttons
+=
'<a href="'
+
value
.
href
+
'" class="'
+
value
.
class
+
'"><span>'
+
value
.
text
+
'</span></a>'
;
+
'">'
+
value
.
text
+
'</a>'
;
}
});
}
...
...
Please
register
or
login
to post a comment