xiaol 6 months ago
parent
commit
a2b5301181
1 changed files with 7 additions and 5 deletions
  1. 7 5
      pages/user/withdrawal.vue

+ 7 - 5
pages/user/withdrawal.vue

@@ -24,7 +24,7 @@
 </template>
 <script type="text/javascript">
 	import {
-		qianBao
+		qianBao,extractCash
 	} from '@/api/wallet.js';
 	export default {
 		data() {
@@ -64,11 +64,11 @@
 								title: '提交中。。。',
 								mask: true
 							});
-							//确认充值调接口,成功跳转页面
-							cash({
+							//确认提现调接口,成功跳转页面
+							extractCash({
 									address: obj.address,
-									money: obj.money,
-									money_type: "",
+									money: obj.number,
+									money_type: "USDT",
 									trade_psw: res.content
 								})
 								.then(function(e) {
@@ -78,6 +78,8 @@
 										mask: false,
 										icon: 'none'
 									});
+									obj.address = ''
+									obj.number = ''
 									uni.hideLoading();
 								})
 								.catch(function(e) {