...
|
...
|
@@ -4,12 +4,17 @@ |
|
|
* @date: 2015/11/18
|
|
|
*/
|
|
|
var $ = require('jquery'),
|
|
|
tip = require('../../plugin/tip');
|
|
|
var commentsNum;
|
|
|
tip = require('../../plugin/tip'),
|
|
|
Hammer = require('yoho.hammer');
|
|
|
|
|
|
var commentsNum,consultsNum;
|
|
|
|
|
|
var consultFooterEle = document.getElementById('consult-content-footer'),
|
|
|
consultFooterHammer = consultFooterEle && new Hammer(consultFooterEle);
|
|
|
|
|
|
|
|
|
(function() {
|
|
|
var consultsNum = $('#nav-tab .consults-num').html() - 0;
|
|
|
consultsNum = $('#nav-tab .consults-num').html() - 0;
|
|
|
|
|
|
commentsNum = $('#nav-tab .comments-num').html() - 0;
|
|
|
|
...
|
...
|
@@ -51,3 +56,9 @@ $('#nav-tab li').on('touchend', function() { |
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (consultFooterHammer) {
|
|
|
consultFooterHammer.on('tap', function() {
|
|
|
location.href = $(consultFooterEle).find('a').attr('href');
|
|
|
});
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|