更新
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
<!-- <sl-filter reflexTitle ref="slFilter" @result="filterRes" :menuList="menuList"></sl-filter> -->
|
||||
</view>
|
||||
<view class="bg-white min-height-50 padding-top" v-if="siteList.length>0">
|
||||
<site-item v-for="(item,index) in siteList" :key="item.id" :site-item="item" :first="index==0"
|
||||
<site-item v-for="(item,index) in siteList" :key="index" :site-item="item" :first="index==0"
|
||||
:listHeight="listHeight" class="cu-list menu-avatar cu-item" @tap="toDetail(item)">
|
||||
</site-item>
|
||||
<view class="placeholder-hidden">
|
||||
@@ -396,31 +396,32 @@
|
||||
}
|
||||
|
||||
}
|
||||
if (!uni.getStorageSync('Authorization')) {
|
||||
oilSiteApi.readOnlySites(data1).then(res => {
|
||||
if (res.code == 20000) {
|
||||
this.siteList = this.siteList.concat(res.data.list)
|
||||
if (res.data.list.length < 10) { //判断接口返回数据量小于请求数据量,则表示此为最后一页
|
||||
this.loadStatus = 'nomore'
|
||||
} else {
|
||||
this.currentPage++
|
||||
this.loadStatus = 'load'
|
||||
}
|
||||
oilSiteApi.findKASiteInfoByPage(data1).then(res => {
|
||||
if (res.code == 20000) {
|
||||
this.siteList = this.siteList.concat(res.data.list)
|
||||
if (res.data.list.length < 10) { //判断接口返回数据量小于请求数据量,则表示此为最后一页
|
||||
this.loadStatus = 'nomore'
|
||||
} else {
|
||||
this.currentPage++
|
||||
this.loadStatus = 'load'
|
||||
}
|
||||
})
|
||||
} else {
|
||||
oilSiteApi.getSiteLists(data1).then(res => {
|
||||
if (res.code == 20000) {
|
||||
this.siteList = this.siteList.concat(res.data.list)
|
||||
if (res.data.list.length < 10) { //判断接口返回数据量小于请求数据量,则表示此为最后一页
|
||||
this.loadStatus = 'nomore'
|
||||
} else {
|
||||
this.currentPage++
|
||||
this.loadStatus = 'load'
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
// if (!uni.getStorageSync('Authorization')) {
|
||||
// oilSiteApi.readOnlySites(data1).then(res => {
|
||||
// if (res.code == 20000) {
|
||||
// this.siteList = this.siteList.concat(res.data.list)
|
||||
// if (res.data.list.length < 10) { //判断接口返回数据量小于请求数据量,则表示此为最后一页
|
||||
// this.loadStatus = 'nomore'
|
||||
// } else {
|
||||
// this.currentPage++
|
||||
// this.loadStatus = 'load'
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// } else {
|
||||
|
||||
// }
|
||||
|
||||
},
|
||||
toDetail(item) {
|
||||
|
||||
Reference in New Issue
Block a user