| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- <template>
- <view class="total-page page_env-20 page-box sys-list-background-color">
- <view class="task-bg">
- <Nav :title="'贷后管理'" :genre="1" :back="false" is_fixed></Nav>
- <view>
- <Search :placeholder="'贷款人姓名或电话'"></Search>
- <view class="page-box-bg-fff m-lr20 r-20">
- <z-tabs ref="tabs" :list="tabsList"
- :active-style="{color:'#10B261',fontWeight:'bold',fontSize:'30rpx'}"
- :bar-style="{background:'#10B261'}" :inactive-style="{fontWeight:'bold',fontSize:'28rpx'}"
- :current="current" :bar-animate-mode="'worm'" @change="tabsChange" />
- </view>
- </view>
- <EnScroll ref="scroll" :navHeight="100" is_tabHeight @onRefresh="onRefresh"
- @onScrollBottom="onScrollBottom">
- <LoanItem :task-list="list" @onCalculate="onCalculate"></LoanItem>
- </EnScroll>
- <Tab :tab-index="2"></Tab>
- <uni-popup ref="popup" type="bottom" @touchmove.stop.prevent="moveHandle">
- <view class="page-env-160 sys-background-fff r-20">
- <view class="row-justify-sb center p-lr30 p-t30">
- <view class="wh-25"></view>
- <text class="size-30 sys-weight-600">核算年利率</text>
- <image class="wh-25" src="/page_task/static/img/task-details/close.png" mode="aspectFill"
- @click="onClose">
- </image>
- </view>
- <view class="p-30 size-28 m-b50">
- <view class="">
- <text>当前年利率</text><text class="sys-weight-600 color-FF730E m-l10">23.7%</text>
- </view>
- <view class="row-justify-sb center r-10 sys-from-background-color p-30 m-t30">
- <input class="flex" type="text" placeholder="请输入新年利率" />
- <text class="text-color-12">%</text>
- </view>
- </view>
- <EnButton text="确认核算" @onSubmit=""></EnButton>
- </view>
- </uni-popup>
- </view>
- <EnButton :is_both="1" leftText="利率对比" rightText="完善贷后" @onLeftSubmit="onRateCompare" @onSubmit="onPerfectRate">
- </EnButton>
- </view>
- </template>
- <script>
- // 任务列表
- import LoanItem from "@/common/task/loan-item.vue";
- import {
- getLoanList
- } from "@/api/task";
- import tools from "@/service/tools";
- export default {
- components: {
- LoanItem
- },
- data() {
- return {
- current: 0,
- tabsList: [{
- name: '全部',
- disabled: false
- }, {
- name: '已完成(6)',
- dot_color: 'red',
- is_dot: true,
- disabled: false
- }, {
- name: '未完成(6)',
- dot_color: '#000',
- 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;
- },
- // 下拉刷新
- onRefresh() {
- uni.showLoading({
- title: '数据加载中'
- })
- setTimeout(() => {
- uni.showToast({
- title: '加载完成',
- icon: 'none'
- })
- this.$refs.scroll.onEndPulling()
- }, 1000)
- console.log("下拉刷新");
- },
- // 滚动到底部
- onScrollBottom() {
- uni.showLoading({
- title: '数据加载中'
- })
- setTimeout(() => {
- uni.showToast({
- title: '加载完成',
- icon: 'none'
- })
- }, 1000)
- console.log("到底部了");
- },
- onRateCompare() {
- uni.navigateTo({
- url: "/pages/loan/module/rate_compare"
- })
- },
- onPerfectRate() {
- uni.navigateTo({
- url: "/pages/loan/module/perfect_rate"
- })
- },
- onCalculate() {
- this.$refs.popup.open('bottom')
- },
- onClose() {
- this.$refs.popup.close('bottom')
- },
- moveHandle() {
- return false
- }
- },
- }
- </script>
- <style lang="scss" scoped>
- // .page-box{
- // height: 100vh;
- // background-image: url("https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/index/index-bg.png?imageMogr2/quality/20");
- // background-repeat: no-repeat;
- // background-size: 100% auto;
- // display: flex;
- // flex-direction: column;
- // .top-data{
- // flex: 1;
- // overflow: hidden;
- // .top-row{
- // height: 680rpx;
- // }
- // }
- // .bottom-data{
- // }
- // }
- </style>
|