index.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <div class="pricedetail-layout">
  3. <div class="plate">
  4. <template v-if="language!=='en'">
  5. <p class="b-title">{{langPurchase.pricename}}</p>
  6. <priceTable style="margin-bottom:20px;" />
  7. </template>
  8. <div class="b-title">{{langPurchase.pricename1}}</div>
  9. <priceTable :type="'hw'" />
  10. <ul class="qa-con">
  11. <li>
  12. <p>{{langPurchase.directions}}</p>
  13. </li>
  14. <li v-for="(item,i) in langPurchase.qa" :key="i">
  15. <p>{{item.q}}</p>
  16. <p v-html="item.a"></p>
  17. </li>
  18. </ul>
  19. </div>
  20. </div>
  21. </template>
  22. <script>
  23. import priceTable from '@/components/priceTable'
  24. import { mapState } from 'vuex'
  25. export default {
  26. components: {
  27. priceTable
  28. },
  29. computed: {
  30. ...mapState({
  31. langPurchase: state => state.language.home.purchase,
  32. language: state => state.language.current
  33. })
  34. },
  35. data () {
  36. return {
  37. }
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .pricedetail-layout {
  43. width: 100%;
  44. .plate {
  45. width: 100%;
  46. margin: 0 auto;
  47. padding: 20px 0 40px;
  48. text-align: center;
  49. .b-title {
  50. font-weight: 700;
  51. font-size: 22px;
  52. color: rgba(0, 0, 0, 0.7);
  53. line-height: 44px;
  54. margin: 0 auto 20px;
  55. width: 98%;
  56. }
  57. .price-txt {
  58. text-align: left;
  59. font-size: 14px;
  60. padding-left: 20px;
  61. margin-top: 25px;
  62. li {
  63. font-size: 14px;
  64. color: #666;
  65. line-height: 31px;
  66. list-style: disc;
  67. }
  68. }
  69. .qa-con {
  70. max-width: 90%;
  71. margin: 50px auto 0;
  72. li {
  73. margin-bottom: 18px;
  74. text-align: left;
  75. font-family: "Microsoft Yahei", "微软雅黑", Tahoma, Arial, Helvetica,
  76. STHeiti;
  77. p {
  78. font-size: 12px;
  79. color: #666;
  80. line-height: 18px;
  81. &:first-of-type {
  82. font-size: 14px;
  83. color: #333;
  84. font-weight: bold;
  85. margin-bottom: 4px;
  86. }
  87. }
  88. }
  89. }
  90. }
  91. }
  92. </style>