AddressInfo.vue 1021 B

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