Authored by 徐炜

FastClick

... ... @@ -27,6 +27,7 @@
"express": "^4.14.0",
"express-handlebars": "^3.0.0",
"express-session": "^1.14.1",
"fastclick": "^1.0.6",
"influxdb-winston": "^1.0.1",
"lodash": "^4.15.0",
"memcached": "^2.2.1",
... ...
... ... @@ -21,12 +21,15 @@ const Vue = require('vue');
const util = require('common/util');
const interceptClick = require('common/intercept-click');
const bus = require('common/vue-bus');
const FastClick = require('fastclick');
/**
* iOS 7 不支持 Promise, vue-lazyload 有用到,所以全局申明
*/
global.Promise = Promise;
FastClick.attach(document.body);
// 隐藏 App 默认显示的 loading
Vue.mixin({
ready() {
... ...
... ... @@ -31,6 +31,7 @@ shelljs.ls(path.join(__dirname, 'js/**/*.page.js')).forEach((f) => {
'vue-swipe',
'vue-infinite-scroll',
'vue-touch',
'fastclick',
'./js/index.js' // 全局公有文件
];
});
... ...