浏览代码

上拉回弹test2

jmx 8 年之前
父节点
当前提交
b1d536665a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      www/webapp/o2o/js/page/home.js

+ 4 - 0
www/webapp/o2o/js/page/home.js

@@ -248,7 +248,11 @@ define(['$', 'template', 'IScroll', 'product', 'user', 'native', 'config'], func
                         pageData.scroll = new IScroll('#homeScroll', {
                             preventDefaultException: {className: /(^|\s)home-content(\s|$)/},
                             onScrollMove: function () {
+                                console.log(this.y);
+                                console.log(this.maxScrollY);
+                                console.log(this.pointY);
                                 if (this.y<this.maxScrollY && this.pointY < 1){
+                                    console.log('???????????????????????');
                                     this.scrollTo(0, this.maxScrollY, 400);
                                 }
                             }