message.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view class="total-page page-box">
  3. <Nav :title="'消息'" :genre="1" :fixedHeight="50"></Nav>
  4. <view class="task-tabs" :style="{top:`${$tools.topHeight()}px`}">
  5. <z-tabs ref="tabs" :list="tabsList" :active-style="{color:'#10B261',fontWeight:'bold',fontSize:'30rpx'}"
  6. :bar-style="{background:'#10B261'}" :inactive-style="{fontWeight:'bold',fontSize:'28rpx'}"
  7. :current="current" :bar-animate-mode="'worm'" @change="tabsChange" />
  8. </view>
  9. <view class="task-body m-20">
  10. <view class="row-c page-box-bg-fff m-b20 r-30 p-30 box-shadow-197" v-for="(item,index) in 30" :key="index">
  11. <image class="wh-80" :src="getLeftImg(index)" mode=""></image>
  12. <view class="flex m-l20">
  13. <view class="row-justify-sb center flex">
  14. <text class="text-color-333 sys-weight-400 size-30">您有新的可执行任务</text>
  15. <image class="wh-30 m-l16" style="margin-top: 4rpx;" src="/static/img/task/task-phone.png"
  16. mode=""></image>
  17. </view>
  18. <view class="row-justify-sb center m-t10">
  19. <text class="size-26 text-color-666">垫资还款</text>
  20. <text class="size-24 text-color-999">2024/12/24用款</text>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="content-row sys-list-background-color"></view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. // 任务列表
  30. import TaskItem from "@/common/task/task-item.vue";
  31. export default {
  32. components: {
  33. TaskItem
  34. },
  35. data() {
  36. return {
  37. current: 0,
  38. tabsList: [{
  39. name: '全部(12)',
  40. // 可以禁用某个item
  41. is_dot: true,
  42. dot_color: 'red',
  43. disabled: false
  44. }, {
  45. name: '未读(15)',
  46. // 可以禁用某个item
  47. is_dot: true,
  48. dot_color: 'yellow',
  49. disabled: false
  50. }, {
  51. name: '已读',
  52. // 可以禁用某个item
  53. is_dot: false,
  54. dot_color: '',
  55. disabled: false
  56. }],
  57. leftImg: ['task-house', 'task-business', 'task-repayment'],
  58. iconList: ['task-audit', 'task-do', 'task-stay']
  59. }
  60. },
  61. watch: {
  62. },
  63. methods: {
  64. tabsChange(index) {
  65. this.current = index;
  66. },
  67. getLeftImg(index) {
  68. return `/static/img/task/${this.leftImg[0]}.png`
  69. },
  70. },
  71. }
  72. </script>
  73. <style lang="scss" scoped>
  74. </style>