orderDetail.vue 5.3 KB

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