|
|
@ -152,9 +152,9 @@ |
|
|
|
this.noticeList() |
|
|
|
this.banner() |
|
|
|
|
|
|
|
if(!this.userShop.shop){ |
|
|
|
// 查询我的客户 |
|
|
|
this.getUserPage() |
|
|
|
if(this.userShop){ |
|
|
|
// 查询水洗店首页统计 |
|
|
|
this.getLaundryStoreHomeData() |
|
|
|
}else{ |
|
|
|
//查询桌布商品 |
|
|
|
this.getGoodsPage() |
|
|
@ -162,8 +162,8 @@ |
|
|
|
}, |
|
|
|
// 下拉刷新 |
|
|
|
onPullDownRefresh(){ |
|
|
|
if(!this.userShop.shop){ |
|
|
|
this.getUserPage() |
|
|
|
if(this.userShop){ |
|
|
|
this.getLaundryStoreHomeData() |
|
|
|
}else{ |
|
|
|
this.getGoodsPage() |
|
|
|
} |
|
|
@ -174,8 +174,8 @@ |
|
|
|
onReachBottom() { |
|
|
|
if(this.queryParams.pageSize < this.productList.total){ |
|
|
|
this.queryParams.pageSize += 10 |
|
|
|
if(!this.userShop.shop){ |
|
|
|
this.getUserPage() |
|
|
|
if(this.userShop){ |
|
|
|
this.getLaundryStoreHomeData() |
|
|
|
}else{ |
|
|
|
this.getGoodsPage() |
|
|
|
} |
|
|
@ -210,9 +210,9 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 获取客户数据 |
|
|
|
getUserPage(){ |
|
|
|
this.$api('getMyUserPage', this.queryParams, res => { |
|
|
|
// 查询水洗店首页统计 |
|
|
|
getLaundryStoreHomeData(){ |
|
|
|
this.$api('laundryStoreHomeData', this.queryParams, res => { |
|
|
|
uni.stopPullDownRefresh() |
|
|
|
if(res.code == 200){ |
|
|
|
this.userList = res.result |
|
|
|