recharge.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <view class="recharge">
  3. <view class="title">
  4. <view class="title-t">
  5. 充币二维码
  6. </view>
  7. </view>
  8. <view class="content">
  9. 请转入USDT<br>
  10. <image src="../../static/error/errorImage.jpg" mode=""></image>
  11. <view class="button" @click="downLoad">保存二维码</view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. url: ''
  20. }
  21. },
  22. methods: {
  23. //下载
  24. downLoad() {
  25. // const obj = this
  26. // uni.downloadFile({
  27. // url: url,
  28. // success(res) {
  29. // if (res.errMsg == 'downloadFile:ok') {
  30. // obj.src = res.tempFilePath;
  31. // // 生成画布
  32. // obj.loadImg(obj.src);
  33. // uni.hideLoading();
  34. // }
  35. // console.log(res);
  36. // },
  37. // fail(e) {
  38. // console.log(e);
  39. // }
  40. // })
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .recharge {
  47. font-family: PingFang-SC-Bold;
  48. .title {
  49. background-color: #fff;
  50. padding: 30rpx;
  51. margin-bottom: 1rpx;
  52. .title-t {
  53. // margin: 30rpx;
  54. padding: 0 15rpx;
  55. color: #333333;
  56. font-weight: bold;
  57. border-left: solid 2rpx #75EFFA;
  58. }
  59. }
  60. .content {
  61. padding: 50rpx;
  62. background-color: #fff;
  63. text-align: center;
  64. color: #333333;
  65. font-weight: bold;
  66. image {
  67. margin-top: 20rpx;
  68. width: 200rpx;
  69. height: 200rpx;
  70. }
  71. .button {
  72. margin: 0 auto;
  73. width: 450rpx;
  74. background: linear-gradient(90deg, #438BED 0%, #44BFEC 100%);
  75. background-color: #438BED;
  76. height: 60rpx;
  77. line-height: 60rpx;
  78. border-radius: 50rpx;
  79. color: #fff;
  80. font-size: 30rpx;
  81. margin-top: 20rpx;
  82. font-weight: 500;
  83. }
  84. }
  85. }
  86. </style>