...
|
...
|
@@ -64,7 +64,9 @@ function ceXuanFuInit() { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
$('#sidebar').load('//activity.yoho.cn/featuresidebar/' + pageid + '.html', function() {
|
|
|
// //m.yohobuy.com/activity/featuresidebar/
|
|
|
// //activity.yoho.cn/featuresidebar/
|
|
|
$('#sidebar').load('//m.yohobuy.com/activity/featuresidebar/' + pageid + '.html', function() {
|
|
|
$('.sidebar-img').click(function() {
|
|
|
$('.sidebar').show();
|
|
|
});
|
...
|
...
|
@@ -82,6 +84,28 @@ function ceXuanFuInit() { |
|
|
});
|
|
|
}
|
|
|
|
|
|
function diXuanFuInit() {
|
|
|
let $bottomFixClickArea = $('#bottomFixClickArea');
|
|
|
let $bottomPerShow = $('.per-show');
|
|
|
|
|
|
$bottomPerShow.css('bottom', $bottomFixClickArea.height());
|
|
|
|
|
|
$bottomFixClickArea.children().each((index, elem) => {
|
|
|
let pageId = $(elem).data('url');
|
|
|
let $bottomShow = $('#bottomShow' + pageId);
|
|
|
|
|
|
$bottomShow.load('//m.yohobuy.com/activity/featurebottombar/' + pageId + '.html');
|
|
|
|
|
|
$('#bottomClick' + pageId).on('click', () => {
|
|
|
if ($bottomShow.hasClass('hide')) {
|
|
|
$bottomShow.removeClass('hide');
|
|
|
} else {
|
|
|
$bottomShow.addClass('hide');
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function videoInit() {
|
|
|
function cancelMove(e) {
|
|
|
e.preventDefault && e.preventDefault();
|
...
|
...
|
@@ -242,6 +266,9 @@ $(function() { |
|
|
// 侧悬浮
|
|
|
ceXuanFuInit();
|
|
|
|
|
|
// 底悬浮
|
|
|
diXuanFuInit();
|
|
|
|
|
|
// 视频相关
|
|
|
videoInit();
|
|
|
|
...
|
...
|
|