recharge.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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 uniList from '@/components/uni-list/uni-list.vue';
  48. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  49. // import { show_cb,do_cb } from '@/api/recharge.js';
  50. // import { upload } from '@/api/real.js';
  51. export default {
  52. components: {
  53. uniList,
  54. uniListItem
  55. },
  56. data() {
  57. return {
  58. uid: '',
  59. list:'',
  60. account: '',
  61. money: '',
  62. address:'',
  63. er_code:'',
  64. remark:'',
  65. img: '/static/image/img19.png'
  66. };
  67. },
  68. onLoad() {
  69. this.uid = uni.getStorageSync('uid');
  70. this.loadData();
  71. },
  72. methods: {
  73. //获取数据
  74. loadData() {
  75. // show_cb({})
  76. // .then(data => {
  77. // this.list = data.data;
  78. // this.address = data.data.address;
  79. // this.er_code = data.data.er_code;
  80. // })
  81. // .catch(err => {
  82. // console.log(err);
  83. // });
  84. },
  85. //确认提交
  86. submission() {
  87. let obj = this;
  88. uni.showLoading({
  89. title: '充币中...',
  90. mask: true
  91. });
  92. //确认充值调接口,成功跳转页面
  93. do_cb({
  94. uid: obj.uid,
  95. img: obj.img,
  96. address: obj.address,
  97. money: obj.money,
  98. bz: obj.remark,
  99. })
  100. .then(function(e) {
  101. uni.showToast({
  102. title: '请耐心等待系统审核通过',
  103. duration: 1500,
  104. mask: false,
  105. icon: 'none'
  106. });
  107. uni.hideLoading();
  108. })
  109. .catch(function(e) {
  110. console.log(e);
  111. });
  112. },
  113. //上传图片
  114. scImg() {
  115. upload({
  116. file:''
  117. }).then((e) => {
  118. console.log(e,55)
  119. this.img = e[0].url;
  120. });
  121. },
  122. }
  123. };
  124. </script>
  125. <style lang="scss">
  126. /* page {
  127. min-height: 100%;
  128. background: linear-gradient(-28deg, rgba(44, 45, 53, 1), rgba(59, 62, 74, 1));
  129. } */
  130. .body_content {
  131. width: 100%;
  132. height: 100%;
  133. }
  134. .login_text {
  135. width: 100%;
  136. color: #fff !important;
  137. font-size: 28rpx !important;
  138. background-color: #1F2A4A;
  139. margin: 25rpx 0rpx;
  140. padding: 0rpx 25rpx;
  141. padding-bottom: 15rpx;
  142. }
  143. .recharge {
  144. text-align: center;
  145. color: #85858e;
  146. font-size: 30rpx;
  147. background-color: #1F2A4A;
  148. }
  149. .example-title{
  150. text-align: left !important;
  151. padding: 25rpx 25rpx;
  152. border-bottom: 2rpx solid #2F364E;
  153. color: #0C5AFA;
  154. .titleTip{
  155. width: 5rpx;
  156. height: 30rpx;
  157. background: linear-gradient(90deg, #0C5AFA, #1356FF);
  158. border-radius: 3rpx;
  159. margin-right: 15rpx;
  160. }
  161. }
  162. .infoBox{
  163. text-align: left;
  164. padding: 28rpx 51rpx;
  165. .tplName{
  166. font-family: PingFang SC;
  167. font-weight: bold;
  168. font-size: 32rpx;
  169. color: #FFFFFF;
  170. line-height: 24rpx;
  171. }
  172. .tplNum{
  173. margin: 30rpx 0rpx;
  174. padding: 15rpx 30rpx;
  175. border-radius: 10rpx;
  176. border: 1px solid #1356FF;
  177. font-family: PingFang SC;
  178. font-size: 26rpx;
  179. color: #1356FF;
  180. display: inline-block;
  181. }
  182. .tplAddr{
  183. color: #fff;
  184. font-size: 32rpx;
  185. text{
  186. padding-left: 15rpx;
  187. font-size: 26rpx;
  188. color: #FFFFFF;
  189. }
  190. }
  191. }
  192. .login_input {
  193. border-bottom: 1px solid #464755;
  194. padding: 35rpx;
  195. }
  196. .uni-input {
  197. width: 100%;
  198. text-align: left !important;
  199. }
  200. .code {
  201. width: 277rpx;
  202. height: 277rpx;
  203. margin: 25rpx auto;
  204. margin-bottom: 35rpx;
  205. background: #0C5AFA;
  206. }
  207. .code image {
  208. width: 100%;
  209. height: 100%;
  210. }
  211. .btnBox{
  212. justify-content: center;
  213. padding-bottom: 50rpx;
  214. padding-top: 30rpx;
  215. .btn{
  216. margin-right: 50rpx;
  217. font-family: PingFang SC;
  218. font-weight: bold;
  219. font-size: 26rpx;
  220. color: #0C5AFA;
  221. border: 1rpx solid #0C5AFA;
  222. padding: 15rpx 45rpx;
  223. border-radius: 15rpx;
  224. }
  225. }
  226. .submission {
  227. padding: 30rpx 25rpx;
  228. .golden{
  229. background: #0C5AFA;
  230. color: #fff;
  231. }
  232. }
  233. .login_name {
  234. width: 480rpx;
  235. color: #ffffff;
  236. }
  237. .login_name image {
  238. width: 100rpx;
  239. height: 100rpx;
  240. }
  241. .tip {
  242. padding: 29rpx 31rpx;
  243. line-height: 55rpx;
  244. font-size: 24rpx;
  245. }
  246. .select_img {
  247. width: 28rpx;
  248. height: 32rpx;
  249. }
  250. .select_img image {
  251. width: 100%;
  252. height: 100%;
  253. }
  254. .scann {
  255. margin-bottom: 35rpx;
  256. margin-top: 15rpx;
  257. }
  258. .scanning {
  259. background-color: #6f6f78;
  260. color: #ffffff;
  261. padding: 10rpx 30rpx;
  262. border-radius: 15rpx;
  263. font-size: 28rpx;
  264. }
  265. .address_code {
  266. padding: 25rpx 0rpx;
  267. color: #ffffff;
  268. }
  269. .input-placeholder{
  270. color: #fff !important;
  271. }
  272. </style>