...
|
...
|
@@ -13,7 +13,11 @@ var consultFooterEle = document.getElementById('consult-content-footer'), |
|
|
consultFooterHammer = consultFooterEle && new Hammer(consultFooterEle),
|
|
|
|
|
|
navtabEle = document.getElementById('nav-tab'),
|
|
|
navtabHammer = navtabEle && new Hammer(navtabEle);
|
|
|
navtabHammer = navtabEle && new Hammer(navtabEle),
|
|
|
|
|
|
gotoConsultEle = document.getElementById('goto-consult'),
|
|
|
gotoConsultHammer = gotoConsultEle && new Hammer(gotoConsultEle);
|
|
|
|
|
|
|
|
|
|
|
|
(function() {
|
...
|
...
|
@@ -50,10 +54,10 @@ if (navtabHammer) { |
|
|
if (!$this.hasClass('focus')) {
|
|
|
|
|
|
$('#nav-tab li').each(function() {
|
|
|
$this.removeClass('focus');
|
|
|
$(this).removeClass('focus');
|
|
|
});
|
|
|
$('#feedback-content .content').each(function() {
|
|
|
$this.addClass('hide');
|
|
|
$(this).addClass('hide');
|
|
|
});
|
|
|
|
|
|
$this.addClass('focus');
|
...
|
...
|
@@ -67,4 +71,10 @@ if (consultFooterHammer) { |
|
|
consultFooterHammer.on('tap', function() {
|
|
|
location.href = $(consultFooterEle).find('a').attr('href');
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (gotoConsultHammer) {
|
|
|
gotoConsultHammer.on('tap', function() {
|
|
|
location.href = $(gotoConsultEle).find('a').attr('href');
|
|
|
});
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|