mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 04:36:44 +08:00
[银保app] 保单列表分页请求优化
This commit is contained in:
committed by
liu.xiaofeng@ebiz-digits.com
parent
f4c5aa0875
commit
f8d418985e
@@ -23,7 +23,7 @@
|
||||
</div>
|
||||
<!-- 卡片列表 -->
|
||||
<div v-if="filpolicyListDTOList != ''" style="overflow:hidden">
|
||||
<!-- <van-list v-model="loading" :finished="finished" :finished-text="noContentTip" @load="onLoad"> -->
|
||||
<van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="YBpolicyListAgent">
|
||||
<div class="cardList" v-for="(item, index) in filpolicyListDTOList" :key="index">
|
||||
<div :class="[item.orderStatus == 1 ? 'topbackground1' : 'topbackground2']">
|
||||
<!-- 字左边小对号图片 -->
|
||||
@@ -59,7 +59,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- </van-list> -->
|
||||
</van-list>
|
||||
</div>
|
||||
<van-popup v-model="showSideBar" position="right" style="width: 80%; height: 100%" :overlay-style="{ opacity: 0.7 }">
|
||||
<div class="state-content">
|
||||
@@ -174,8 +174,12 @@ export default {
|
||||
stateName: '', // 保单状态
|
||||
bankChannel: '', // 渠道名称
|
||||
visitSuccess: '', // 回访成功
|
||||
visitFinish: '' // 回访完成
|
||||
}
|
||||
visitFinish: '', // 回访完成
|
||||
pageSize:10,
|
||||
pageNo:0,
|
||||
},
|
||||
loading: false,
|
||||
finished: false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -192,7 +196,7 @@ export default {
|
||||
message: '加载中……'
|
||||
})
|
||||
this.getAgentInfo()
|
||||
|
||||
|
||||
this.YBpolicyListAgent()
|
||||
// 筛选按钮的点击事件
|
||||
window.appCallBack = this.appCallBack
|
||||
@@ -255,14 +259,29 @@ export default {
|
||||
YBpolicyListAgent() {
|
||||
let that = this
|
||||
console.log('我是log')
|
||||
if(!that.finished){
|
||||
that.params.pageNo++
|
||||
}
|
||||
YBpolicyListAgent(that.params).then((res) => {
|
||||
console.log(res, '我是res')
|
||||
if (res.result == 0) {
|
||||
that.policyListDTOList = res.policyListDTOList
|
||||
that.filpolicyListDTOList = res.policyListDTOList
|
||||
console.log(this.policyListDTOList, 'data里的policyListDTOList')
|
||||
// that.policyListDTOList = res.policyListDTOList
|
||||
// that.filpolicyListDTOList = res.policyListDTOList
|
||||
// console.log(this.policyListDTOList, 'data里的policyListDTOList')
|
||||
// this.YBpolicyListAgent()
|
||||
if( res.policyListDTOList.length == 0 ){
|
||||
this.finished = true
|
||||
this.loading= false
|
||||
// that.filpolicyListDTOList = []
|
||||
}else{
|
||||
that.filpolicyListDTOList = that.filpolicyListDTOList.concat(res.policyListDTOList)
|
||||
that.finished = false
|
||||
this.loading= false
|
||||
}
|
||||
} else {
|
||||
that.filpolicyListDTOList = ''
|
||||
that.$toast(res.resultMessage)
|
||||
this.finished = true
|
||||
this.loading= false
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user