dataList.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. </view>
  6. <view class="unit-body">
  7. <view style="display: flex;justify-content: center;align-items:center;">
  8. <uni-icons type="settings" size="20"></uni-icons>
  9. <text style="margin-left: 10upx;">{{ info.status }}</text>
  10. </view>
  11. <text style="color: gray;">{{ parseTime(info.time) }}</text>
  12. </view>
  13. <view class="unit-foot">
  14. <text style="color: gray;">{{ initIndex == 2 ? '当前处理人' : '发起人' }}</text>
  15. <text style="font-weight: bold;">{{ info.nickname }}</text>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. props: {
  22. info: {
  23. type: Object
  24. },
  25. initIndex: {
  26. type: Number
  27. }
  28. },
  29. data() {
  30. return {
  31. unitModel1: [
  32. { prop: "", label: "匹配商铺数" },
  33. { prop: "", label: "已报价商铺数" },
  34. { prop: "", label: "最新报价", class: "color-red", isMoney: true },
  35. { prop: "", label: "商品报价", class: "color-999", isMoney: true },
  36. { prop: "", label: "税点", class: "color-999" },
  37. { prop: "", label: "税费", class: "color-999", isMoney: true },
  38. { prop: "", label: "运费", class: "color-999", isMoney: true },
  39. ]
  40. }
  41. },
  42. methods: {
  43. doDel() {
  44. this.$store.commit("switch_loading")
  45. }
  46. },
  47. computed: {
  48. },
  49. created() {
  50. },
  51. }
  52. </script>
  53. <style lang='scss'>
  54. .my-unit {
  55. margin: 20upx 10upx;
  56. background-color: #ffffff;
  57. font-size: 28upx;
  58. transform: all 1s;
  59. border-radius: 10upx;
  60. box-shadow: rgba(0, 0, 0, 0.08) 0px 0px 3;
  61. .unit-head {
  62. padding: 20upx 20upx 10upx 20upx;
  63. /* height: 80upx; */
  64. box-sizing: border-box;
  65. /* border-bottom: 2upx solid #f5f5f5; */
  66. }
  67. .unit-body {
  68. padding: 0 20upx;
  69. display: flex;
  70. flex-wrap: wrap;
  71. justify-content: space-between;
  72. align-items: center;
  73. text {
  74. font-size: 20upx;
  75. line-height: 55upx;
  76. }
  77. }
  78. .unit-foot {
  79. height: 88upx;
  80. padding: 0 20upx;
  81. border-top: 2upx solid #f5f5f5;
  82. border-bottom: none;
  83. line-height: 88upx;
  84. display: flex;
  85. flex-wrap: wrap;
  86. text {
  87. width: 30%;
  88. }
  89. }
  90. }
  91. </style>