...
|
...
|
@@ -106,22 +106,23 @@ function diXuanFuInit() { |
|
|
|
|
|
$bottomFixClickArea.children().each((index, elem) => {
|
|
|
let pageId = $(elem).data('url');
|
|
|
let $bottomShow = $('#bottomShow' + pageId + '-' + index);
|
|
|
let bottomShowFlag = pageId + '-' + index;
|
|
|
let $bottomShow = $('#bottomShow' + bottomShowFlag);
|
|
|
|
|
|
$bottomShow.load(href + pageId + '.html');
|
|
|
|
|
|
$('#bottomClick' + pageId + '-' + index).on('click', () => {
|
|
|
$('#bottomClick' + bottomShowFlag).on('click', () => {
|
|
|
$bottomPerShow.addClass('hide');
|
|
|
if (!lastClickElem) {
|
|
|
currentElemclickTimes++;
|
|
|
}
|
|
|
if (lastClickElem === pageId && currentElemclickTimes > 1) {
|
|
|
if (lastClickElem === bottomShowFlag && currentElemclickTimes > 1) {
|
|
|
currentElemclickTimes = 0;
|
|
|
} else {
|
|
|
$bottomShow.removeClass('hide');
|
|
|
}
|
|
|
|
|
|
lastClickElem = pageId;
|
|
|
lastClickElem = bottomShowFlag;
|
|
|
currentElemclickTimes++;
|
|
|
});
|
|
|
});
|
...
|
...
|
|