...
|
...
|
@@ -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;
|
|
|
|
...
|
...
|
@@ -50,4 +55,10 @@ $('#nav-tab li').on('touchend', function() { |
|
|
$('#feedback-content .content:eq(' + index + ')').removeClass('hide');
|
|
|
}
|
|
|
}
|
|
|
}); |
|
|
\ No newline at end of file |
|
|
});
|
|
|
|
|
|
if (consultFooterHammer) {
|
|
|
consultFooterHammer.on('tap', function() {
|
|
|
location.href = $(consultFooterEle).find('a').attr('href');
|
|
|
});
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|