cm-seller-address.vue 3.0 KB

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