问题件详情页面分享按钮测试

This commit is contained in:
mengxiaolong
2020-08-03 10:05:39 +08:00
parent 771deea551
commit 889edfe289
2 changed files with 39 additions and 35 deletions

View File

@@ -3,7 +3,7 @@
<div class="header">
<van-search show-action @cancel="searchCancel" v-model="searchValue" placeholder="请输入投保人/被保人/险种名称/问题件类型关键字">
<template #action>
<div>搜索</div>
<div @click="searchProblems">搜索</div>
</template>
</van-search>
<van-tabs v-model="active" @change="changeProblemList">
@@ -127,7 +127,8 @@ export default {
processedList: [],
searchValue: '',
currentPage: 1,
pageSize: 10
pageSize: 10,
searchCurrentPage: 1
}
},
methods: {
@@ -150,7 +151,8 @@ export default {
type: this.active,
pageInfo: {
pageNum: this.currentPage,
pageSize: this.pageSize
pageSize: this.pageSize,
keyword: this.searchValue ? this.searchValue : ''
}
})
if (rs && rs.result === '0') {
@@ -186,6 +188,15 @@ export default {
this.processedListLoading = true
}
this.loadMore()
},
async searchProblems() {
this.currentPage = 1
if (this.active === 0) {
this.pendingList.splice(0)
} else {
this.processedList.splice(0)
}
this.loadMore()
}
},
created() {