...
|
...
|
@@ -9,10 +9,7 @@ var $ = require('jquery'), |
|
|
|
|
|
var commentsNum,consultsNum;
|
|
|
|
|
|
var consultFooterEle = $('.consult-content-footer')[0],
|
|
|
consultFooterHammer = consultFooterEle && new Hammer(consultFooterEle),
|
|
|
|
|
|
navtabEle = document.getElementById('nav-tab'),
|
|
|
var navtabEle = document.getElementById('nav-tab'),
|
|
|
navtabHammer = navtabEle && new Hammer(navtabEle),
|
|
|
|
|
|
gotoConsultEle = document.getElementById('goto-consult'),
|
...
|
...
|
@@ -66,12 +63,6 @@ if (navtabHammer) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
if (consultFooterHammer) {
|
|
|
consultFooterHammer.on('tap', function() {
|
|
|
location.href = $(consultFooterEle).data('href');
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (gotoConsultHammer) {
|
|
|
gotoConsultHammer.on('tap', function() {
|
|
|
location.href = $(gotoConsultEle).data('href');
|
...
|
...
|
|