|
@@ -74,8 +74,6 @@ export default {
|
|
return shareObj;
|
|
return shareObj;
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- // 如果登录才请求
|
|
|
|
- if( !this.$checkAccess.checkLogin() ) return ;
|
|
|
|
// 没有数据的话,或者请求中,不允许刷新
|
|
// 没有数据的话,或者请求中,不允许刷新
|
|
if (this.isReqing) return;
|
|
if (this.isReqing) return;
|
|
// 请求参数
|
|
// 请求参数
|
|
@@ -98,8 +96,6 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
- // 如果登录才请求
|
|
|
|
- if( !this.$checkAccess.checkLogin() ) return ;
|
|
|
|
// 如果请求中,不允许请求,
|
|
// 如果请求中,不允许请求,
|
|
if (this.isReqing) return uni.stopPullDownRefresh();
|
|
if (this.isReqing) return uni.stopPullDownRefresh();
|
|
// 初始化页码为1
|
|
// 初始化页码为1
|
|
@@ -121,8 +117,6 @@ export default {
|
|
uni.stopPullDownRefresh();
|
|
uni.stopPullDownRefresh();
|
|
},
|
|
},
|
|
onReachBottom() {
|
|
onReachBottom() {
|
|
- // 如果登录才请求
|
|
|
|
- if( !this.$checkAccess.checkLogin() ) return ;
|
|
|
|
// 如果页码是0,避免第一页重复
|
|
// 如果页码是0,避免第一页重复
|
|
if (this.requestParam.page < 1) return;
|
|
if (this.requestParam.page < 1) return;
|
|
// 最后一页不再请求
|
|
// 最后一页不再请求
|