index.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. }else if(item.tag.includes('企业入库审核')){
  42. uni.navigateTo({
  43. url:'/pages/subPackages/todo/inventoryReview'
  44. })
  45. }
  46. }
  47. }
  48. }
  49. </script>
  50. <style lang="scss">
  51. .todoIndex{
  52. .todoItem{
  53. margin-top: 24rpx;
  54. width: 686rpx;
  55. height: 212rpx;
  56. padding: 32rpx 32rpx;
  57. position: relative;
  58. background: white;
  59. border-radius: 16rpx;
  60. box-sizing: border-box;
  61. margin-left: 32rpx;
  62. .tagTip{
  63. position: absolute;
  64. right: 0;
  65. top: 0;
  66. width: 220rpx;
  67. height: 56rpx;
  68. color: rgba(3, 101, 249, 1);
  69. font-size: 26rpx;
  70. display: flex;
  71. align-items: center;
  72. justify-content: center;
  73. background: url("https://www.idea-co-sf.com/gardenProduct/image/bj02.png") no-repeat;
  74. background-size: 100%;
  75. }
  76. .todoItemTitle{
  77. width: 400rpx;
  78. overflow: hidden;
  79. white-space: nowrap;
  80. text-overflow: ellipsis;
  81. color: rgba(34, 34, 34, 1);
  82. font-size: 32rpx;
  83. line-height: 38rpx;
  84. font-weight: 600;
  85. }
  86. .submitTime{
  87. color: rgba(102, 102, 102, 1);
  88. font-size: 28rpx;
  89. margin-top: 24rpx;
  90. line-height: 32rpx;
  91. }
  92. .submitPerson{
  93. color: rgba(102, 102, 102, 1);
  94. font-size: 28rpx;
  95. margin-top: 16rpx;
  96. line-height: 32rpx;
  97. }
  98. }
  99. }
  100. </style>