|
@@ -26,8 +26,6 @@ export default {
|
|
if(this.noRequest) {
|
|
if(this.noRequest) {
|
|
this.finished = true;
|
|
this.finished = true;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
- }else {
|
|
|
|
- this.handleGetEnterpriseList()
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -51,6 +49,7 @@ export default {
|
|
});
|
|
});
|
|
if (res.data.records) {
|
|
if (res.data.records) {
|
|
this.enterpriseList = this.enterpriseList.concat(res.data.records || [])
|
|
this.enterpriseList = this.enterpriseList.concat(res.data.records || [])
|
|
|
|
+ this.current++;
|
|
this.finished = res.data.records.length < this.size; // 判断是否还有更多数据
|
|
this.finished = res.data.records.length < this.size; // 判断是否还有更多数据
|
|
}
|
|
}
|
|
this.loading = false; // 加载结束
|
|
this.loading = false; // 加载结束
|
|
@@ -72,31 +71,31 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<template>
|
|
- <van-list
|
|
|
|
- v-model="loading"
|
|
|
|
- @load="handleGetEnterpriseList"
|
|
|
|
- :finished="finished"
|
|
|
|
- finished-text="没有更多数据了"
|
|
|
|
- >
|
|
|
|
- <van-cell
|
|
|
|
- v-for="(item, index) in enterpriseList"
|
|
|
|
- :key="item.uuid"
|
|
|
|
- class="box"
|
|
|
|
- @click="handleClick(item)"
|
|
|
|
|
|
+ <van-list
|
|
|
|
+ v-model="loading"
|
|
|
|
+ @load="handleGetEnterpriseList"
|
|
|
|
+ :finished="finished"
|
|
|
|
+ finished-text="没有更多数据了"
|
|
>
|
|
>
|
|
- <template #default>
|
|
|
|
- <view class="top">
|
|
|
|
- <view class="name">
|
|
|
|
- {{ item.companyName }}
|
|
|
|
- <van-tag round color="#f4a40d" style="margin-left: 5px"> {{item.creditGoal || '暂无' }}</van-tag>
|
|
|
|
|
|
+ <van-cell
|
|
|
|
+ v-for="(item, index) in enterpriseList"
|
|
|
|
+ :key="item.uuid"
|
|
|
|
+ class="box"
|
|
|
|
+ @click="handleClick(item)"
|
|
|
|
+ >
|
|
|
|
+ <template #default>
|
|
|
|
+ <view class="top">
|
|
|
|
+ <view class="name">
|
|
|
|
+ {{ item.companyName }}
|
|
|
|
+ <van-tag round color="#f4a40d" style="margin-left: 5px"> {{item.creditGoal || '暂无' }}</van-tag>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- <view class="details">
|
|
|
|
- 最新承诺时间 : {{ item.createTime | date("YYYY-MM-DD HH:mm:ss") }}
|
|
|
|
- </view>
|
|
|
|
- </template>
|
|
|
|
- </van-cell>
|
|
|
|
- </van-list>
|
|
|
|
|
|
+ <view class="details">
|
|
|
|
+ 最新承诺时间 : {{ item.createTime | date("YYYY-MM-DD HH:mm:ss") }}
|
|
|
|
+ </view>
|
|
|
|
+ </template>
|
|
|
|
+ </van-cell>
|
|
|
|
+ </van-list>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|