x-orderCard.vue 869 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <!-- 运单详情表单 -->
  3. <view class="card_ordercard">
  4. <view class="title_detail"><span>姓名:</span>{{list.name}}</view>
  5. <view class="title_detail"><span>联系方式:</span>{{list.phone}}</view>
  6. <view class="title_detail" v-if="deliverer"><span>地址:</span>{{list.address}}</view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. name: 'x-orderCard',
  12. props: {
  13. list: {
  14. type: Object,
  15. default () {
  16. return {}
  17. }
  18. },
  19. // 配送人是否显示地址
  20. deliverer: {
  21. type: Boolean,
  22. default () {
  23. return true
  24. }
  25. }
  26. },
  27. data() {
  28. return {
  29. }
  30. }
  31. }
  32. </script>
  33. <style lang="scss">
  34. .card_ordercard {
  35. border-radius: 10rpx;
  36. padding: 20rpx;
  37. background-color: #fff;
  38. }
  39. .title_detail {
  40. margin: 10rpx 0rpx;
  41. span {
  42. font-size: 28rpx;
  43. color: #909399;
  44. margin-right: 10rpx;
  45. }
  46. }
  47. </style>