bid_record.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <view class="wrapper">
  3. <view>
  4. <view class="font4 bold color-1">出价记录</view>
  5. <view v-if="data && data.length > 0">
  6. <view v-for="item in data" :key="item.userId" class="cell flex-align marginT10">
  7. <image :src="item.avatar" class="avatar"/>
  8. <view class="flex1 marginX10 color-2">{{item.nickname}}</view>
  9. <view class="color-money">出价 ¥{{item.bidPrice}}</view>
  10. </view>
  11. </view>
  12. <empty v-else :top="0"/>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. import empty from '@/components/empty'
  18. export default {
  19. components: { empty },
  20. props: {
  21. data: Array
  22. }
  23. }
  24. </script>
  25. <style lang="scss" scoped>
  26. .wrapper {
  27. margin-top: 20rpx;
  28. background: #fff;
  29. border-radius: 20rpx;
  30. padding: 36rpx 28rpx;
  31. .cell {
  32. .avatar {
  33. width: 52rpx;
  34. height: 52rpx;
  35. border-radius: 26rpx;
  36. }
  37. }
  38. }
  39. </style>
  40. </style>