|
|
@@ -26,13 +26,13 @@ export default {
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
this.resetList();
|
|
|
- this._list().then(res => {
|
|
|
+ this.getList().then(res => {
|
|
|
uni.stopPullDownRefresh();
|
|
|
});
|
|
|
},
|
|
|
onReachBottom () {
|
|
|
if (!this.list.finished) {
|
|
|
- this._list().then(res => {
|
|
|
+ this.getList().then(res => {
|
|
|
uni.stopPullDownRefresh()
|
|
|
})
|
|
|
} else {
|
|
|
@@ -41,25 +41,20 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async init() {
|
|
|
- this._list();
|
|
|
+ this.getList();
|
|
|
},
|
|
|
- _list() {
|
|
|
+ getList() {
|
|
|
let options = {
|
|
|
page: this.list.page,
|
|
|
pageSize: this.list.pageSize,
|
|
|
ghsId:this.option.ghsId
|
|
|
};
|
|
|
- return getClearList(options).then(res => {
|
|
|
- this.completes(res);
|
|
|
- }).catch(err => {});
|
|
|
+ getClearList(options).then(res => {
|
|
|
+ this.completes(res);
|
|
|
+ })
|
|
|
},
|
|
|
gotoDetail(item) {
|
|
|
- uni.navigateTo({
|
|
|
- url: `/admin/clear/info?id=${item.id}`,
|
|
|
- success: result => {},
|
|
|
- fail: () => {},
|
|
|
- complete: () => {}
|
|
|
- });
|
|
|
+ uni.navigateTo({ url: `/admin/clear/info?id=${item.id}` })
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
@@ -74,7 +69,6 @@ export default {
|
|
|
padding-top: 20upx;
|
|
|
padding-bottom: 80upx;
|
|
|
flex: 1;
|
|
|
- // padding-bottom: 50upx;
|
|
|
.allot-item {
|
|
|
margin-bottom: 1px;
|
|
|
padding: 30upx;
|