dataList.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <view class='my-unit'>
  3. <view class="unit-head">
  4. <text style="font-weight: bold;font-size: 26upx;">{{ info.title }}</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.status }}</text>
  9. <text class="uni-ellipsis-1">详细描述:{{ info.status }}</text>
  10. </view>
  11. <view class="unit-foot">
  12. <text>{{ initIndex == 2 ? '当前处理人' : '发起人' }}</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. unitModel1: [
  30. { prop: "", label: "匹配商铺数" },
  31. { prop: "", label: "已报价商铺数" },
  32. { prop: "", label: "最新报价", class: "color-red", isMoney: true },
  33. { prop: "", label: "商品报价", class: "color-999", isMoney: true },
  34. { prop: "", label: "税点", class: "color-999" },
  35. { prop: "", label: "税费", class: "color-999", isMoney: true },
  36. { prop: "", label: "运费", class: "color-999", isMoney: true },
  37. ]
  38. }
  39. },
  40. methods: {
  41. doDel() {
  42. this.$store.commit("switch_loading")
  43. }
  44. },
  45. computed: {
  46. },
  47. created() {
  48. },
  49. }
  50. </script>
  51. <style lang='scss'>
  52. .my-unit {
  53. margin: 20upx 10upx;
  54. background-color: #ffffff;
  55. font-size: 28upx;
  56. transform: all 1s;
  57. border-radius: 10upx;
  58. box-shadow: rgba(0, 0, 0, 0.08) 0px 0px 3;
  59. .unit-head {
  60. font-size: 26upx;
  61. padding: 20upx 20upx 10upx 20upx;
  62. display: flex;
  63. flex-wrap: wrap;
  64. justify-content: space-between;
  65. align-items: center;
  66. }
  67. .unit-body {
  68. padding: 0 20upx;
  69. color: gray;
  70. display: flex;
  71. flex-direction: column;
  72. font-size: 22upx;
  73. line-height: 30upx;
  74. }
  75. .unit-foot {
  76. font-size: 24upx;
  77. height: 66upx;
  78. padding: 0 20upx;
  79. // border-top: 2upx solid #f5f5f5;
  80. border-bottom: none;
  81. line-height: 66upx;
  82. display: flex;
  83. flex-wrap: wrap;
  84. justify-content: space-between;
  85. align-items: center;
  86. font-weight: bold;
  87. }
  88. }
  89. .uni-ellipsis-1 {
  90. /* #ifndef APP-NVUE */
  91. overflow: hidden;
  92. white-space: nowrap;
  93. text-overflow: ellipsis;
  94. /* #endif */
  95. /* #ifdef APP-NVUE */
  96. lines: 1;
  97. text-overflow:ellipsis;
  98. /* #endif */
  99. }
  100. </style>