...
|
...
|
@@ -9,12 +9,12 @@ 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),
|
|
|
|
|
|
// consultFooterEle = $('.consult-content-footer')[0],
|
|
|
// consultFooterHammer = consultFooterEle && new Hammer(consultFooterEle),
|
|
|
|
|
|
gotoConsultEle = document.getElementById('goto-consult'),
|
|
|
gotoConsultHammer = gotoConsultEle && new Hammer(gotoConsultEle),
|
|
|
|
...
|
...
|
@@ -70,11 +70,11 @@ if (navtabHammer) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
if (consultFooterHammer) {
|
|
|
consultFooterHammer.on('tap', function() {
|
|
|
location.href = $(consultFooterEle).data('href');
|
|
|
});
|
|
|
}
|
|
|
// if (consultFooterHammer) {
|
|
|
// consultFooterHammer.on('tap', function() {
|
|
|
// location.href = $(consultFooterEle).data('href');
|
|
|
// });
|
|
|
// }
|
|
|
|
|
|
if (gotoConsultHammer) {
|
|
|
gotoConsultHammer.on('tap', function() {
|
...
|
...
|
|