index.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <template>
  2. <div class="price-table">
  3. <ul>
  4. <li class="top">
  5. <div class="box"><span>{{langPurchase.pricelist[0]}}</span></div>
  6. <div class="box"><span>{{langPurchase.pricelist[1]}}</span></div>
  7. <div class="price">
  8. <div class="shang">{{langPurchase.pricelist[2]}}</div>
  9. <div class="xia">
  10. <div>{{langPurchase.pricelist[3]}}</div>
  11. <div>{{langPurchase.pricelist[4]}}</div>
  12. </div>
  13. </div>
  14. </li>
  15. <li class="t-middle">
  16. <div class="box thin"><span style="transform: translateX(0);text-align:center">{{langPurchase.pricelist[5]}}</span></div>
  17. <div class="box thin centerthin"><span>{{langPurchase.pricelist[6]}}</span></div>
  18. <div class="box thin price"><span v-html="langPurchase.pricelist[7]"></span></div>
  19. </li>
  20. <li class="t-bottom">
  21. <div class="box big-box"><span>{{langPurchase.pricelist[8]}}</span></div>
  22. <div class="box big-box big-list">
  23. <div class="thin centerthin"><span>{{langPurchase.pricelist[9]}}</span></div>
  24. <div class="thin centerthin"><span>{{langPurchase.pricelist[10]}}</span></div>
  25. <div class="thin centerthin"><span>{{langPurchase.pricelist[11]}}</span></div>
  26. <div class="thin centerthin"><span>{{langPurchase.pricelist[12]}}</span></div>
  27. </div>
  28. <div class="box big-box long big-list">
  29. <div class="thin"><span>{{langPurchase.pricelist[13+type]}}</span></div>
  30. <div class="thin"><span>{{langPurchase.pricelist[14+type]}}</span></div>
  31. <div class="thin"><span>{{langPurchase.pricelist[15+type]}}</span></div>
  32. <div class="thin"><span>{{langPurchase.pricelist[16+type]}}</span></div>
  33. </div>
  34. <div class="box big-box long big-list">
  35. <div class="thin"><span>{{langPurchase.pricelist[17+type]}}</span></div>
  36. <div class="thin"><span>{{langPurchase.pricelist[18+type]}}</span></div>
  37. <div class="thin"><span>{{langPurchase.pricelist[19+type]}}</span></div>
  38. <div class="thin"><span>{{langPurchase.pricelist[20+type]}}</span></div>
  39. </div>
  40. </li>
  41. <li class="t-sub">
  42. <div class="box thin" ><span>{{langPurchase.pricelist[21]}}</span></div>
  43. </li>
  44. </ul>
  45. </div>
  46. </template>
  47. <script>
  48. import { mapState } from 'vuex'
  49. export default {
  50. props: {
  51. type: {
  52. type: String,
  53. default: ''
  54. }
  55. },
  56. computed: {
  57. ...mapState({
  58. langPurchase: state => state.language.home.purchase,
  59. language: state => state.language.current
  60. })
  61. }
  62. }
  63. </script>
  64. <style lang="scss" scoped>
  65. .price-table {
  66. box-sizing: border-box;
  67. border-top: 1px solid #909090;
  68. border-left: 1px solid #909090;
  69. width: 100%;
  70. margin: 0 auto;
  71. * {
  72. box-sizing: border-box;;
  73. }
  74. .box {
  75. width: 78px;
  76. height: 60px;
  77. line-height: 60px;
  78. display: inline-block;
  79. vertical-align: top;
  80. font-size: 10px;
  81. border-right: 1px solid #909090;
  82. border-bottom: 1px solid #909090;
  83. }
  84. .big-box {
  85. height: auto;
  86. line-height: 46px;
  87. }
  88. .big-list {
  89. div {
  90. border-bottom: 1px solid #909090;
  91. &:last-child {
  92. border-bottom: none;
  93. }
  94. }
  95. }
  96. .thin {
  97. height: 30px;
  98. line-height: 30px;
  99. >span{
  100. width: 100%;
  101. display: inline-block;
  102. text-align: center;
  103. }
  104. }
  105. .centerthin{
  106. >span{
  107. transform:none;
  108. text-align: center;
  109. }
  110. }
  111. .long {
  112. // width: 98px;
  113. flex: 1;
  114. }
  115. .price {
  116. flex: 1;
  117. font-size: 10px;
  118. display: inline-block;
  119. vertical-align: top;
  120. border-right: 1px solid #909090;
  121. span{
  122. transform: none;
  123. text-align: center;
  124. }
  125. .shang {
  126. height: 30px;
  127. line-height: 30px;
  128. border-bottom: 1px solid #909090;
  129. }
  130. .xia {
  131. height: 30px;
  132. line-height: 30px;
  133. display: flex;
  134. border-bottom: 1px solid #909090;
  135. justify-content: space-around;
  136. div {
  137. width: 50%;
  138. &:first-of-type {
  139. border-right: 1px solid #909090;
  140. }
  141. }
  142. }
  143. }
  144. .top {
  145. background: #EBEBEB;
  146. }
  147. .top,
  148. .t-middle,
  149. .t-bottom,
  150. .t-sub {
  151. width: 100%;
  152. font-size: 0;
  153. display: flex;
  154. }
  155. .t-sub{
  156. .box{
  157. width: 100%;
  158. }
  159. .thin{
  160. height: 30px;
  161. span{
  162. text-align: center;
  163. transform: translateX(0)
  164. }
  165. }
  166. }
  167. .t-middle {
  168. > div {
  169. background-color:#EBEBEB;
  170. }
  171. }
  172. }
  173. @media screen and (max-width: 330px) {
  174. .price-table {
  175. width: 293px;
  176. .box {
  177. width: 62px;
  178. height: 52px;
  179. font-size: 10px;
  180. line-height: 52px;
  181. }
  182. .big-box {
  183. height: auto;
  184. line-height: 104px;
  185. }
  186. .thin {
  187. height: 24px;
  188. line-height: 24px;
  189. }
  190. .long {
  191. width: 84px;
  192. }
  193. .price {
  194. font-size: 10px;
  195. width: 168px;
  196. .shang {
  197. height: 26px;
  198. line-height: 26px;
  199. }
  200. .xia {
  201. height: 26px;
  202. line-height: 26px;
  203. }
  204. }
  205. }
  206. }
  207. </style>