You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.1 KiB

  1. <template>
  2. <view class="service-address-card">
  3. <view class="card-title">
  4. <text>服务地址</text>
  5. </view>
  6. <view class="address-content">
  7. <view class="address-text">{{address.address}}</view>
  8. <view class="contact-text">{{address.contact}}</view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. props: {
  15. address: {
  16. type: Object,
  17. default: () => ({
  18. address: '',
  19. contact: ''
  20. })
  21. }
  22. }
  23. }
  24. </script>
  25. <style lang="scss" scoped>
  26. .service-address-card {
  27. background-color: #FFFFFF;
  28. border-radius: 20rpx;
  29. padding: 30rpx;
  30. margin-bottom: 20rpx;
  31. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  32. }
  33. .card-title {
  34. font-size: 32rpx;
  35. font-weight: bold;
  36. color: #333;
  37. margin-bottom: 20rpx;
  38. display: flex;
  39. align-items: center;
  40. &::before {
  41. content: '';
  42. display: inline-block;
  43. width: 8rpx;
  44. height: 32rpx;
  45. background-color: #FFAA48;
  46. margin-right: 16rpx;
  47. border-radius: 4rpx;
  48. }
  49. }
  50. .address-content {
  51. padding: 20rpx;
  52. border-radius: 10rpx;
  53. }
  54. .address-text {
  55. font-size: 28rpx;
  56. color: #333;
  57. margin-bottom: 10rpx;
  58. }
  59. .contact-text {
  60. font-size: 26rpx;
  61. color: #666;
  62. }
  63. </style>