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