AddressInfo.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view class="address-info">
  3. <view class="name-phone">
  4. <text class="name">{{ address.contactName }}</text>
  5. <text class="phone">{{ address.contactPhone }}</text>
  6. </view>
  7. <view class="address-detail">
  8. {{ address.provinceName }}{{ address.cityName }}{{ address.countyName }}{{ address.detailedAddress }}</view>
  9. </view>
  10. </template>
  11. <script setup>
  12. defineProps({
  13. address: {
  14. type: Object,
  15. required: true
  16. },
  17. isDefault: {
  18. type: Boolean,
  19. default: false
  20. },
  21. isSowAction: {
  22. type: Boolean,
  23. default: true
  24. }
  25. })
  26. </script>
  27. <style scoped lang="less">
  28. .address-info {
  29. display: flex;
  30. flex-direction: column;
  31. margin-bottom: 16rpx;
  32. .name-phone {
  33. display: flex;
  34. align-items: center;
  35. margin-bottom: 16rpx;
  36. }
  37. .name {
  38. height: 48rpx;
  39. font-size: 32rpx;
  40. font-weight: bold;
  41. color: #333;
  42. margin-right: 30rpx;
  43. line-height: 48rpx;
  44. }
  45. .phone {
  46. height: 48rpx;
  47. font-size: 32rpx;
  48. font-weight: bold;
  49. color: #333;
  50. line-height: 48rpx;
  51. }
  52. .address-detail {
  53. font-size: 28rpx;
  54. color: #666;
  55. line-height: 44rpx;
  56. }
  57. }
  58. </style>