File tree Expand file tree Collapse file tree 8 files changed +32
-20
lines changed Expand file tree Collapse file tree 8 files changed +32
-20
lines changed Original file line number Diff line number Diff line change 1
1
/* mescroll-uni
2
- * version 1.1.7
3
- * 2019-10-15 wenju
2
+ * version 1.1.8
3
+ * 2019-11-01 wenju
4
4
* http://www.mescroll.com
5
5
*/
6
6
Original file line number Diff line number Diff line change 1
1
/* mescroll-uni
2
- * version 1.1.7
3
- * 2019-10-15 wenju
2
+ * version 1.1.8
3
+ * 2019-11-01 wenju
4
4
* http://www.mescroll.com
5
5
*/
6
6
7
7
export default function MeScroll ( options ) {
8
8
let me = this ;
9
- me . version = '1.1.7 ' ; // mescroll版本号
9
+ me . version = '1.1.8 ' ; // mescroll版本号
10
10
me . options = options || { } ; // 配置
11
11
12
12
me . isDownScrolling = false ; // 是否在执行下拉刷新的回调
@@ -258,6 +258,12 @@ MeScroll.prototype.touchendEvent = function(e) {
258
258
259
259
/* 根据点击滑动事件获取第一个手指的坐标 */
260
260
MeScroll . prototype . getPoint = function ( e ) {
261
+ if ( ! e ) {
262
+ return {
263
+ x : 0 ,
264
+ y : 0
265
+ }
266
+ }
261
267
if ( e . touches && e . touches [ 0 ] ) {
262
268
return {
263
269
x : e . touches [ 0 ] . pageX ,
Original file line number Diff line number Diff line change 22
22
23
23
<!-- 上拉加载区域 -->
24
24
<view v-if =" mescroll.optUp.use" class =" mescroll-upwarp" >
25
- <!-- 加载中.. -->
26
- <template v-if =" isUpLoading " >
25
+ <!-- 加载中 (此处不能用v-if,否则android小程序快速上拉可能会不断触发上拉回调) -->
26
+ <view v-show =" isUpLoading" >
27
27
<view class =" upwarp-progress mescroll-rotate" ></view >
28
28
<view class =" upwarp-tip" >{{mescroll.optUp.textLoading}}</view >
29
- </template >
29
+ </view >
30
30
<!-- 无数据 -->
31
31
<view v-if =" !isDownLoading && isUpNoMore" class =" upwarp-nodata" >{{mescroll.optUp.textNoMore}}</view >
32
32
</view >
Original file line number Diff line number Diff line change 25
25
<!-- 上拉加载区域 -->
26
26
<view v-if =" mescroll.optUp.use" class =" mescroll-upwarp" >
27
27
<!-- 加载中.. -->
28
- <template v-if =" isUpLoading " >
28
+ <view v-show =" isUpLoading" >
29
29
<view class =" upwarp-progress mescroll-rotate" ></view >
30
30
<view class =" upwarp-tip" >{{mescroll.optUp.textLoading}}</view >
31
- </template >
31
+ </view >
32
32
<!-- 无数据 -->
33
33
<view v-if =" !isDownLoading && isUpNoMore" class =" upwarp-nodata" >{{mescroll.optUp.textNoMore}}</view >
34
34
</view >
Original file line number Diff line number Diff line change 24
24
<!-- 上拉加载区域 -->
25
25
<view v-if =" mescroll.optUp.use" class =" mescroll-upwarp" >
26
26
<!-- 加载中.. -->
27
- <template v-if =" isUpLoading " >
27
+ <view v-show =" isUpLoading" >
28
28
<view class =" upwarp-progress mescroll-rotate" ></view >
29
29
<view class =" upwarp-tip" >{{mescroll.optUp.textLoading}}</view >
30
- </template >
30
+ </view >
31
31
<!-- 无数据 -->
32
32
<view v-if =" !isDownLoading && isUpNoMore" class =" upwarp-nodata" >{{mescroll.optUp.textNoMore}}</view >
33
33
</view >
Original file line number Diff line number Diff line change 1
1
/* mescroll-uni
2
- * version 1.1.7
3
- * 2019-10-15 wenju
2
+ * version 1.1.8
3
+ * 2019-11-01 wenju
4
4
* http://www.mescroll.com
5
5
*/
6
6
Original file line number Diff line number Diff line change 1
1
/* mescroll-uni
2
- * version 1.1.7
3
- * 2019-10-15 wenju
2
+ * version 1.1.8
3
+ * 2019-11-01 wenju
4
4
* http://www.mescroll.com
5
5
*/
6
6
7
7
export default function MeScroll ( options ) {
8
8
let me = this ;
9
- me . version = '1.1.7 ' ; // mescroll版本号
9
+ me . version = '1.1.8 ' ; // mescroll版本号
10
10
me . options = options || { } ; // 配置
11
11
12
12
me . isDownScrolling = false ; // 是否在执行下拉刷新的回调
@@ -258,6 +258,12 @@ MeScroll.prototype.touchendEvent = function(e) {
258
258
259
259
/* 根据点击滑动事件获取第一个手指的坐标 */
260
260
MeScroll . prototype . getPoint = function ( e ) {
261
+ if ( ! e ) {
262
+ return {
263
+ x : 0 ,
264
+ y : 0
265
+ }
266
+ }
261
267
if ( e . touches && e . touches [ 0 ] ) {
262
268
return {
263
269
x : e . touches [ 0 ] . pageX ,
Original file line number Diff line number Diff line change 22
22
23
23
<!-- 上拉加载区域 -->
24
24
<view v-if =" mescroll.optUp.use" class =" mescroll-upwarp" >
25
- <!-- 加载中.. -->
26
- <template v-if =" isUpLoading " >
25
+ <!-- 加载中 (此处不能用v-if,否则android小程序快速上拉可能会不断触发上拉回调) -->
26
+ <view v-show =" isUpLoading" >
27
27
<view class =" upwarp-progress mescroll-rotate" ></view >
28
28
<view class =" upwarp-tip" >{{mescroll.optUp.textLoading}}</view >
29
- </template >
29
+ </view >
30
30
<!-- 无数据 -->
31
31
<view v-if =" !isDownLoading && isUpNoMore" class =" upwarp-nodata" >{{mescroll.optUp.textNoMore}}</view >
32
32
</view >
You can’t perform that action at this time.
0 commit comments