index.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <div class="container">
  3. <div class="content">
  4. <div class="title">
  5. <div class="logo"></div>
  6. <div>{{ $t('wallet.ACCCollection') }}</div>
  7. </div>
  8. <div class="qrcode">
  9. <qrcode-vue :value="qrtext" :size="239" :margin="2" background="transparent"/>
  10. <div class="address">{{walletStore.account}}</div>
  11. </div>
  12. </div>
  13. <van-button class="footer-btn" type="primary" size="large">{{ $t('wallet.Copy') }}</van-button>
  14. </div>
  15. </template>
  16. <script setup>
  17. import QrcodeVue from 'qrcode.vue'
  18. import { useWalletStore } from "@/stores/modules/walletStore";
  19. const walletStore = useWalletStore();
  20. const qrtext = walletStore.account;
  21. </script>
  22. <style lang="less" scoped>
  23. .container{
  24. display: flex;
  25. flex-direction: column;
  26. height: 86vh;
  27. padding: 17px 17px 33px;
  28. box-sizing: border-box;
  29. .content{
  30. flex: 1;
  31. background-color: #fff;
  32. border-radius: 12px;
  33. margin-bottom: 129px;
  34. padding: 37px 32px 33px;
  35. .title{
  36. display: flex;
  37. flex-direction: column;
  38. align-items: center;
  39. font-family: PingFang SC, PingFang SC;
  40. font-weight: 500;
  41. font-size: 19px;
  42. color: #000000;
  43. margin-bottom: 17px;
  44. .logo{
  45. width: 62px;
  46. height: 62px;
  47. border-radius: 12px;
  48. margin-bottom: 10px;
  49. background: url('../../../assets/img/icon.png') no-repeat;
  50. background-size: 100% 100%;
  51. }
  52. }
  53. .qrcode{
  54. display: flex;
  55. flex-direction: column;
  56. align-items: center;
  57. .address{
  58. margin-top: 18px;
  59. background: #F2F2F2;
  60. border-radius: 8px;
  61. border: 1px solid #D8D8D8;
  62. padding: 18px 24px;
  63. font-family: PingFang SC, PingFang SC;
  64. font-weight: 400;
  65. font-size: 15px;
  66. color: #000000;
  67. word-break: break-all;
  68. }
  69. }
  70. }
  71. .footer-btn{
  72. height: 40px !important;
  73. line-height: 40px !important;
  74. background: linear-gradient( 90deg, @theme-color1 0%, #40A4FB 100%) !important;
  75. border-radius:51px;
  76. font-family: PingFang SC, PingFang SC;
  77. font-weight: 500;
  78. font-size: 15px;
  79. padding: 9px 0;
  80. box-sizing: border-box;
  81. color: #fff;
  82. }
  83. }
  84. </style>