...
|
...
|
@@ -14,7 +14,8 @@ var _weChatInterface = '//m.yohobuy.com/life/getSignPackage', |
|
|
|
|
|
|
|
|
require('../common');
|
|
|
require('../common/footer');
|
|
|
|
|
|
// require('../common/footer');
|
|
|
|
|
|
// 根据ua判断页头
|
|
|
(function uaHeader() {
|
...
|
...
|
@@ -482,3 +483,33 @@ $('.s-dialog').on('click', function() { |
|
|
|
|
|
$('.dialog-content').addClass('s-dialog-content');
|
|
|
});
|
|
|
|
|
|
$('#float-layer-close').on('touchend', function() {
|
|
|
$('#float-layer-app').hide();
|
|
|
window.setCookie('_float-layer-app', 'id490655927',
|
|
|
{
|
|
|
domain: '.yohobuy.com'
|
|
|
});
|
|
|
window.setCookie('_float-layer-app-close', 1,
|
|
|
{
|
|
|
domain: '.yohobuy.com',
|
|
|
expires: 1
|
|
|
});
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
if ($('#float-layer-btn') && $('#float-layer-btn')[0]) {
|
|
|
var floatLayerBtnHammer = new Hammer($('#float-layer-btn')[0]);
|
|
|
floatLayerBtnHammer.on('tap', function(e) {
|
|
|
var downUrl = 'http://union.yoho.cn/union/downapp.html?union_type=367';
|
|
|
|
|
|
window.downLoadApp(downUrl);
|
|
|
e.srcEvent.stopPropagation();
|
|
|
});
|
|
|
|
|
|
if (typeof window.cookie === 'function' && !window.cookie('_float-layer-app')) {
|
|
|
$('#float-layer-app').show();
|
|
|
} else {
|
|
|
$('#float-layer-app').hide();
|
|
|
}
|
|
|
} |
...
|
...
|
|