orderAddress.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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-shouhuodizhi"></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. // border-top: 1px solid #F8F8F8;
  58. image{
  59. float: left;
  60. width: 100%;
  61. height: 6rpx;
  62. }
  63. }
  64. .address-section {
  65. width: 100%;
  66. height: auto;
  67. float: left;
  68. position: relative;
  69. .address-empty{
  70. width: 100%;
  71. height: 84rpx;
  72. line-height: 84rpx;
  73. color: $color-system;
  74. text-align: center;
  75. font-size: $font-size-26;
  76. font-weight: bold;
  77. background: #fff;
  78. float: left;
  79. .icon-tianjiadizhi{
  80. font-size: 30rpx;
  81. margin: 0 8rpx;
  82. }
  83. }
  84. .address-content {
  85. display: flex;
  86. align-items: center;
  87. padding:20rpx 24rpx;
  88. background: #fff;
  89. }
  90. .icon-shouhuodizhi {
  91. flex-shrink: 0;
  92. display: flex;
  93. align-items: center;
  94. justify-content: center;
  95. width: 40rpx;
  96. color: $color-system;
  97. font-size: 46rpx;
  98. margin-right: 10rpx;
  99. }
  100. .address-cen {
  101. width: 100%;
  102. height: auto;
  103. position: relative;
  104. .top{
  105. padding-left: 50rpx;
  106. height: 42rpx;
  107. line-height: 42rpx;
  108. text-align: left;
  109. font-size: $font-size-30;
  110. color: $text-color;
  111. padding-bottom: 8rpx;
  112. display: flex;
  113. float: left;
  114. .name{
  115. margin-right: 48rpx;
  116. }
  117. .mobile{
  118. margin-right: 40rpx;
  119. }
  120. }
  121. .address {
  122. width: 100%;
  123. height: auto;
  124. float: left;
  125. .address-icon{
  126. width: 40rpx;
  127. height: auto;
  128. float: left;
  129. line-height: 40rpx;
  130. }
  131. .address-text{
  132. width: 650rpx;
  133. padding-left: 10rpx;
  134. float: left;
  135. line-height: 40rpx;
  136. font-size: $font-size-28;
  137. color: #666666;
  138. text-align: left;
  139. -o-text-overflow: ellipsis;
  140. text-overflow: ellipsis;
  141. display: -webkit-box;
  142. word-break: break-all;
  143. -webkit-box-orient: vertical;
  144. -webkit-line-clamp: 2;
  145. overflow: hidden;
  146. }
  147. }
  148. }
  149. .icon-xiayibu {
  150. font-size: 32rpx;
  151. color: $text-color;
  152. margin-right: 30rpx;
  153. }
  154. .a-bg {
  155. position: absolute;
  156. left: 0;
  157. bottom: 0;
  158. display: block;
  159. width: 100%;
  160. height: 5rpx;
  161. }
  162. }
  163. </style>