Authored by 郭成尧

Merge branch 'feature/ordrEnsurOptmz' of git.yoho.cn:fe/YOHOBUYWAP into feature/ordrEnsurOptmz

... ... @@ -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>';
}
});
}
... ...