Skip to content

Commit

Permalink
pulldown refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
zce committed Oct 16, 2016
1 parent 0375026 commit 7b4786a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function generateJson (options) {
/**
* Clean distribution directory
*/
gulp.task('clean', del.bind(null, ['dist']))
gulp.task('clean', del.bind(null, ['dist/*']))

/**
* Lint source code
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"eslint-plugin-json": "^1.2.0",
"eslint-plugin-promise": "^3.0.0",
"eslint-plugin-standard": "^2.0.1",
"generate-weapp-page": "^0.1.2",
"generate-weapp-page": "^0.1.3",
"gulp": "^3.9.1",
"gulp-babel": "^6.1.2",
"gulp-cssnano": "^2.1.2",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Page({
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefreash () {
console.log(' ---------- onPullDownRefreash ----------')
onPullDownRefresh () {
console.log(' ---------- onPullDownRefresh ----------')
}
})
4 changes: 2 additions & 2 deletions src/pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Page({
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefreash () {
console.log(' ---------- onPullDownRefreash ----------')
onPullDownRefresh () {
console.log(' ---------- onPullDownRefresh ----------')
}
})
2 changes: 1 addition & 1 deletion src/pages/index/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
// 类型:Boolean;默认值:false
// 是否开启下拉刷新,详见页面相关事件处理函数。
// https://mp.weixin.qq.com/debug/wxadoc/dev/framework/app-service/page.html?t=1476197491005#页面相关事件处理函数
"enablePullDownRefresh": false
"enablePullDownRefresh": true
}

0 comments on commit 7b4786a

Please sign in to comment.