task.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view class="total-page page_env page-box">
  3. <Nav :title="'任务'" :genre="1" :back="false" :fixedHeight="105"></Nav>
  4. <view class="task-tabs" :style="{top:`${$tools.topHeight()}px`}">
  5. <Search :placeholder="'贷款人姓名或电话'"></Search>
  6. <z-tabs ref="tabs" :list="tabsList" :active-style="{color:'#10B261',fontWeight:'bold',fontSize:'30rpx'}"
  7. :bar-style="{background:'#10B261'}" :inactive-style="{fontWeight:'bold',fontSize:'28rpx'}"
  8. :current="current" :bar-animate-mode="'worm'" @change="tabsChange" />
  9. </view>
  10. <!-- <EnButton is_both></EnButton> -->
  11. <TaskItem :type="1"></TaskItem>
  12. <Tab :tab-index="1"></Tab>
  13. </view>
  14. </template>
  15. <script>
  16. // 任务列表
  17. import TaskItem from "@/common/task/task-item.vue";
  18. export default {
  19. components: {
  20. TaskItem
  21. },
  22. data() {
  23. return {
  24. current: 0,
  25. tabsList: [{
  26. name: '全部',
  27. dot_color: 'red',
  28. disabled: false
  29. }, {
  30. name: '新进',
  31. dot_color: 'yellow',
  32. disabled: false
  33. }, {
  34. name: '待办',
  35. dot_color: '',
  36. disabled: false
  37. }, {
  38. name: '完成',
  39. dot_color: '',
  40. disabled: false
  41. }, {
  42. name: '拒绝',
  43. dot_color: '',
  44. disabled: false
  45. }],
  46. }
  47. },
  48. watch: {
  49. },
  50. methods: {
  51. tabsChange(index) {
  52. this.current = index;
  53. },
  54. },
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. </style>