Showing
3 changed files
with
5 additions
and
0 deletions
@@ -27,6 +27,7 @@ | @@ -27,6 +27,7 @@ | ||
27 | "express": "^4.14.0", | 27 | "express": "^4.14.0", |
28 | "express-handlebars": "^3.0.0", | 28 | "express-handlebars": "^3.0.0", |
29 | "express-session": "^1.14.1", | 29 | "express-session": "^1.14.1", |
30 | + "fastclick": "^1.0.6", | ||
30 | "influxdb-winston": "^1.0.1", | 31 | "influxdb-winston": "^1.0.1", |
31 | "lodash": "^4.15.0", | 32 | "lodash": "^4.15.0", |
32 | "memcached": "^2.2.1", | 33 | "memcached": "^2.2.1", |
@@ -21,12 +21,15 @@ const Vue = require('vue'); | @@ -21,12 +21,15 @@ const Vue = require('vue'); | ||
21 | const util = require('common/util'); | 21 | const util = require('common/util'); |
22 | const interceptClick = require('common/intercept-click'); | 22 | const interceptClick = require('common/intercept-click'); |
23 | const bus = require('common/vue-bus'); | 23 | const bus = require('common/vue-bus'); |
24 | +const FastClick = require('fastclick'); | ||
24 | 25 | ||
25 | /** | 26 | /** |
26 | * iOS 7 不支持 Promise, vue-lazyload 有用到,所以全局申明 | 27 | * iOS 7 不支持 Promise, vue-lazyload 有用到,所以全局申明 |
27 | */ | 28 | */ |
28 | global.Promise = Promise; | 29 | global.Promise = Promise; |
29 | 30 | ||
31 | +FastClick.attach(document.body); | ||
32 | + | ||
30 | // 隐藏 App 默认显示的 loading | 33 | // 隐藏 App 默认显示的 loading |
31 | Vue.mixin({ | 34 | Vue.mixin({ |
32 | ready() { | 35 | ready() { |
@@ -31,6 +31,7 @@ shelljs.ls(path.join(__dirname, 'js/**/*.page.js')).forEach((f) => { | @@ -31,6 +31,7 @@ shelljs.ls(path.join(__dirname, 'js/**/*.page.js')).forEach((f) => { | ||
31 | 'vue-swipe', | 31 | 'vue-swipe', |
32 | 'vue-infinite-scroll', | 32 | 'vue-infinite-scroll', |
33 | 'vue-touch', | 33 | 'vue-touch', |
34 | + 'fastclick', | ||
34 | './js/index.js' // 全局公有文件 | 35 | './js/index.js' // 全局公有文件 |
35 | ]; | 36 | ]; |
36 | }); | 37 | }); |
-
Please register or login to post a comment