|
|
@@ -1,6 +1,7 @@
|
|
|
<script>
|
|
|
import tokenpocketBnb from "@/common/wallet/tokenpocket-wallet/tokenpocket-bnb";
|
|
|
import {getTotalMoney} from "@/api/money";
|
|
|
+import {addDeal, getAddress} from "@/api/deal";
|
|
|
|
|
|
export default {
|
|
|
name: "convert-index",
|
|
|
@@ -13,7 +14,8 @@ export default {
|
|
|
toNum:'',
|
|
|
formNUm:'',
|
|
|
price:'',
|
|
|
- address:''
|
|
|
+ address:'',
|
|
|
+ dealAddress:'',
|
|
|
};
|
|
|
},
|
|
|
watch:{
|
|
|
@@ -28,8 +30,23 @@ export default {
|
|
|
mounted() {
|
|
|
this.getIconNum()
|
|
|
this.getTotalMoney()
|
|
|
+ this.getAddress()
|
|
|
},
|
|
|
methods: {
|
|
|
+ getAddress(){
|
|
|
+ getAddress().then(res=>{
|
|
|
+ if(res.code===1){
|
|
|
+ this.dealAddress=res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ addDeal(){
|
|
|
+ if(this.type===1){
|
|
|
+
|
|
|
+ }else {
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
setMax(){
|
|
|
if(this.type===1){
|
|
|
this.formNUm=this.usdtNum
|