index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <div class="todoIndex">
  3. <div class="todoItem" v-for="item in todoList" @tap.stop="toDetail(item)">
  4. <div class="tagTip">{{ item.tag }}</div>
  5. <div class="todoItemTitle">{{ item.name }}</div>
  6. <div class="submitTime">提交时间:2024-05-21</div>
  7. <div class="submitPerson">提交人:吴凯旋</div>
  8. </div>
  9. </div>
  10. </template>
  11. <script>
  12. export default {
  13. components: {
  14. },
  15. data() {
  16. return {
  17. todoList:[
  18. {name:'2024年01月26日~2024年...',tag:'企业房源预定'},
  19. {name:'空调坏了,不能使用',tag:'报事报修-派单'},
  20. {name:'上月水费不太对,怀疑水表',tag:'报事报修-处理'},
  21. {name:'XXXXXXX企业入库审核',tag:'企业入库审核'},
  22. {name:'2024年01月26日~2024年...',tag:'企业房源预定'},
  23. {name:'XXXXXXX',tag:'资源预约审核'},
  24. ]
  25. };
  26. },
  27. methods:{
  28. toDetail(item) {
  29. if(item.tag === '企业房源预定'){
  30. uni.navigateTo({
  31. url:'/pages/subPackages/todo/predetermineDetail'
  32. })
  33. }else if(item.tag.includes('报事报修')){
  34. uni.navigateTo({
  35. url:'/pages/subPackages/todo/repairAcceptance'
  36. })
  37. }else if(item.tag.includes('资源预约审核')){
  38. uni.navigateTo({
  39. url:'/pages/subPackages/todo/resourceReview'
  40. })
  41. }
  42. }
  43. }
  44. }
  45. </script>
  46. <style lang="scss">
  47. .todoIndex{
  48. .todoItem{
  49. margin-top: 24rpx;
  50. width: 686rpx;
  51. height: 212rpx;
  52. padding: 32rpx 32rpx;
  53. position: relative;
  54. background: white;
  55. border-radius: 16rpx;
  56. box-sizing: border-box;
  57. margin-left: 32rpx;
  58. .tagTip{
  59. position: absolute;
  60. right: 0;
  61. top: 0;
  62. width: 220rpx;
  63. height: 56rpx;
  64. color: rgba(3, 101, 249, 1);
  65. font-size: 26rpx;
  66. display: flex;
  67. align-items: center;
  68. justify-content: center;
  69. background: url("https://www.idea-co-sf.com/gardenProduct/image/bj02.png") no-repeat;
  70. background-size: 100%;
  71. }
  72. .todoItemTitle{
  73. width: 400rpx;
  74. overflow: hidden;
  75. white-space: nowrap;
  76. text-overflow: ellipsis;
  77. color: rgba(34, 34, 34, 1);
  78. font-size: 32rpx;
  79. line-height: 38rpx;
  80. font-weight: 600;
  81. }
  82. .submitTime{
  83. color: rgba(102, 102, 102, 1);
  84. font-size: 28rpx;
  85. margin-top: 24rpx;
  86. line-height: 32rpx;
  87. }
  88. .submitPerson{
  89. color: rgba(102, 102, 102, 1);
  90. font-size: 28rpx;
  91. margin-top: 16rpx;
  92. line-height: 32rpx;
  93. }
  94. }
  95. }
  96. </style>