dataList.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view class='my-unit' @click="childClick">
  3. <view class="unit-head">
  4. <text style="font-weight: bold;font-size: 26upx;">{{ info.oaType }}</text>
  5. <text style="color: gray;font-size: 20upx;">{{ parseTime(info.time) }}</text>
  6. </view>
  7. <view class="unit-body">
  8. <text class="uni-ellipsis-1">预期供应商:{{ info.title }}</text>
  9. <!-- <text class="uni-ellipsis-1">领用日期:{{ info.remarks }}</text> -->
  10. </view>
  11. <view class="unit-foot">
  12. <text>{{ info.status }}</text>
  13. <text style="color: orange;">{{ info.nickname }}</text>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. props: {
  20. info: {
  21. type: Object
  22. },
  23. initIndex: {
  24. type: Number
  25. }
  26. },
  27. data() {
  28. return {}
  29. },
  30. methods: {
  31. childClick(){
  32. this.$emit('faClick', this.info)
  33. }
  34. },
  35. computed: {
  36. },
  37. created() {
  38. },
  39. }
  40. </script>
  41. <style lang='scss'>
  42. .my-unit {
  43. margin: 20upx 10upx;
  44. background-color: #ffffff;
  45. font-size: 28upx;
  46. transform: all 1s;
  47. border-radius: 10upx;
  48. box-shadow: rgba(0, 0, 0, 0.08) 0px 0px 3;
  49. .unit-head {
  50. font-size: 26upx;
  51. padding: 20upx 20upx 10upx 20upx;
  52. display: flex;
  53. flex-wrap: wrap;
  54. justify-content: space-between;
  55. align-items: center;
  56. }
  57. .unit-body {
  58. padding: 0 20upx;
  59. color: gray;
  60. display: flex;
  61. flex-direction: column;
  62. font-size: 22upx;
  63. line-height: 30upx;
  64. }
  65. .unit-foot {
  66. font-size: 24upx;
  67. height: 66upx;
  68. padding: 0 20upx;
  69. // border-top: 2upx solid #f5f5f5;
  70. border-bottom: none;
  71. line-height: 66upx;
  72. display: flex;
  73. flex-wrap: wrap;
  74. justify-content: space-between;
  75. align-items: center;
  76. font-weight: bold;
  77. }
  78. }
  79. .uni-ellipsis-1 {
  80. /* #ifndef APP-NVUE */
  81. overflow: hidden;
  82. white-space: nowrap;
  83. text-overflow: ellipsis;
  84. /* #endif */
  85. /* #ifdef APP-NVUE */
  86. lines: 1;
  87. text-overflow:ellipsis;
  88. /* #endif */
  89. }
  90. </style>