...
|
...
|
@@ -63,16 +63,19 @@ function topNavInit() { |
|
|
}
|
|
|
|
|
|
function ceXuanFuInit() {
|
|
|
var cxf = $('#sidebar');
|
|
|
var pageid = cxf.attr('pageid');
|
|
|
let cxf = $('#sidebar');
|
|
|
let pageid = cxf.attr('pageid');
|
|
|
let href = '//activity.yoho.cn/featuresidebar/';
|
|
|
|
|
|
if (!pageid) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
// //m.yohobuy.com/activity/featuresidebar/
|
|
|
// //activity.yoho.cn/featuresidebar/
|
|
|
$('#sidebar').load('//m.yohobuy.com/activity/featuresidebar/' + pageid + '.html', function() {
|
|
|
if (location.hostname === 'm.yohobuy.com') {
|
|
|
href = '//m.yohobuy.com/activity/featuresidebar/';
|
|
|
}
|
|
|
|
|
|
$('#sidebar').load(href + pageid + '.html', function() {
|
|
|
$('.sidebar-img').click(function() {
|
|
|
$('.sidebar').show();
|
|
|
});
|
...
|
...
|
@@ -93,6 +96,12 @@ function ceXuanFuInit() { |
|
|
function diXuanFuInit() {
|
|
|
let $bottomFixClickArea = $('#bottomFixClickArea');
|
|
|
let $bottomPerShow = $('.per-show');
|
|
|
let href = '//activity.yoho.cn/featurebottombar/';
|
|
|
|
|
|
if (location.hostname === 'm.yohobuy.com') {
|
|
|
href = '//m.yohobuy.com/activity/featurebottombar/';
|
|
|
}
|
|
|
|
|
|
|
|
|
$bottomPerShow.css('bottom', $bottomFixClickArea.height());
|
|
|
|
...
|
...
|
@@ -100,7 +109,7 @@ function diXuanFuInit() { |
|
|
let pageId = $(elem).data('url');
|
|
|
let $bottomShow = $('#bottomShow' + pageId);
|
|
|
|
|
|
$bottomShow.load('//m.yohobuy.com/activity/featurebottombar/' + pageId + '.html');
|
|
|
$bottomShow.load(href + pageId + '.html');
|
|
|
|
|
|
$('#bottomClick' + pageId).on('click', () => {
|
|
|
if ($bottomShow.hasClass('hide')) {
|
...
|
...
|
|