|
@@ -29,7 +29,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <u-empty :text="noDataText" img-width="120" v-if="list.length == 0 && status != 'loading'" mode="list"></u-empty>
|
|
|
+ <u-empty style="height: auto;padding-top: 10vh;" :text="noDataText" img-width="120" v-if="list.length == 0 && status != 'loading'" mode="list"></u-empty>
|
|
|
<view v-if="index==current" style="padding: 20upx;"><u-loadmore v-if="total > pageSize || status == 'loading'" :status="status" /></view>
|
|
|
</scroll-view>
|
|
|
</swiper-item>
|
|
@@ -155,7 +155,7 @@ export default {
|
|
|
};
|
|
|
this.status = 'loading';
|
|
|
getTaskList(params).then(res => {
|
|
|
- if (res.code == 200 || res.status == 204 || res.status == 200) {
|
|
|
+ if (res.status == 200) {
|
|
|
if (_this.pageNo > 1) {
|
|
|
_this.list = _this.list.concat(res.data.list || []);
|
|
|
} else {
|
|
@@ -165,7 +165,7 @@ export default {
|
|
|
} else {
|
|
|
_this.list = [];
|
|
|
_this.total = 0;
|
|
|
- _this.noDataText = res.message;
|
|
|
+ _this.noDataText = res.message || '暂无数据';
|
|
|
}
|
|
|
_this.status = 'loadmore';
|
|
|
});
|