cwg-custom-footer.vue 3.5 KB

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