orderAddress.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template name="address">
  2. <view class="address-template">
  3. <!-- 地址信息 -->
  4. <view class="address-section">
  5. <view class="address-content">
  6. <view class="address-cen">
  7. <view class="top">
  8. <view class="name">{{addressData.shouHuoRen !== undefined ? addressData.shouHuoRen : ''}}</view>
  9. <view class="mobile">{{addressData.mobile !== undefined ? addressData.mobile : ''}}</view>
  10. </view>
  11. <view class="address">
  12. <view class="address-icon">
  13. <text class="iconfont icon-shouhuodizhi"></text>
  14. </view>
  15. <view class="address-text">
  16. 收货地址:
  17. {{addressData.province !== undefined ? addressData.province : ''}}
  18. {{addressData.city !== undefined ? addressData.city : ''}}
  19. {{addressData.town !== undefined ? addressData.town : ''}}
  20. {{addressData.address !== undefined ? addressData.address : ''}}
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <image src="../../../static/temp/line@3x.png" mode=""></image>
  27. </view>
  28. </template>
  29. <script>
  30. export default{
  31. name:"address",
  32. props:{
  33. addressData:{
  34. type:Object
  35. }
  36. },
  37. data() {
  38. return{
  39. initData:''
  40. }
  41. },
  42. created(){
  43. this.initData = this.addressData;
  44. },
  45. computed: {
  46. },
  47. methods:{
  48. }
  49. }
  50. </script>
  51. <style lang="scss">
  52. .address-template{
  53. width: 100%;
  54. height: auto;
  55. background: #FFFFFF;
  56. border-top: 1px solid #F8F8F8;
  57. image{
  58. float: left;
  59. width: 100%;
  60. height: 16rpx;
  61. }
  62. }
  63. .address-section {
  64. width: 100%;
  65. height: auto;
  66. float: left;
  67. position: relative;
  68. .address-empty{
  69. width: 100%;
  70. height: 84rpx;
  71. line-height: 84rpx;
  72. color: $color-system;
  73. text-align: center;
  74. font-size: $font-size-26;
  75. font-weight: bold;
  76. background: #fff;
  77. float: left;
  78. .icon-tianjiadizhi{
  79. font-size: 30rpx;
  80. margin: 0 8rpx;
  81. }
  82. }
  83. .address-content {
  84. display: flex;
  85. align-items: center;
  86. padding:20rpx 24rpx;
  87. background: #fff;
  88. }
  89. .icon-shouhuodizhi {
  90. flex-shrink: 0;
  91. display: flex;
  92. align-items: center;
  93. justify-content: center;
  94. width: 40rpx;
  95. color: $color-system;
  96. font-size: 46rpx;
  97. margin-right: 10rpx;
  98. }
  99. .address-cen {
  100. width: 100%;
  101. height: auto;
  102. position: relative;
  103. .top{
  104. padding-left: 50rpx;
  105. height: 42rpx;
  106. line-height: 42rpx;
  107. text-align: left;
  108. font-size: $font-size-30;
  109. color: $text-color;
  110. padding-bottom: 8rpx;
  111. display: flex;
  112. float: left;
  113. .name{
  114. font-weight: bold;
  115. margin-right: 48rpx;
  116. }
  117. .mobile{
  118. margin-right: 40rpx;
  119. font-weight: bold;
  120. }
  121. }
  122. .address {
  123. width: 100%;
  124. height: auto;
  125. float: left;
  126. .address-icon{
  127. width: 40rpx;
  128. height: auto;
  129. float: left;
  130. line-height: 40rpx;
  131. }
  132. .address-text{
  133. width: 650rpx;
  134. padding-left: 10rpx;
  135. float: left;
  136. line-height: 40rpx;
  137. font-size: $font-size-28;
  138. color: $text-color;
  139. text-align: left;
  140. -o-text-overflow: ellipsis;
  141. text-overflow: ellipsis;
  142. display: -webkit-box;
  143. word-break: break-all;
  144. -webkit-box-orient: vertical;
  145. -webkit-line-clamp: 2;
  146. overflow: hidden;
  147. }
  148. }
  149. }
  150. .icon-xiayibu {
  151. font-size: 32rpx;
  152. color: $text-color;
  153. margin-right: 30rpx;
  154. }
  155. .a-bg {
  156. position: absolute;
  157. left: 0;
  158. bottom: 0;
  159. display: block;
  160. width: 100%;
  161. height: 5rpx;
  162. }
  163. }
  164. </style>