|
|
@@ -13,7 +13,7 @@
|
|
|
</view>
|
|
|
<EnScroll ref="scroll" :navHeight="108" is_tabHeight @onRefresh="onRefresh"
|
|
|
@onScrollBottom="onScrollBottom">
|
|
|
- <TaskItem :type="3" is_bottom></TaskItem>
|
|
|
+<!-- <TaskItem :type="3" is_bottom></TaskItem>-->
|
|
|
</EnScroll>
|
|
|
<Tab :tab-index="2"></Tab>
|
|
|
</view>
|
|
|
@@ -23,6 +23,8 @@
|
|
|
<script>
|
|
|
// 任务列表
|
|
|
import TaskItem from "@/common/task/task-item.vue";
|
|
|
+ import {getLoanList} from "@/api/task";
|
|
|
+ import tools from "@/service/tools";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -45,13 +47,39 @@
|
|
|
is_dot: true,
|
|
|
disabled: false
|
|
|
}],
|
|
|
+ searchText:"",
|
|
|
+ fromData:{
|
|
|
+ status:0,
|
|
|
+ interest_rate:'',//利率区间 数组或者字符串,连接
|
|
|
+ residue_num:'',//剩余期数
|
|
|
+ product_name:'',//产品名称
|
|
|
+ phone:'',//电话号码
|
|
|
+ name:'',//客户名称
|
|
|
+ productId:'',//产品ID
|
|
|
+ page:1,
|
|
|
+ },
|
|
|
+ total:0,
|
|
|
+ list:[],
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
|
|
|
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ getList(){
|
|
|
+ getLoanList(this.fromData).then((res)=>{
|
|
|
+ if(res.code === 1){
|
|
|
+ this.list = [...this.list,...res.data.items]
|
|
|
+ this.total = res.data.total
|
|
|
+ }else{
|
|
|
+ tools.error(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
tabsChange(index) {
|
|
|
this.current = index;
|
|
|
},
|