index.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view class="detail">
  3. <view>
  4. <view class="name">
  5. {{ itemInfo.type_name }}
  6. </view>
  7. <view class="time">
  8. {{ itemInfo.created_at }}
  9. </view>
  10. <view
  11. class=""
  12. v-if="withBool && itemInfo.status == 'refused'"
  13. style="font-size: 24rpx; color: #f83224; margin-top: 12rpx"
  14. >
  15. {{ itemInfo.remark }}
  16. </view>
  17. </view>
  18. <view class="reason">
  19. <view style="font-weight: 600">
  20. {{ itemInfo.amount }}
  21. </view>
  22. <view class="auditing" v-if="withBool">
  23. <text
  24. style="font-size: 24rpx; color: #f83224"
  25. v-if="itemInfo.status == 'refused'"
  26. >审核驳回</text
  27. >
  28. <text
  29. style="font-size: 24rpx; color: rgba(34, 34, 34, 0.6)"
  30. v-else-if="itemInfo.status == 'apply'"
  31. >审核中</text
  32. >
  33. <text style="font-size: 24rpx; color: #33bd20" v-else>审核通过</text>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. props: {
  41. itemInfo: {
  42. type: Object,
  43. default: {},
  44. },
  45. withBool: {
  46. type: Boolean,
  47. default: false,
  48. },
  49. },
  50. };
  51. </script>
  52. <style lang="scss">
  53. .detail {
  54. display: flex;
  55. justify-content: space-between;
  56. align-items: center;
  57. // height: 140rpx;
  58. padding: 24rpx 0;
  59. // border-top: 2rpx solid rgba(151, 151, 151, 0.2);
  60. border-bottom: 2rpx solid rgba(151, 151, 151, 0.2);
  61. .name {
  62. font-size: 30rpx;
  63. color: #222;
  64. }
  65. .time {
  66. font-size: 24rpx;
  67. color: #222;
  68. opacity: 0.6;
  69. margin-top: 16rpx;
  70. }
  71. .reason {
  72. display: flex;
  73. flex-direction: column;
  74. justify-content: center;
  75. align-items: flex-end;
  76. }
  77. }
  78. </style>