orderAddress.vue 3.3 KB

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