|
@@ -4,12 +4,17 @@ |
|
@@ -4,12 +4,17 @@ |
4
|
* @date: 2015/11/18
|
4
|
* @date: 2015/11/18
|
5
|
*/
|
5
|
*/
|
6
|
var $ = require('jquery'),
|
6
|
var $ = require('jquery'),
|
7
|
- tip = require('../../plugin/tip');
|
|
|
8
|
-var commentsNum;
|
7
|
+ tip = require('../../plugin/tip'),
|
|
|
8
|
+ Hammer = require('yoho.hammer');
|
|
|
9
|
+
|
|
|
10
|
+var commentsNum,consultsNum;
|
|
|
11
|
+
|
|
|
12
|
+var consultFooterEle = document.getElementById('consult-content-footer'),
|
|
|
13
|
+ consultFooterHammer = consultFooterEle && new Hammer(consultFooterEle);
|
9
|
|
14
|
|
10
|
|
15
|
|
11
|
(function() {
|
16
|
(function() {
|
12
|
- var consultsNum = $('#nav-tab .consults-num').html() - 0;
|
17
|
+ consultsNum = $('#nav-tab .consults-num').html() - 0;
|
13
|
|
18
|
|
14
|
commentsNum = $('#nav-tab .comments-num').html() - 0;
|
19
|
commentsNum = $('#nav-tab .comments-num').html() - 0;
|
15
|
|
20
|
|
|
@@ -50,4 +55,10 @@ $('#nav-tab li').on('touchend', function() { |
|
@@ -50,4 +55,10 @@ $('#nav-tab li').on('touchend', function() { |
50
|
$('#feedback-content .content:eq(' + index + ')').removeClass('hide');
|
55
|
$('#feedback-content .content:eq(' + index + ')').removeClass('hide');
|
51
|
}
|
56
|
}
|
52
|
}
|
57
|
}
|
53
|
-}); |
|
|
|
|
58
|
+});
|
|
|
59
|
+
|
|
|
60
|
+if (consultFooterHammer) {
|
|
|
61
|
+ consultFooterHammer.on('tap', function() {
|
|
|
62
|
+ location.href = $(consultFooterEle).find('a').attr('href');
|
|
|
63
|
+ });
|
|
|
64
|
+} |