information.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <template>
  2. <view class="container">
  3. <view class="recharge">
  4. <!-- <view class="example-title flex_item">
  5. <view class="titleTip"></view>
  6. <view class="">充值地址</view>
  7. </view> -->
  8. <view class="infoBox">
  9. <view class="tplName">链名称</view>
  10. <view class="tplNum">USDT-TRC20</view>
  11. <view class="tplAddr">收款地址<text>ca87ca68ca68c6a986c98a678c7a8</text></view>
  12. </view>
  13. <view class="code"><image :src="er_code"></image></view>
  14. <view class="flex btnBox">
  15. <view class="btn">保存相册</view>
  16. <view class="btn">复制地址</view>
  17. </view>
  18. </view>
  19. <!-- <view class="login_text">
  20. <view class="login_input flex" style="padding-top: 45rpx;">
  21. <view class="login_img">金额</view>
  22. <view class="login_name"><input class="uni-input" type="text" v-model="money" placeholder="请输入充值金额" /></view>
  23. </view>
  24. <view class="login_input flex">
  25. <view class="login_img"><text>打款凭证</text></view>
  26. <view class="login_name" @click="scImg"><image :src="img"></image></view>
  27. </view>
  28. <view class="login_input flex" style="padding-top: 45rpx;border-bottom: none;">
  29. <view class="login_img">备注</view>
  30. <view class="login_name"><input class="uni-input" type="text" v-model="remark" placeholder="例如:备注用户账号" /></view>
  31. </view>
  32. <view class="submission"><button class="golden" type="golden" hover-class="none" @click="submission">确认提交</button></view>
  33. </view> -->
  34. <view class="login_text">
  35. <view class="tip">
  36. <view>
  37. <text>
  38. 该地址仅支持 USDT-TRC20 收款请勿用于其他币种,否则资产将不可找回</br>
  39. 从易趣付之外地址转入的资金,需要在完成交易的120分钟后,才能将资产转账给易币付其他用户或提到钱包以外的地址 最小收款金额: 0.0001USDT小于最小金额的收款将不会上账且无法退回1次网络确认后可到账,1次网络确认后可转账。您的充值地址不会经常改变,可截图保存并重复充值。
  40. </text>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script type="text/javascript">
  47. // import { show_cb,do_cb } from '@/api/recharge.js';
  48. // import { upload } from '@/api/real.js';
  49. export default {
  50. data() {
  51. return {
  52. uid: '',
  53. list:'',
  54. account: '',
  55. money: '',
  56. address:'',
  57. er_code:'',
  58. remark:'',
  59. img: '/static/image/img19.png'
  60. };
  61. },
  62. onLoad() {
  63. this.uid = uni.getStorageSync('uid');
  64. this.loadData();
  65. },
  66. methods: {
  67. //获取数据
  68. loadData() {
  69. // show_cb({})
  70. // .then(data => {
  71. // this.list = data.data;
  72. // this.address = data.data.address;
  73. // this.er_code = data.data.er_code;
  74. // })
  75. // .catch(err => {
  76. // console.log(err);
  77. // });
  78. },
  79. //确认提交
  80. submission() {
  81. let obj = this;
  82. uni.showLoading({
  83. title: '充币中...',
  84. mask: true
  85. });
  86. //确认充值调接口,成功跳转页面
  87. do_cb({
  88. uid: obj.uid,
  89. img: obj.img,
  90. address: obj.address,
  91. money: obj.money,
  92. bz: obj.remark,
  93. })
  94. .then(function(e) {
  95. uni.showToast({
  96. title: '请耐心等待系统审核通过',
  97. duration: 1500,
  98. mask: false,
  99. icon: 'none'
  100. });
  101. uni.hideLoading();
  102. })
  103. .catch(function(e) {
  104. console.log(e);
  105. });
  106. },
  107. //上传图片
  108. scImg() {
  109. upload({
  110. file:''
  111. }).then((e) => {
  112. console.log(e,55)
  113. this.img = e[0].url;
  114. });
  115. },
  116. }
  117. };
  118. </script>
  119. <style lang="scss">
  120. /* page {
  121. min-height: 100%;
  122. background: linear-gradient(-28deg, rgba(44, 45, 53, 1), rgba(59, 62, 74, 1));
  123. } */
  124. .container{
  125. padding: 30rpx 30rpx;
  126. }
  127. .body_content {
  128. width: 100%;
  129. height: 100%;
  130. }
  131. .login_text {
  132. width: 100%;
  133. color: #fff !important;
  134. font-size: 28rpx !important;
  135. background-color: #1F2A4A;
  136. margin: 25rpx 0rpx;
  137. padding: 0rpx 25rpx;
  138. padding-bottom: 15rpx;
  139. border-radius: 15rpx;
  140. }
  141. .recharge {
  142. text-align: center;
  143. color: #85858e;
  144. font-size: 30rpx;
  145. background-color: #1F2A4A;
  146. border-radius: 15rpx;
  147. }
  148. .example-title{
  149. text-align: left !important;
  150. padding: 25rpx 25rpx;
  151. border-bottom: 2rpx solid #2F364E;
  152. color: #0C5AFA;
  153. .titleTip{
  154. width: 5rpx;
  155. height: 30rpx;
  156. background: linear-gradient(90deg, #0C5AFA, #1356FF);
  157. border-radius: 3rpx;
  158. margin-right: 15rpx;
  159. }
  160. }
  161. .infoBox{
  162. text-align: left;
  163. padding: 28rpx 51rpx;
  164. .tplName{
  165. font-family: PingFang SC;
  166. font-weight: bold;
  167. font-size: 32rpx;
  168. color: #FFFFFF;
  169. padding-top: 15rpx;
  170. }
  171. .tplNum{
  172. margin: 30rpx 0rpx;
  173. padding: 15rpx 30rpx;
  174. border-radius: 10rpx;
  175. border: 1px solid #1356FF;
  176. font-family: PingFang SC;
  177. font-size: 26rpx;
  178. color: #1356FF;
  179. display: inline-block;
  180. }
  181. .tplAddr{
  182. color: #fff;
  183. font-size: 32rpx;
  184. text{
  185. padding-left: 15rpx;
  186. font-size: 26rpx;
  187. color: #FFFFFF;
  188. }
  189. }
  190. }
  191. .login_input {
  192. border-bottom: 1px solid #464755;
  193. padding: 35rpx;
  194. }
  195. .uni-input {
  196. width: 100%;
  197. text-align: left !important;
  198. }
  199. .code {
  200. width: 277rpx;
  201. height: 277rpx;
  202. margin: 25rpx auto;
  203. margin-bottom: 35rpx;
  204. background: #0C5AFA;
  205. }
  206. .code image {
  207. width: 100%;
  208. height: 100%;
  209. }
  210. .btnBox{
  211. justify-content: center;
  212. padding-bottom: 50rpx;
  213. padding-top: 30rpx;
  214. .btn{
  215. margin-right: 50rpx;
  216. font-family: PingFang SC;
  217. font-weight: bold;
  218. font-size: 26rpx;
  219. color: #0C5AFA;
  220. border: 1rpx solid #0C5AFA;
  221. padding: 15rpx 45rpx;
  222. border-radius: 15rpx;
  223. }
  224. }
  225. .submission {
  226. padding: 30rpx 25rpx;
  227. .golden{
  228. background: #0C5AFA;
  229. color: #fff;
  230. }
  231. }
  232. .login_name {
  233. width: 480rpx;
  234. color: #ffffff;
  235. }
  236. .login_name image {
  237. width: 100rpx;
  238. height: 100rpx;
  239. }
  240. .tip {
  241. padding: 29rpx 31rpx;
  242. line-height: 55rpx;
  243. font-size: 24rpx;
  244. }
  245. .select_img {
  246. width: 28rpx;
  247. height: 32rpx;
  248. }
  249. .select_img image {
  250. width: 100%;
  251. height: 100%;
  252. }
  253. .scann {
  254. margin-bottom: 35rpx;
  255. margin-top: 15rpx;
  256. }
  257. .scanning {
  258. background-color: #6f6f78;
  259. color: #ffffff;
  260. padding: 10rpx 30rpx;
  261. border-radius: 15rpx;
  262. font-size: 28rpx;
  263. }
  264. .address_code {
  265. padding: 25rpx 0rpx;
  266. color: #ffffff;
  267. }
  268. .input-placeholder{
  269. color: #fff !important;
  270. }
  271. </style>