cwg-custom-footer.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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(24);
  48. margin: px2rpx(64) 0px;
  49. .footer-description {
  50. .desc-block {
  51. margin-bottom: px2rpx(32);
  52. .desc-text {
  53. display: inline-block;
  54. margin-bottom: px2rpx(8);
  55. }
  56. .desc-link {
  57. display: inline-block;
  58. color: #0066cc;
  59. text-decoration: underline;
  60. margin-top: px2rpx(4);
  61. }
  62. }
  63. }
  64. .footer-placeholder {
  65. display: block;
  66. }
  67. .footer-links {
  68. display: flex;
  69. flex-direction: column;
  70. align-items: flex-start;
  71. .link-item {
  72. line-height: px2rpx(20);
  73. font-size: px2rpx(12);
  74. letter-spacing: px2rpx(0.5);
  75. color: #0066cc;
  76. text-decoration: underline;
  77. cursor: pointer;
  78. &:active {
  79. opacity: 0.7;
  80. }
  81. }
  82. .copyright {
  83. width: 100%;
  84. color: #999;
  85. margin-top: px2rpx(12);
  86. }
  87. }
  88. }
  89. @media screen and (min-width: 768px) {
  90. .custom-footer {
  91. grid-template-columns: 4fr 2fr;
  92. }
  93. }
  94. @media screen and (min-width: 992px) {
  95. .custom-footer {
  96. grid-template-columns: 8fr 4fr;
  97. }
  98. }
  99. @media screen and (min-width: 1200px) {
  100. .custom-footer {
  101. grid-template-columns: 7fr 1fr 3fr;
  102. }
  103. }
  104. </style>