|
|
@@ -126,17 +126,14 @@ export default {
|
|
|
}
|
|
|
|
|
|
if(this.pageAction.refresh == 1){
|
|
|
+ this.resetList()
|
|
|
this.getMyHdList()
|
|
|
this.pageAction.refresh == 0
|
|
|
}
|
|
|
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
- // 下拉刷新时重置数据
|
|
|
- this.list.page = 1
|
|
|
- this.list.data = []
|
|
|
- this.list.finished = false
|
|
|
-
|
|
|
+ this.resetList()
|
|
|
// 重新获取数据
|
|
|
this.getMyHdList().then(() => {
|
|
|
uni.stopPullDownRefresh()
|
|
|
@@ -196,7 +193,7 @@ export default {
|
|
|
this.pageTo({ url:'/pages/item/item?account='+item.shopId+'&hdId='+item.id})
|
|
|
},
|
|
|
init () {
|
|
|
- this.getMyHdList()
|
|
|
+ this.getMyHdList()
|
|
|
},
|
|
|
getMyHdList(){
|
|
|
return getList({page: this.list.page}).then(res=>{
|