index.wxss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. page {
  2. background: #f5f5f5;
  3. height: 100%;
  4. }
  5. .address-container {
  6. display: flex;
  7. flex-direction: column;
  8. align-items: stretch;
  9. padding-bottom: calc(env(safe-area-inset-bottom) + 172rpx);
  10. }
  11. .address-container .address-list {
  12. font-size: 24rpx;
  13. background-color: #ffffff;
  14. -webkit-overflow-scrolling: touch;
  15. }
  16. .address-list .no-address {
  17. width: 750rpx;
  18. padding-top: 30vh;
  19. display: flex;
  20. flex-direction: column;
  21. justify-content: flex-start;
  22. align-items: center;
  23. }
  24. .address-list .no-address__icon {
  25. width: 224rpx;
  26. height: 224rpx;
  27. }
  28. .address-list .no-address__text {
  29. font-size: 28rpx;
  30. line-height: 40rpx;
  31. color: #999999;
  32. margin-top: 24rpx;
  33. }
  34. .address-container .bottom-fixed {
  35. border-top: 1rpx solid #e5e5e5;
  36. position: fixed;
  37. bottom: 0;
  38. left: 0;
  39. right: 0;
  40. z-index: 1000;
  41. background: #fff;
  42. display: flex;
  43. justify-content: center;
  44. flex-direction: column;
  45. align-items: center;
  46. padding: 12rpx 32rpx calc(env(safe-area-inset-bottom) + 12rpx) 32rpx;
  47. }
  48. .address-container .btn-wrap {
  49. width: 100%;
  50. display: flex;
  51. justify-content: space-between;
  52. align-items: center;
  53. font-size: 32rpx;
  54. font-weight: bold;
  55. }
  56. .address-container .btn-wrap .location-btn {
  57. width: 332rpx;
  58. height: 88rpx;
  59. display: flex;
  60. justify-content: center;
  61. align-items: center;
  62. background-color: #ffffff;
  63. color: #333;
  64. position: relative;
  65. }
  66. .address-container .btn-wrap .location-btn::after {
  67. content: '';
  68. position: absolute; /* 把父视图设置为relative,方便定位*/
  69. top: 0;
  70. left: 0;
  71. width: 200%;
  72. height: 200%;
  73. transform: scale(0.5);
  74. transform-origin: 0 0;
  75. box-sizing: border-box;
  76. border-radius: 88rpx;
  77. border: #dddddd 2rpx solid;
  78. }
  79. .address-container .btn-wrap .address-btn {
  80. width: 332rpx;
  81. height: 88rpx;
  82. display: flex;
  83. justify-content: center;
  84. align-items: center;
  85. background-color: #fa4126;
  86. border-radius: 44rpx;
  87. color: #fff;
  88. }
  89. .address-container .btn-wrap .btn-default {
  90. background: #c6c6c6;
  91. }
  92. .address-container .bottom-fixed .footer {
  93. margin-top: 10rpx;
  94. display: inline-block;
  95. width: 100%;
  96. text-align: center;
  97. font-size: 24rpx;
  98. font-weight: 400;
  99. color: #ff2525;
  100. line-height: 60rpx;
  101. height: 60rpx;
  102. }
  103. .address-container .message {
  104. margin-top: 48rpx;
  105. }
  106. .address-container .custom-class {
  107. margin-right: 12rpx;
  108. font-weight: normal;
  109. }