index.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <div class="i-layout">
  3. <div class="address-con">
  4. <createInvoice class="address-scon" />
  5. </div>
  6. </div>
  7. </template>
  8. <script>
  9. import { mapState } from 'vuex'
  10. import invoices from '@/components/invoices'
  11. import createInvoice from '@/components/createInvoice'
  12. export default {
  13. components: {
  14. invoices,
  15. createInvoice
  16. },
  17. data () {
  18. return {
  19. }
  20. },
  21. computed: {
  22. ...mapState({
  23. address: state => state.user.address || {}
  24. })
  25. }
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. .i-layout{
  30. margin-top: 10px;
  31. .address-input-con{
  32. padding: 16px 0 0;
  33. font-size: 12px;
  34. line-height: 1.5;
  35. color: rgba(0, 0, 0, 0.65);
  36. .address-input-item{
  37. display: flex;
  38. margin-bottom:8px;
  39. .address-sub{
  40. width: 100%;
  41. .top-title{
  42. overflow: hidden;
  43. text-overflow: ellipsis;
  44. white-space: nowrap;
  45. color: rgba(0, 0, 0, 0.85);
  46. padding: 0 0 8px;
  47. margin: 0;
  48. display: block;
  49. text-align: left;
  50. line-height: 1.5;
  51. &::before{
  52. display: inline-block;
  53. margin-right: 4px;
  54. content: "*";
  55. font-family: SimSun;
  56. line-height: 1;
  57. font-size: 12px;
  58. color: #f04134;
  59. }
  60. }
  61. }
  62. .address-name,.prov-name{
  63. width: 33.33%;
  64. padding-right:4px;
  65. flex-shrink: 0;
  66. }
  67. .prov-name{
  68. width: 50%;
  69. }
  70. .address-phone,.city-name{
  71. flex: auto;
  72. }
  73. }
  74. .bc-item{
  75. padding: 16px;
  76. margin: 8px 0;
  77. background-size: 18px 32px;
  78. background-repeat: no-repeat;
  79. background-position: left 16px top 16px;
  80. border: 1px solid #1fe4dc;
  81. position: relative;
  82. background-color: #f6f9ff;
  83. overflow-wrap: break-word;
  84. .bc-contact{
  85. font-size: 12px;
  86. color: rgba(0,0,0,.7);
  87. line-height: 18px;
  88. }
  89. .bc-locotion{
  90. font-size: 10px;
  91. color: rgba(0,0,0,.45);
  92. line-height: 12px;
  93. }
  94. .bc-edit{
  95. position: absolute;
  96. top: 16px;
  97. right: 16px;
  98. font-size: 12px;
  99. color: rgba(0,0,0,.7);
  100. line-height: 18px;
  101. }
  102. }
  103. .p-dec{
  104. line-height:32px;
  105. margin-bottom: 8px;
  106. }
  107. }
  108. .address-con{
  109. .sub-title{
  110. font-size: 14px;
  111. line-height: 21px;
  112. font-weight: 700;
  113. padding: 13px 16px;
  114. border-bottom: 1px solid #e9e9e9;
  115. display: flex;
  116. justify-content: space-between;
  117. align-items: center;
  118. }
  119. .address-scon{
  120. }
  121. }
  122. }
  123. </style>