cwg-custom-footer.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <view class="custom-footer">
  3. <view class="footer-description">
  4. <view class="desc-block">
  5. <view class="desc-text" v-t="'newSignin.item12'" />
  6. <view class="desc-text" v-t="'newSignin.item10'" />
  7. <view class="desc-text" v-t="'newSignin.item11'" />
  8. <view class="desc-text">
  9. <text v-t="'newSignin.item13'" />
  10. <cwg-link type="pdf" :title="'newSignin.item13_1'" :url="'pdf/Risk-Disclosures-and-Acknowledgements-2020-08.pdf'" target="_blank" class="desc-link" />
  11. <text class="desc-text" v-t="'newSignin.item13_2'" />
  12. </view>
  13. <!-- <text class="desc-text" v-t="'newSignin.item13_3'" />
  14. <text class="desc-text" v-t="'newSignin.item13_4'" /> -->
  15. </view>
  16. </view>
  17. <view class="footer-placeholder"></view>
  18. <view class="footer-links">
  19. <cwg-link type="pdf" :title="item.text" :url="item.url" target="_blank" v-for="(item, index) in linkList"
  20. :key="index" class="link-item" />
  21. <!-- <view class="copyright">© 2008 - 2026. Exness</view> -->
  22. </view>
  23. </view>
  24. </template>
  25. <script setup>
  26. import { openLocalPdf } from '@/utils/pdf.js'
  27. const linkList = [
  28. { text: 'signup.agreemnet2', url: 'pdf/Client_Agreement.pdf' },
  29. { text: 'signup.agreemnet4', url: 'pdf/Terms&Conditions.pdf' },
  30. { text: 'signup.agreemnet6', url: 'pdf/Privacy_Policy.pdf' },
  31. { text: 'news_add_field.OpenAccount.Des2', url: 'pdf/PrivacyPolicy2019_01.pdf' }
  32. ]
  33. // const openLink = ({ url, text }) => {
  34. // openLocalPdf(url, text)
  35. // }
  36. </script>
  37. <style lang="scss" scoped>
  38. @import "@/uni.scss";
  39. .custom-footer {
  40. font-family: var(--f-country-simple-family);
  41. font-weight: 400;
  42. line-height: px2rpx(16);
  43. font-size: px2rpx(12);
  44. letter-spacing: px2rpx(0.5);
  45. display: grid;
  46. grid-template-columns: 1fr;
  47. margin: px2rpx(16) px2rpx(0);
  48. padding: px2rpx(64) 0px;
  49. border-top: 1px solid #e4e7ed;
  50. box-sizing: border-box;
  51. .footer-description {
  52. .desc-block {
  53. margin-bottom: px2rpx(32);
  54. .desc-text {
  55. display: inline-block;
  56. margin-bottom: px2rpx(8);
  57. }
  58. .desc-link {
  59. display: inline-block;
  60. color: #0066cc;
  61. text-decoration: underline;
  62. margin-top: px2rpx(4);
  63. }
  64. }
  65. }
  66. .footer-placeholder {
  67. display: block;
  68. }
  69. .footer-links {
  70. display: flex;
  71. flex-direction: column;
  72. align-items: flex-start;
  73. .link-item {
  74. line-height: px2rpx(20);
  75. font-size: px2rpx(12);
  76. letter-spacing: px2rpx(0.5);
  77. color: #0066cc;
  78. text-decoration: underline;
  79. cursor: pointer;
  80. &:active {
  81. opacity: 0.7;
  82. }
  83. }
  84. .copyright {
  85. width: 100%;
  86. color: #999;
  87. margin-top: px2rpx(12);
  88. }
  89. }
  90. }
  91. @media screen and (min-width: 768px) {
  92. .custom-footer {
  93. grid-template-columns: 4fr 2fr;
  94. }
  95. }
  96. @media screen and (min-width: 992px) {
  97. .custom-footer {
  98. grid-template-columns: 8fr 4fr;
  99. }
  100. }
  101. @media screen and (min-width: 1200px) {
  102. .custom-footer {
  103. grid-template-columns: 7fr 1fr 3fr;
  104. }
  105. }
  106. </style>