orderAddress.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <template name="address">
  2. <view class="address-template clearfix">
  3. <!-- 地址信息 -->
  4. <view class="address-section">
  5. <view class="address-title">收货人信息</view>
  6. <view class="address-content clearfix">
  7. <view class="address-icon">
  8. <text class="iconfont icon-tubiaoshangchuanmoban"></text>
  9. </view>
  10. <view class="address-cen">
  11. <view class="top">
  12. <view class="name">{{orderInfo.receiverName !== undefined ? orderInfo.receiverName : ''}}</view>
  13. <view class="mobile">86-{{orderInfo.receiverPhone !== undefined ? orderInfo.receiverPhone : ''}}</view>
  14. </view>
  15. <view class="address">
  16. <view class="address-text">
  17. 收货地址:
  18. {{orderInfo.receiverProvince !== undefined ? orderInfo.receiverProvince : ''}}
  19. {{orderInfo.receiverCity !== undefined ? orderInfo.receiverCity : ''}}
  20. {{orderInfo.receiverRegion !== undefined ? orderInfo.receiverRegion : ''}}
  21. {{orderInfo.receiverDetailAddress !== undefined ? orderInfo.receiverDetailAddress : ''}}
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="tui-bg-img"></view>
  28. </view>
  29. </template>
  30. <script>
  31. export default{
  32. name:"address",
  33. props:{
  34. orderInfo:{
  35. type:Object
  36. }
  37. },
  38. data() {
  39. return{
  40. initData:''
  41. }
  42. },
  43. created(){
  44. this.initData = this.orderInfo;
  45. },
  46. computed: {
  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. position: relative;
  59. .tui-bg-img {
  60. position: absolute;
  61. width: 100%;
  62. height: 8rpx;
  63. left: 0;
  64. bottom: 0;
  65. background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAAAECAMAAADszM6/AAAAOVBMVEUAAAAVqfH/fp//vWH/vWEVqfH/fp8VqfH/fp//vWEVqfH/fp8VqfH/fp//vWH/vWEVqfH/fp//vWHpE7b6AAAAEHRSTlMA6urqqlVVFRUVq6upqVZUDT4vVAAAAEZJREFUKM/t0CcOACAQRFF6r3v/w6IQJGwyDsPT882IQzQE0E3chToByjG5LwMgLZN3TQATmdypCciBya0cgOT3/h//9PgF49kd+6lTSIIAAAAASUVORK5CYII=") repeat;
  66. }
  67. }
  68. .address-section {
  69. width: 100%;
  70. height: auto;
  71. float: left;
  72. position: relative;
  73. .address-title{
  74. font-size: $font-size-28;
  75. color: $text-color;
  76. line-height: 60rpx;
  77. width: 100%;
  78. padding: 0 20rpx;
  79. font-weight: bold;
  80. }
  81. .address-content {
  82. width: 100%;
  83. height: 174rpx;
  84. box-sizing: border-box;
  85. padding:20rpx;
  86. background: #fff;
  87. }
  88. .address-icon{
  89. width: 70rpx;
  90. height: 70rpx;
  91. background: linear-gradient(90deg,rgba(122,165,250,1) 0%,rgba(87,110,250,1) 100%);
  92. border-radius: 50%;
  93. float: left;
  94. line-height: 70rpx;
  95. margin-top: 20rpx;
  96. text-align: center;
  97. .icon-tubiaoshangchuanmoban {
  98. flex-shrink: 0;
  99. display: flex;
  100. align-items: center;
  101. justify-content: center;
  102. color: #FFFFFF;
  103. font-size: 44rpx;
  104. }
  105. }
  106. .address-cen {
  107. width: 610rpx;
  108. height: auto;
  109. position: relative;
  110. float: left;
  111. padding-left: 20rpx;
  112. .top{
  113. height: 42rpx;
  114. line-height: 42rpx;
  115. text-align: left;
  116. font-size: $font-size-26;
  117. color: $text-color;
  118. padding-bottom: 8rpx;
  119. display: flex;
  120. float: left;
  121. margin-bottom: 10rpx;
  122. .name{
  123. margin-right: 48rpx;
  124. }
  125. .mobile{
  126. margin-right: 40rpx;
  127. }
  128. }
  129. .address {
  130. width: 100%;
  131. height: auto;
  132. float: left;
  133. .address-text{
  134. width: 610rpx;
  135. float: left;
  136. line-height: 40rpx;
  137. font-size: $font-size-26;
  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>