cwg-footer-link.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <view class="custom-footer">
  3. <view class="container">
  4. <view>
  5. © 2026 CWG Markets
  6. </view>
  7. <view class="footer-links">
  8. <cwg-link type="pdf" :title="item.text" :url="item.url" target="_blank"
  9. v-for="(item, index) in linkList" :key="index" class="link-item" />
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script setup>
  15. import { openLocalPdf } from '@/utils/pdf.js'
  16. const linkList = [
  17. { text: 'signup.agreemnet2', url: 'pdf/Client_Agreement.pdf' },
  18. { text: 'signup.agreemnet4', url: 'pdf/Terms&Conditions.pdf' },
  19. { text: 'signup.agreemnet6', url: 'pdf/Privacy_Policy.pdf' },
  20. { text: 'news_add_field.OpenAccount.Des2', url: 'pdf/PrivacyPolicy2019_01.pdf' }
  21. ]
  22. // const openLink = ({ url, text }) => {
  23. // openLocalPdf(url, text)
  24. // }
  25. </script>
  26. <style lang="scss" scoped>
  27. @import "@/uni.scss";
  28. .custom-footer {
  29. font-family: var(--f-country-simple-family);
  30. font-weight: 400;
  31. line-height: px2rpx(16);
  32. font-size: px2rpx(12);
  33. letter-spacing: px2rpx(0.5);
  34. padding: px2rpx(16) 0;
  35. border-top: 1px solid var(--bs-border-color);
  36. .container {
  37. max-width: px2rpx(1320);
  38. width: 100%;
  39. margin: 0 auto;
  40. display: flex;
  41. justify-content: space-between;
  42. box-sizing: border-box;
  43. padding: 0;
  44. color: var(--bs-emphasis-color);
  45. @media screen and (max-width: 1504px) {
  46. padding: 0 px2rpx(16);
  47. }
  48. }
  49. .footer-links {
  50. display: flex;
  51. gap: px2rpx(12);
  52. .link-item {
  53. line-height: px2rpx(20);
  54. font-size: px2rpx(12);
  55. letter-spacing: px2rpx(0.5);
  56. color: #8c96a9;
  57. // text-decoration: underline;
  58. cursor: pointer;
  59. &:active {
  60. opacity: 0.7;
  61. }
  62. }
  63. .copyright {
  64. width: 100%;
  65. color: var(--bs-heading-color);
  66. margin-top: px2rpx(12);
  67. }
  68. }
  69. }
  70. @media screen and (max-width: 768px) {
  71. .container {
  72. padding: px2rpx(16) px2rpx(24);
  73. display: flex;
  74. flex-direction: column;
  75. align-items: center;
  76. }
  77. }
  78. </style>