index.vue 3.0 KB

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