collection.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <template>
  2. <view class="container">
  3. <view class="recharge">
  4. <view class="infoBox">
  5. <!-- <view class="tplName">链名称</view>
  6. <view class="tplNum">USDT-TRC20</view>
  7. <view class="tplAddr">收款地址<text>{{val}}</text></view> -->
  8. </view>
  9. <view class="code">
  10. <image :src="er_code" mode=""></image>
  11. <!-- #ifdef H5 || APP-PLUS -->
  12. <zb-code ref="qrcode" :show="codeShow" :cid="cid" :val="val" :size="size" :unit="unit"
  13. :background="background" :foreground="foreground" :pdground="pdground" :icon="codeIcon"
  14. :iconSize="iconsize" :onval="onval" :loadMake="loadMake" @result="qrR" />
  15. <!-- #endif -->
  16. </view>
  17. <view class="flex btnBox">
  18. <!-- #ifdef APP -->
  19. <view class="btn margin-r-30" @click="domImage">保存相册</view>
  20. <!-- #endif -->
  21. <view class="btn" @click="copy">复制地址</view>
  22. </view>
  23. </view>
  24. <view class="login_text">
  25. <view class="tip">
  26. <view>
  27. <text>
  28. 该地址仅支持 USDT-TRC20 收款请勿用于其他币种,否则资产将不可找回</br>
  29. 从STAR(星空)之外地址转入的资金,需要在完成交易的120分钟后,才能将资产转账给易币付其他用户或提到钱包以外的地址 最小收款金额:
  30. 0.0001USDT小于最小金额的收款将不会上账且无法退回1次网络确认后可到账,1次网络确认后可转账。您的充值地址不会经常改变,可截图保存并重复充值。
  31. </text>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script type="text/javascript">
  38. import {
  39. copyText
  40. } from '@/utils/rocessor.js';
  41. import {
  42. mapState,
  43. } from 'vuex';
  44. export default {
  45. data() {
  46. return {
  47. dataMoney: {},
  48. list: '',
  49. account: '',
  50. money: '',
  51. address: '',
  52. er_code: '23456',
  53. remark: '',
  54. img: '/static/image/img19.png',
  55. val: "", // 要生成的二维码值
  56. size: 200, // 二维码大小
  57. unit: 'upx', // 单位
  58. background: '#FFF', // 背景色
  59. foreground: '#000', // 前景色
  60. pdground: '#000', // 角标色
  61. icon: '', // 二维码图标
  62. iconsize: 40, // 二维码图标大小
  63. lv: 3, // 二维码容错级别 , 一般不用设置,默认就行
  64. onval: true, // val值变化时自动重新生成二维码
  65. loadMake: true, // 组件加载完成后自动生成二维码
  66. src: '', // 二维码生成后的图片地址或base64
  67. codeShow: false,
  68. cid: '1',
  69. codeIcon: '', // 二维码图标
  70. };
  71. },
  72. onLoad() {
  73. this.val = this.userInfo.uid+'';
  74. console.log(this.userInfo,'this.userInfo');
  75. },
  76. computed: {
  77. ...mapState('user', ['userInfo']),
  78. },
  79. methods: {
  80. // 下载图片
  81. domImage(){
  82. uni.downloadFile({
  83. url:this.er_code,
  84. success(re){
  85. console.log(re.tempFilePath,'re');
  86. uni.showToast({
  87. title: '下载成功'
  88. });
  89. }
  90. })
  91. },
  92. // 复制地址
  93. copy(){
  94. copyText(this.val)
  95. },
  96. // 二维码生成
  97. qrR(res) {
  98. this.er_code = res;
  99. },
  100. //获取数据
  101. loadData() {
  102. const that = this;
  103. },
  104. }
  105. };
  106. </script>
  107. <style lang="scss">
  108. /* page {
  109. min-height: 100%;
  110. background: linear-gradient(-28deg, rgba(44, 45, 53, 1), rgba(59, 62, 74, 1));
  111. } */
  112. .container {
  113. padding: 25rpx 25rpx;
  114. }
  115. .body_content {
  116. width: 100%;
  117. height: 100%;
  118. }
  119. .login_text {
  120. width: 100%;
  121. color: #fff !important;
  122. font-size: 28rpx !important;
  123. background-color: #1F2A4A;
  124. margin: 25rpx 0rpx;
  125. padding: 0rpx 25rpx;
  126. padding-bottom: 15rpx;
  127. border-radius: 25rpx;
  128. }
  129. .recharge {
  130. text-align: center;
  131. color: #85858e;
  132. font-size: 30rpx;
  133. border-radius: 25rpx;
  134. background-color: #1F2A4A;
  135. }
  136. .example-title {
  137. text-align: left !important;
  138. padding: 25rpx 25rpx;
  139. border-bottom: 2rpx solid #2F364E;
  140. color: #0C5AFA;
  141. .titleTip {
  142. width: 5rpx;
  143. height: 30rpx;
  144. background: linear-gradient(90deg, #0C5AFA, #1356FF);
  145. border-radius: 3rpx;
  146. margin-right: 15rpx;
  147. }
  148. }
  149. .infoBox {
  150. text-align: left;
  151. padding: 28rpx 51rpx;
  152. .tplName {
  153. font-family: PingFang SC;
  154. font-weight: bold;
  155. font-size: 32rpx;
  156. color: #FFFFFF;
  157. line-height: 24rpx;
  158. }
  159. .tplNum {
  160. margin: 30rpx 0rpx;
  161. padding: 15rpx 30rpx;
  162. border-radius: 10rpx;
  163. border: 1px solid #1356FF;
  164. font-family: PingFang SC;
  165. font-size: 26rpx;
  166. color: #1356FF;
  167. display: inline-block;
  168. }
  169. .tplAddr {
  170. color: #fff;
  171. font-size: 32rpx;
  172. text {
  173. padding-left: 15rpx;
  174. font-size: 26rpx;
  175. color: #FFFFFF;
  176. }
  177. }
  178. }
  179. .login_input {
  180. border-bottom: 1px solid #464755;
  181. padding: 35rpx;
  182. }
  183. .uni-input {
  184. width: 100%;
  185. text-align: left !important;
  186. }
  187. .code {
  188. width: 277rpx;
  189. height: 277rpx;
  190. margin: 25rpx auto;
  191. margin-bottom: 35rpx;
  192. background: #0C5AFA;
  193. }
  194. .code image {
  195. width: 100%;
  196. height: 100%;
  197. }
  198. .btnBox {
  199. justify-content: center;
  200. padding-bottom: 50rpx;
  201. padding-top: 30rpx;
  202. .btn {
  203. font-family: PingFang SC;
  204. font-weight: bold;
  205. font-size: 26rpx;
  206. color: #0C5AFA;
  207. border: 1rpx solid #0C5AFA;
  208. padding: 15rpx 45rpx;
  209. border-radius: 15rpx;
  210. }
  211. }
  212. .submission {
  213. padding: 30rpx 25rpx;
  214. .golden {
  215. background: #0C5AFA;
  216. color: #fff;
  217. }
  218. }
  219. .login_name {
  220. width: 480rpx;
  221. color: #ffffff;
  222. }
  223. .login_name image {
  224. width: 100rpx;
  225. height: 100rpx;
  226. }
  227. .tip {
  228. padding: 29rpx 31rpx;
  229. line-height: 55rpx;
  230. font-size: 24rpx;
  231. }
  232. .select_img {
  233. width: 28rpx;
  234. height: 32rpx;
  235. }
  236. .select_img image {
  237. width: 100%;
  238. height: 100%;
  239. }
  240. .scann {
  241. margin-bottom: 35rpx;
  242. margin-top: 15rpx;
  243. }
  244. .scanning {
  245. background-color: #6f6f78;
  246. color: #ffffff;
  247. padding: 10rpx 30rpx;
  248. border-radius: 15rpx;
  249. font-size: 28rpx;
  250. }
  251. .address_code {
  252. padding: 25rpx 0rpx;
  253. color: #ffffff;
  254. }
  255. .input-placeholder {
  256. color: #fff !important;
  257. }
  258. </style>