orderAddress.vue 3.4 KB

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