index.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. ]
  24. };
  25. },
  26. methods:{
  27. toDetail(item) {
  28. if(item.tag === '企业房源预定'){
  29. uni.navigateTo({
  30. url:'/pages/subPackages/todo/predetermineDetail'
  31. })
  32. }
  33. }
  34. }
  35. }
  36. </script>
  37. <style lang="scss">
  38. .todoIndex{
  39. .todoItem{
  40. margin-top: 24rpx;
  41. width: 686rpx;
  42. height: 212rpx;
  43. padding: 32rpx 32rpx;
  44. position: relative;
  45. background: white;
  46. border-radius: 16rpx;
  47. box-sizing: border-box;
  48. margin-left: 32rpx;
  49. .tagTip{
  50. position: absolute;
  51. right: 0;
  52. top: 0;
  53. width: 220rpx;
  54. height: 56rpx;
  55. color: rgba(3, 101, 249, 1);
  56. font-size: 26rpx;
  57. display: flex;
  58. align-items: center;
  59. justify-content: center;
  60. background: url("https://www.idea-co-sf.com/gardenProduct/image/bj02.png") no-repeat;
  61. background-size: 100%;
  62. }
  63. .todoItemTitle{
  64. width: 400rpx;
  65. overflow: hidden;
  66. white-space: nowrap;
  67. text-overflow: ellipsis;
  68. color: rgba(34, 34, 34, 1);
  69. font-size: 32rpx;
  70. line-height: 38rpx;
  71. font-weight: 600;
  72. }
  73. .submitTime{
  74. color: rgba(102, 102, 102, 1);
  75. font-size: 28rpx;
  76. margin-top: 24rpx;
  77. line-height: 32rpx;
  78. }
  79. .submitPerson{
  80. color: rgba(102, 102, 102, 1);
  81. font-size: 28rpx;
  82. margin-top: 16rpx;
  83. line-height: 32rpx;
  84. }
  85. }
  86. }
  87. </style>