serve-list.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <view>
  3. <view v-for="(item, index) in orderList" :key="index" class="bg-color-white pb-2 wrap mt-2" :class="isMargin?'mx3':''">
  4. <view class="top d-flex j-between border-bottom pt-1 pb-2 a-center">
  5. <view class="d-flex a-center">
  6. <image src="/static/images/time.png" class="top-img"></image>
  7. <view class="ml-2 f-size-28" style="color: #757a94;">2021-05-05</view>
  8. </view>
  9. <view class="d-flex a-center">
  10. <view class="f-size-26 top-state-b">
  11. 状态
  12. </view>
  13. </view>
  14. </view>
  15. <view class="bottom mt-2">
  16. <view class="left one-ellipsis">
  17. <view class="mb-2 f-size-32 f-weight-6 one-ellipsis">名称</view>
  18. </view>
  19. <view class="d-flex j-between a-center">
  20. <text class="text-color-9 f-size-24 ">任务类别:类别</text>
  21. <view class="flex1 d-flex j-end f-size-36" style="color: #FA5445;">¥112</view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. goodsTypeMap: {},
  32. isConsignor: false,
  33. statusMap: {}
  34. };
  35. },
  36. props:{
  37. isMargin:{
  38. type:Boolean,
  39. default:true
  40. },
  41. isShowInfo:{
  42. type:Boolean,
  43. default:true
  44. },
  45. orderList: {
  46. type: Array,
  47. default: ()=>[]
  48. }
  49. },
  50. created(){
  51. },
  52. methods: {
  53. }
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. .wrap {
  58. border: 1px solid #eee;
  59. border-radius: 30rpx;
  60. padding: 30rpx 30rpx;
  61. box-shadow: 2px 2px 2px #eee;
  62. .top {
  63. &-img {
  64. width: 36rpx;
  65. height: 36rpx;
  66. border-radius: 50%;
  67. }
  68. &-state {
  69. color: #fff;
  70. background-color: #ff8905;
  71. border-radius: 20rpx;
  72. padding: 5rpx 20rpx;
  73. }
  74. &-state-b {
  75. color: #fff;
  76. background-color: #73db18;
  77. border-radius: 20rpx;
  78. padding: 5rpx 20rpx;
  79. }
  80. }
  81. .bottom {
  82. &-type {
  83. border-radius: 20rpx;
  84. background: linear-gradient(to right, #ff7956, #f53436);
  85. padding: 3rpx 20rpx;
  86. }
  87. }
  88. }
  89. </style>