loan.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <view class="total-page page_env page-box sys-list-background-color">
  3. <view class="task-bg">
  4. <Nav :title="'贷后管理'" :genre="1" :back="false" is_fixed></Nav>
  5. <view>
  6. <Search :placeholder="'贷款人姓名或电话'"></Search>
  7. <view class="page-box-bg-fff m-lr20 r-20">
  8. <z-tabs ref="tabs" :list="tabsList"
  9. :active-style="{color:'#10B261',fontWeight:'bold',fontSize:'30rpx'}"
  10. :bar-style="{background:'#10B261'}" :inactive-style="{fontWeight:'bold',fontSize:'28rpx'}"
  11. :current="current" :bar-animate-mode="'worm'" @change="tabsChange" />
  12. </view>
  13. </view>
  14. <EnScroll ref="scroll" :navHeight="108" is_tabHeight @onRefresh="onRefresh"
  15. @onScrollBottom="onScrollBottom">
  16. <TaskItem :type="3" is_bottom></TaskItem>
  17. </EnScroll>
  18. <Tab :tab-index="2"></Tab>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. // 任务列表
  24. import TaskItem from "@/common/task/task-item.vue";
  25. export default {
  26. components: {
  27. TaskItem
  28. },
  29. data() {
  30. return {
  31. current: 0,
  32. tabsList: [{
  33. name: '全部',
  34. disabled: false
  35. }, {
  36. name: '已完成(6)',
  37. dot_color: 'red',
  38. is_dot: true,
  39. disabled: false
  40. }, {
  41. name: '未完成(6)',
  42. dot_color: '#000',
  43. is_dot: true,
  44. disabled: false
  45. }],
  46. }
  47. },
  48. watch: {
  49. },
  50. methods: {
  51. tabsChange(index) {
  52. this.current = index;
  53. },
  54. // 下拉刷新
  55. onRefresh() {
  56. uni.showLoading({
  57. title: '数据加载中'
  58. })
  59. setTimeout(() => {
  60. uni.showToast({
  61. title: '加载完成',
  62. icon: 'none'
  63. })
  64. this.$refs.scroll.onEndPulling()
  65. }, 1000)
  66. console.log("下拉刷新");
  67. },
  68. // 滚动到底部
  69. onScrollBottom() {
  70. uni.showLoading({
  71. title: '数据加载中'
  72. })
  73. setTimeout(() => {
  74. uni.showToast({
  75. title: '加载完成',
  76. icon: 'none'
  77. })
  78. }, 1000)
  79. console.log("到底部了");
  80. },
  81. },
  82. }
  83. </script>
  84. <style lang="scss" scoped>
  85. // .page-box{
  86. // height: 100vh;
  87. // background-image: url("https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/index/index-bg.png?imageMogr2/quality/20");
  88. // background-repeat: no-repeat;
  89. // background-size: 100% auto;
  90. // display: flex;
  91. // flex-direction: column;
  92. // .top-data{
  93. // flex: 1;
  94. // overflow: hidden;
  95. // .top-row{
  96. // height: 680rpx;
  97. // }
  98. // }
  99. // .bottom-data{
  100. // }
  101. // }
  102. </style>