loan.vue 2.4 KB

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