recharge.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <template>
  2. <view class="center">
  3. <view class="top">
  4. <view class="title flex">
  5. <view class="xian"></view>
  6. <view class="title-font">
  7. 充币二维码TRC20
  8. </view>
  9. </view>
  10. <view class="erweima-box">
  11. <view class="erweima-font">
  12. 请转入USDT
  13. </view>
  14. <view class="erweima">
  15. <image :src="image" mode="scaleToFill"></image>
  16. </view>
  17. </view>
  18. <view class="btn" @click="domFile">
  19. 保存二维码
  20. </view>
  21. </view>
  22. <view class="top">
  23. <view class="title flex">
  24. <view class="xian"></view>
  25. <view class="title-font">
  26. 充币地址
  27. </view>
  28. </view>
  29. <view class="address">
  30. {{num}}
  31. </view>
  32. <view class="btn" style="margin-top: 50rpx;" @click="setData">
  33. 复制充币地址
  34. </view>
  35. </view>
  36. <view class="top info">
  37. 请勿向上述地址充值人任何非USDT资产,否则资产将不可追回。<br>
  38. USDT冲币仅支持ERC2.0以太坊上的资产,其他USDT将无法上帐,请您谅解。<br>
  39. 您充值至上述地址后,需要整个网络节点确认,1次网络确认后到账,2次网络确认后即可提币。<br>
  40. 最小充值金额:100USDT,小于最小金额的充值将不会上帐且无法退回。<br>
  41. 请通过IMTOKEN充值,充值时在备注栏填写 个人的用户ID,如果用户ID错误,将导致您无法入账,请注意确认。
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. export default {
  47. data() {
  48. return {
  49. num:"TEn1gLWumRj1FfjQ927vSoQrUCqKhuiWV2",
  50. image:'../../static/re/re1.png'
  51. }
  52. },
  53. methods:{
  54. domFile(){
  55. uni.downloadFile({
  56. url:this.image,
  57. success:(e) => {
  58. console.log(e);
  59. uni.showToast({
  60. title:'下载成功!'
  61. })
  62. },
  63. fail(e) {
  64. uni.showToast({
  65. title:'复制失败',
  66. icon:false
  67. })
  68. console.log(e);
  69. }
  70. })
  71. },
  72. setData(){
  73. // #ifdef APP-PLUS
  74. uni.setClipboardData({
  75. data:this.num,
  76. success: (e) => {
  77. uni.showToast({
  78. title:'复制成功!',
  79. })
  80. },
  81. fail(e) {
  82. uni.showToast({
  83. title:'复制失败',
  84. icon:false
  85. })
  86. console.log(e);
  87. }
  88. })
  89. // #endif
  90. }
  91. }
  92. }
  93. </script>
  94. <style lang="scss">
  95. .center,page {
  96. height: 100%;
  97. background: #F3F3F3;
  98. }
  99. .top:first-child {
  100. margin-top: 0;
  101. }
  102. .top {
  103. margin-top: 20rpx;
  104. width: 100%;
  105. height: auto;
  106. background: #FFFFFF;
  107. padding: 26rpx 30rpx 50rpx;
  108. .erweima-box {
  109. margin-top: 77rpx ;
  110. .erweima-font {
  111. text-align: center;
  112. font-size: 30rpx;
  113. font-family: PingFang SC;
  114. font-weight: bold;
  115. color: #333333;
  116. }
  117. .erweima {
  118. margin: 16rpx auto 0;
  119. width: 188rpx;
  120. height: 188rpx;
  121. image {
  122. width: 100%;
  123. height: 100%;
  124. }
  125. }
  126. }
  127. .address {
  128. margin-top: 86rpx;
  129. text-align: center;
  130. }
  131. }
  132. .title {
  133. justify-content: flex-start;
  134. align-items: center;
  135. .xian {
  136. width: 2rpx;
  137. height: 30rpx;
  138. background: linear-gradient(90deg, #F95B2F, #60BAB0, #45969B);
  139. }
  140. .title-font {
  141. padding-left: 16rpx;
  142. font-size: 30rpx;
  143. font-family: PingFang SC;
  144. font-weight: bold;
  145. color: #333333;
  146. }
  147. }
  148. .btn{
  149. margin: 36rpx auto 0;
  150. width: 500rpx;
  151. height: 60rpx;
  152. background: linear-gradient(90deg, #60BAB0, #60BAB0, #45969B);
  153. border-radius: 30px;
  154. line-height: 60rpx;
  155. text-align: center;
  156. font-size: 26rpx;
  157. font-family: PingFang SC;
  158. font-weight: 500;
  159. color: #FFFFFF;
  160. }
  161. .info {
  162. font-size: 24rpx;
  163. font-family: PingFang SC;
  164. font-weight: 500;
  165. color: #333333;
  166. line-height: 42rpx;
  167. }
  168. </style>