Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
徐炜
9 years ago
Commit
1e1d4047f3b23c088992d22fffee7d35dca40ad9
1 parent
4a9c9055
FastClick
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
package.json
public/js/index.js
public/webpack.config.js
package.json
View file @
1e1d404
...
...
@@ -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"
,
...
...
public/js/index.js
View file @
1e1d404
...
...
@@ -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
()
{
...
...
public/webpack.config.js
View file @
1e1d404
...
...
@@ -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'
// 全局公有文件
];
});
...
...
Please
register
or
login
to post a comment