14 files modified
1 files added
| | |
| | | } |
| | | }) |
| | | } |
| | | // 获取资金账户 |
| | | export const getwalletGrther = (params) => { |
| | | return request({ |
| | | url: "/api/walletGrther!getParameter.action", |
| | | method: "GET", |
| | | params: { |
| | | currency:params.currency, |
| | | fromTo:params.fromTo, |
| | | }, |
| | | }); |
| | | }; |
| | |
| | | }, params) |
| | | }; |
| | | |
| | | const save_email = (params) => { |
| | | return httpJson({ |
| | | url: "/api/localuser!save_email.action", |
| | | method: "get", |
| | | isLoading: true |
| | | }, params) |
| | | }; |
| | | const registerNoVerifcodeSafeword = (params) => { |
| | | return httpJson({ |
| | | url: "/api/localuser!registerNoVerifcodeSafeword.action", |
| | | method: "get", |
| | | isLoading: true |
| | | }, params) |
| | | }; |
| | | |
| | | const apiList = { |
| | | getCurrentProjectInfo, registerUser, sendVerifyCode, loginUser, helpCenter, registerTest |
| | | getCurrentProjectInfo, registerUser, sendVerifyCode, loginUser, helpCenter, registerTest,save_email,registerNoVerifcodeSafeword |
| | | } |
| | | |
| | | export default apiList |
| | |
| | | path: '/exchange/exchangePage' |
| | | }, |
| | | |
| | | { |
| | | name: this.$t('理财'), |
| | | icon: require(`../../assets/theme/${this.theme}/image/new/img_1.png`), |
| | | // path: '/fm-home', |
| | | path: '/fund' |
| | | }, |
| | | // { |
| | | // name: this.$t('理财'), |
| | | // icon: require(`../../assets/theme/${this.theme}/image/new/img_1.png`), |
| | | // // path: '/fm-home', |
| | | // path: '/fund' |
| | | // }, |
| | | |
| | | { |
| | | name: this.$t('现货账户'), |
| | |
| | | icon: require(`../../assets/theme/${this.theme}/image/new/img_4.png`), |
| | | path: '/machine' |
| | | }, |
| | | { |
| | | name: this.$t('质押借币'), |
| | | icon: require(`../../assets/theme/${this.theme}/image/new/img_5.png`), |
| | | path: '/pledgeLoan' |
| | | }, |
| | | // { |
| | | // name: this.$t('质押借币'), |
| | | // icon: require(`../../assets/theme/${this.theme}/image/new/img_5.png`), |
| | | // path: '/pledgeLoan' |
| | | // }, |
| | | { |
| | | name: this.$t('ICO'), |
| | | icon: require(`../../assets/theme/${this.theme}/image/new/img_6.png`), |
| | |
| | | path: '/recharge/rechargeList' |
| | | }, |
| | | |
| | | { |
| | | name: this.$t('理财'), |
| | | icon: require(`../../assets/theme/${this.theme}/image/new/img_1.png`), |
| | | // path: '/fm-home', |
| | | path: '/fund' |
| | | }, |
| | | // { |
| | | // name: this.$t('理财'), |
| | | // icon: require(`../../assets/theme/${this.theme}/image/new/img_1.png`), |
| | | // // path: '/fm-home', |
| | | // path: '/fund' |
| | | // }, |
| | | |
| | | { |
| | | name: this.$t('现货账户'), |
| | |
| | | icon: require(`../../assets/theme/${this.theme}/image/new/img_4.png`), |
| | | path: '/machine' |
| | | }, |
| | | { |
| | | name: this.$t('质押借币'), |
| | | icon: require(`../../assets/theme/${this.theme}/image/new/img_5.png`), |
| | | path: '/pledgeLoan' |
| | | }, |
| | | // { |
| | | // name: this.$t('质押借币'), |
| | | // icon: require(`../../assets/theme/${this.theme}/image/new/img_5.png`), |
| | | // path: '/pledgeLoan' |
| | | // }, |
| | | { |
| | | name: this.$t('ICO申购'), |
| | | icon: require(`../../assets/theme/${this.theme}/image/new/img_6.png`), |
| | |
| | | |
| | | ::v-deep .van-tabbar-item__text { |
| | | text-align: center; |
| | | font-size: 23px; |
| | | } |
| | | |
| | | .bgFooter { |
| | |
| | | </div> |
| | | <div class="data-item right-text"> |
| | | <div class="title">{{ $t('成交量') }}({{ entrust.symbol }})</div> |
| | | <div class="text">{{ ((entrust.price * entrust.volume) / coinPrice).toFixed(5) }}</div> |
| | | <div class="text">{{ entrust.volume.toFixed(5) }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | |
| | | .h-304{ |
| | | height: 25rem; |
| | | } |
| | | .ioe-swiper{ |
| | | box-sizing: border-box; |
| | | -webkit-overflow-scrolling: touch; |
| | |
| | | eyetel: false, |
| | | timer: null, |
| | | zjlist: [], |
| | | tab: 1, |
| | | tab: 0, |
| | | index: 0, // 每个组件的二级tab |
| | | funds: {}, |
| | | fundsdata: {}, |
| | |
| | | }} |
| | | </div> |
| | | </div> |
| | | <div class="flex-centerY"> |
| | | <div class="flex-centerY" style="margin: 5px;"> |
| | | <img @click="$router.push('/recharge/rechargeList')" |
| | | :src="require(`../assets/theme/${theme}/image/new/img_11.png`)" style="width: 50%;"/> |
| | | <img @click="$router.push('/fund')" :src="require(`../assets/theme/${theme}/image/new/img_12.png`)" |
| | | style="width: 50%;"/> |
| | | </div> |
| | | <div class="flex-centerY"> |
| | | <!-- <img @click="$router.push('/pledgeLoan')" :src="require(`../assets/theme/${theme}/image/new/img_13.png`)" style="width: 50%;" />--> |
| | | <img @click="wk()" :src="require(`../assets/theme/${theme}/image/new/img_13.png`)" |
| | | style="width: 50%;"/> |
| | | <img @click="$router.push('/machine')" :src="require(`../assets/theme/${theme}/image/new/img_14.png`)" |
| | | style="width: 50%;"/> |
| | | </div> |
| | | <!-- <div class="flex-centerY"> --> |
| | | <!-- <img @click="$router.push('/pledgeLoan')" :src="require(`../assets/theme/${theme}/image/new/img_13.png`)" style="width: 50%;" />--> |
| | | |
| | | |
| | | <!-- </div> --> |
| | | <list-quatation :listData="qList" @listSort="listSort"/> |
| | | <!-- <div class="addBox" v-show="showSave&&false" @click="closeSaveBox">--> |
| | | <!-- <div class="addBox" v-show="false" @click="closeSaveBox"> |
| | |
| | | <template> |
| | | <div class="register"> |
| | | <div class="top" @click="$router.go(-1)"><img :src="require(`../../assets/theme/${theme}/image/Union.png`)" alt=""> |
| | | <div class="top" @click="$router.go(-1)"><img :src="require(`../../assets/theme/${theme}/image/Union.png`)" |
| | | alt=""> |
| | | </div> |
| | | <!-- <Step :step="1"></Step>--> |
| | | <div class="title textColor" style="margin-bottom: 0;padding-bottom: 0">{{ $t('注册') }}</div> |
| | | <div style="color: #999999;font-size: 14px;margin: 5px 0 30px 0">{{ $t('欢迎来到')}}ALOKEX</div> |
| | | |
| | | <div class="flex re-tab" style="border-bottom: #ccc 1px solid;"> |
| | | <div class="textColor1" :class="activeIndex == 0 ? 'active' : ''" @click="changeIndex(0)" v-if="false">{{ $t('账号') }}</div> |
| | | <div class="textColor1" :class="activeIndex == 1 ? 'active' : ''" @click="changeIndex(1)">{{ $t('邮箱') }}</div> |
| | | <div class="textColor1" :class="activeIndex == 2 ? 'active' : ''" @click="changeIndex(2)" v-if="false">{{ $t('手机号') }}</div> |
| | | <div class="textColor1" :class="activeIndex == 0 ? 'active' : ''" @click="changeIndex(0)" v-if="false"> |
| | | {{ $t('账号') }}</div> |
| | | <div class="textColor1" :class="activeIndex == 1 ? 'active' : ''" @click="changeIndex(1)">{{ $t('邮箱') }} |
| | | </div> |
| | | <div class="textColor1" :class="activeIndex == 2 ? 'active' : ''" @click="changeIndex(2)" v-if="false"> |
| | | {{ $t('手机号') }}</div> |
| | | </div> |
| | | <div style="font-size: 14px"> |
| | | {{ getRegType(activeIndex, true) }} |
| | | </div> |
| | | <ExInput style="border: #bbb 1px solid;border-radius: 3px;padding: 0;padding-bottom: 10px;margin: 10px 0" :placeholderText="getRegType(activeIndex, false)" |
| | | v-model.trim="username" |
| | | :area="isArea" :dialCode="dialCode" @selectArea="onSelectArea" :icon="icon"/> |
| | | <ExInput style="border: #bbb 1px solid;border-radius: 3px;padding: 0;padding-bottom: 10px;margin: 10px 0" |
| | | :placeholderText="getRegType(activeIndex, false)" v-model.trim="username" :area="isArea" |
| | | :dialCode="dialCode" @selectArea="onSelectArea" :icon="icon" /> |
| | | |
| | | <div style="font-size: 14px"> |
| | | {{ $t('设置密码') }} |
| | | </div> |
| | | <ExInput style="border: #bbb 1px solid;border-radius: 3px;padding: 0;padding-bottom: 10px;margin: 10px 0" :placeholderText="$t('密码(6-12个字符)')" v-model="password" typeText="password"/> |
| | | <ExInput style="border: #bbb 1px solid;border-radius: 3px;padding: 0;padding-bottom: 10px;margin: 10px 0" |
| | | :placeholderText="$t('密码(6-12个字符)')" v-model="password" typeText="password" /> |
| | | <div style="font-size: 14px"> |
| | | {{ $t('确认密码') }} |
| | | </div> |
| | | <ExInput style="border: #bbb 1px solid;border-radius: 3px;padding: 0;padding-bottom: 10px;margin: 10px 0" :placeholderText="$t('请确认密码')" v-model="repassword" typeText="password"/> |
| | | <ExInput style="border: #bbb 1px solid;border-radius: 3px;padding: 0;padding-bottom: 10px;margin: 10px 0" |
| | | :placeholderText="$t('密码(6-12个字符)')" v-model="repassword" typeText="password" /> |
| | | |
| | | <div style="font-size: 14px"> |
| | | {{ $t('资金密码') }} |
| | | </div> |
| | | <ExInput style="border: #bbb 1px solid;border-radius: 3px;padding: 0;padding-bottom: 10px;margin: 10px 0" |
| | | :placeholderText="$t('请输入密码')" v-model="safeword" typeText="password" /> |
| | | <div style="font-size: 14px"> |
| | | {{ $t('确认资金密码') }} |
| | | </div> |
| | | <ExInput style="border: #bbb 1px solid;border-radius: 3px;padding: 0;padding-bottom: 10px;margin: 10px 0" |
| | | :placeholderText="$t('请确认密码')" v-model="re_safeword" typeText="password" /> |
| | | <!-- 邮箱验证码 --> |
| | | <div style="display: flex; align-items: center; margin-top: 20px;"> |
| | | <ExInput |
| | | style="border: #bbb 1px solid; border-radius: 3px; padding: 0; padding-bottom: 10px; margin-right: 10px;width: 253px;" |
| | | :placeholderText="$t('请输入邮箱验证码')" v-model="emailVerificationCode" typeText="text" /> |
| | | <div style="background-color: #007BFF; color: white; border-radius: 3px; padding: 6px 12px; font-size: 14px;" |
| | | @click="sendVerificationCode"> |
| | | {{ time==0? $t('获取验证码'):time }} |
| | | </div> |
| | | </div> |
| | | <!-- <div style="font-size: 14px"> |
| | | {{ $t('邀请码(选填)') }} |
| | | </div> |
| | | <ExInput style="border: #bbb 1px solid;border-radius: 3px;padding: 0;padding-bottom: 10px;margin: 10px 0" :placeholderText="$t('请输入邀请码')" v-model="invitCode" :clearBtn="false"/> |
| | | <div class="protocol textColor"> |
| | | <ExInput style="border: #bbb 1px solid;border-radius: 3px;padding: 0;padding-bottom: 10px;margin: 10px 0" :placeholderText="$t('请输入邀请码')" v-model="invitCode" :clearBtn="false"/> --> |
| | | <div class="protocol textColor" style="margin-top: 20px;"> |
| | | <i @click="agreeProt"> |
| | | <img v-show="agree" src="../../assets/image/login/prot2.png" alt=""/> |
| | | <img v-show="!agree" src="../../assets/image/login/prot1.png" alt=""/> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {Popup} from "vant"; |
| | | import { |
| | | Popup |
| | | } from "vant"; |
| | | import ExInput from "@/components/ex-input"; |
| | | import Step from "./step.vue"; |
| | | import Axios from "@/API/login.js"; |
| | | import {mapActions, mapGetters} from 'vuex'; |
| | | import {GET_USERINFO} from '@/store/const.store'; |
| | | import { |
| | | mapActions, |
| | | mapGetters |
| | | } from 'vuex'; |
| | | import { |
| | | GET_USERINFO |
| | | } from '@/store/const.store'; |
| | | import nationalityList from '../authentication/components/nationalityList.vue' |
| | | import Vcode from "vue-puzzle-vcode"; |
| | | import img1 from "../../assets/image/slider/1.png"; |
| | | import img2 from "../../assets/image/slider/2.png"; |
| | | import {getStorage} from '@/utils/utis' |
| | | import { |
| | | getStorage |
| | | } from '@/utils/utis' |
| | | |
| | | export default { |
| | | props: {}, |
| | |
| | | password: "", |
| | | repassword: '', |
| | | invitCode: '',//邀请码 |
| | | re_safeword: '', |
| | | safeword: '', |
| | | activeIndex: 1, |
| | | typeText: "password", |
| | | isArea: false, |
| | | dialCode: 0, //电话号前缀 |
| | | emailVerificationCode: '', //邮箱验证码 |
| | | icon: '', |
| | | time: 0, |
| | | img1, |
| | | img2, |
| | | } |
| | |
| | | }, |
| | | methods: { |
| | | ...mapActions('user', [GET_USERINFO]), |
| | | sendVerificationCode() { |
| | | |
| | | Axios.sendVerifyCode({ |
| | | target: this.username, |
| | | }).then((res) => { |
| | | this.time = 30; |
| | | this.timer = setInterval(() => { |
| | | if (this.time > 0) { |
| | | this.time = this.time - 1 |
| | | } else { |
| | | this.time = 0; |
| | | clearInterval(this.timer) |
| | | } |
| | | }, 1000); |
| | | }).catch((error) => { |
| | | if (error.code === 'ECONNABORTED') { |
| | | this.$toast(this.$t('网络超时!')); |
| | | } else if (error.msg !== undefined) { |
| | | this.$toast(this.$t(error.msg)); |
| | | } |
| | | }); |
| | | }, |
| | | getRegType(activeIndex, bFlag) { |
| | | switch (activeIndex) { |
| | | case 0: |
| | |
| | | }, |
| | | onSuccess() { |
| | | console.log('onSuccess') |
| | | // this.save_email() |
| | | this.registerApi(); |
| | | |
| | | this.show = false; |
| | | }, |
| | | onFail() { |
| | |
| | | this.$toast(this.$t('请输入密码')); |
| | | return |
| | | } |
| | | if (this.invitCode == '') { |
| | | this.$toast(this.$t('请输入邀请码')); |
| | | return |
| | | } |
| | | // if (this.invitCode == '') { |
| | | // this.$toast(this.$t('请输入邀请码')); |
| | | // return |
| | | // } |
| | | if (this.password.length < 6) { |
| | | this.$toast(this.$t('密码(6-12个字符)')); |
| | | return |
| | |
| | | } |
| | | } |
| | | }, |
| | | save_email() { |
| | | Axios.save_email({ |
| | | email: this.username, |
| | | verifcode: this.emailVerificationCode, |
| | | }).then((res) => { |
| | | |
| | | }).catch((error) => { |
| | | if (error.code === 'ECONNABORTED') { |
| | | this.$toast(this.$t('网络超时!')); |
| | | } else if (error.msg !== undefined) { |
| | | this.$toast(this.$t(error.msg)); |
| | | } |
| | | }); |
| | | }, |
| | | registerApi() { |
| | | switch (this.activeIndex) { |
| | | case 0: { |
| | |
| | | } |
| | | } |
| | | Axios.registerUser({ |
| | | username: (this.activeIndex == 0 || this.activeIndex == 1) ? this.username : `${this.dialCode}${this.username}`, |
| | | username: (this.activeIndex == 0 || this.activeIndex == 1) ? this.username : |
| | | `${this.dialCode}${this.username}`, |
| | | password: this.password, |
| | | re_password: this.repassword, |
| | | type: this.type, |
| | | usercode: this.invitCode, |
| | | verifcode: this.emailVerificationCode, |
| | | safeword: this.safeword, |
| | | re_safeword: this.re_safeword, |
| | | // usercode: this.invitCode, |
| | | }).then((res) => { |
| | | this.$toast(this.$t('注册成功')); |
| | | setTimeout(()=>{ |
| | |
| | | <ul> |
| | | <li v-for="item in pairsList" :key="item.symbol" class="flex justify-between py-10"> |
| | | <div class="flex items-center"> |
| | | <img :src="item.symbol ? `${HOST_URL}/symbol/${item.symbol}.png` : require('@/assets/loading-default.png')" |
| | | class="w-52 h-52 rounded-full mr-16" /> |
| | | <!-- <img :src="item.symbol ? `${HOST_URL}/symbol/${item.symbol}.png` : require('@/assets/loading-default.png')" |
| | | class="w-52 h-52 rounded-full mr-16" /> --> |
| | | <p class="flex flex-col"> |
| | | <strong class="font-28 textColor mb-6">{{ item.symbol.toUpperCase() }}</strong> |
| | | <span class="font-20 text-grey">{{ item.full_name }}</span> |
| | |
| | | <ul> |
| | | <li v-for="item in no_zeroList" :key="item.symbol" class="flex justify-between py-10"> |
| | | <div class="flex items-center"> |
| | | <img :src="item.symbol ? `${HOST_URL}/symbol/${item.symbol}.png` : require('@/assets/loading-default.png')" |
| | | class="w-52 h-52 rounded-full mr-16" /> |
| | | <!-- <img :src="item.symbol ? `${HOST_URL}/symbol/${item.symbol}.png` : require('@/assets/loading-default.png')" |
| | | class="w-52 h-52 rounded-full mr-16" /> --> |
| | | <p class="flex flex-col"> |
| | | <strong class="font-28 textColor mb-6">{{ item.symbol.toUpperCase() }}</strong> |
| | | <span class="font-20 text-grey">{{ item.full_name }}</span> |
| | |
| | | buttitle:this.$t('交易')+this.$t('账户'), |
| | | }; |
| | | }, |
| | | mounted(){ |
| | | this.getwallet() |
| | | }, |
| | | created() { |
| | | this.getwallet() |
| | | }, |
| | | beforeRouteUpdate(to, from, next) { |
| | | // 路由更新时调用 |
| | | next(vm => { |
| | | this.getwallet() |
| | | // 这里你可以访问到组件实例 `vm`,可以用来调用一些方法 |
| | | }); |
| | | }, |
| | | watch: { |
| | | '$route'(to, from) { |
| | | // 路由变化时手动触发操作 |
| | | this.getwallet() |
| | | } |
| | | }, |
| | | methods: { |
| | | clickall(){ |
| | |
| | | newcurrency = 'usdc' |
| | | } |
| | | this.$router.push({ |
| | | path: "/Fundverification", |
| | | path: "/withdraw/securityVerification_zh", |
| | | query: { |
| | | currency: newcurrency, |
| | | fromTo: this.toptitle==(this.$t('资金')+this.$t('账户'))?'1':'2', |
| | | amount: this.amount |
| | | }, |
| | | }); |
| | | // return |
| | | // var data = { |
| | | // currency: newcurrency, |
| | | // fromTo: this.toptitle==(this.$t('资金')+this.$t('账户'))?'1':'2', |
| | | // amount: this.amount |
| | | // } |
| | | // await walletGrthertransfer(data).then((res) => { |
| | | // console.log(res); |
| | | // }); |
| | | }, |
| | | async getwallet() { |
| | | await walletGrther().then((data) => { |
| | | console.log(data.id); |
| | | this.usdcMoney = err.usdtMoney |
| | | this.usdcMoney = data.usdtMoney |
| | | }).catch((err)=>{ |
| | | console.log(err.id); |
| | | this.usdcMoney = err.usdtMoney |
| | | }); |
| | | }, |
| | | onClickLeft() { |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="flex flex-centerY" style="margin-top: 20px"> |
| | | <!-- <div class="flex flex-centerY" style="margin-top: 20px"> |
| | | <div @click="$router.push('/recharge/rechargeList')" class="flexY-center" style="flex: 1"> |
| | | <img src="../../assets/new/img_1.png" class="ic1"/> |
| | | <div> |
| | |
| | | {{ $t('资产') }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | <!-- <div @click="$router.push('/promote')" class="flex flex-centerY css-1uwabd6"> |
| | | <img :src="require(`../../assets/theme/${this.theme}/image/yqhy.png`)" style="width: 25px;height: 25px"/> |
| | | <div style="margin-left: 20px"> |
| | |
| | | import AxiosWithdraw from "@/API/withdraw.js" |
| | | import assetsHead from "@/components/assets-head"; |
| | | import BarScan from '@/components/scan/scan.vue'; |
| | | import { _getAllWallet } from "@/API/fund.api"; |
| | | import { _getAllWallet,walletGrther } from "@/API/fund.api"; |
| | | import AxiosUser from "@/API/userCenter"; |
| | | import { mapGetters } from "vuex"; |
| | | export default { |
| | |
| | | }, |
| | | //获取钱包余额 |
| | | getAvailable(symbol) { |
| | | _getAllWallet().then((res) => { |
| | | let walletList = res.extends; |
| | | let initObj = walletList.find(item => { |
| | | return item.symbol.toLowerCase() == symbol.toLowerCase() |
| | | }) |
| | | this.usdtBalance = initObj.usable |
| | | walletGrther().then((res) => { |
| | | console.log('symbol.toLowerCase()',symbol.toLowerCase()); |
| | | if(symbol.toLowerCase()=='usdt'){ |
| | | this.usdtBalance = res.usdtMoney |
| | | }else if(symbol.toLowerCase()=='eth'){ |
| | | this.usdtBalance = res.ethMoney |
| | | }else{ |
| | | this.usdtBalance = res.btcMoney |
| | | } |
| | | // let walletList = res.extends; |
| | | // let initObj = walletList.find(item => { |
| | | // return item.symbol.toLowerCase() == symbol.toLowerCase() |
| | | // }) |
| | | // this.usdtBalance = initObj.usable |
| | | }); |
| | | }, |
| | | //点全部 |
| New file |
| | |
| | | <template> |
| | | <div id="withdraw_verify" class="withdraw_verify"> |
| | | <assets-head /> |
| | | <div class="content"> |
| | | <div class="title textColor">{{ $t('安全验证') }}</div> |
| | | <p>{{ $t('请输入资金密码') }}</p> |
| | | <div class="iptbox inputBackground"> |
| | | <input class="inputBackground textColor" type="password" :placeholder="$t('请输入密码')" v-model="password"> |
| | | </div> |
| | | <div class="mt-40" v-if="this.isGoogleInput"> |
| | | <p>{{ $t('请输入谷歌验证码') }}</p> |
| | | <div class="iptbox inputBackground"> |
| | | <input class="inputBackground textColor" type="password" :placeholder="$t('请输入谷歌验证码')" |
| | | v-model="googleCode"> |
| | | </div> |
| | | </div> |
| | | <div class="btn btnMain" @click="confirm">{{ $t('提交') }}</div> |
| | | <div class="mt-42" style="color:#1D91FF;"><span |
| | | @click="$router.push('/resetVerify?type=0')">{{ $t('资金密码不可用?') }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import assetsHead from "@/components/assets-head"; |
| | | import { |
| | | Form, |
| | | Field, |
| | | CellGroup |
| | | } from 'vant'; |
| | | import { |
| | | walletGrther, |
| | | walletGrthertransfer, |
| | | getwalletGrther |
| | | } from "@/API/fund.api"; |
| | | import AxiosWithdraw from "@/API/withdraw.js" |
| | | import otcApi from "@/API/otc"; |
| | | import AxiosUser from "@/API/userCenter"; |
| | | |
| | | export default { |
| | | name: "withdrawalSecurityVerification", |
| | | props: ['type'], |
| | | components: { |
| | | assetsHead, |
| | | [Form.name]: Form, |
| | | [Field.name]: Field, |
| | | [CellGroup.name]: CellGroup, |
| | | }, |
| | | data() { |
| | | return { |
| | | password: '', |
| | | data: null, |
| | | sessionToken: '', |
| | | googleCode: '', |
| | | isGoogleInput: false |
| | | } |
| | | }, |
| | | created() { |
| | | AxiosUser._getIsGoogleAuth({ |
| | | code: 'google_auth_secret_open' |
| | | }).then(res => { |
| | | this.isGoogleInput = res.data.google_auth_secret_open === '1' |
| | | }) |
| | | this.data = this.$route.query |
| | | this.getToken() |
| | | }, |
| | | methods: { |
| | | getToken() { |
| | | AxiosWithdraw.GetSessionToken().then((res) => { |
| | | this.sessionToken = res.data.session_token; |
| | | }); |
| | | }, |
| | | onSubmit(values) { |
| | | console.log('submit', values); |
| | | }, |
| | | async confirm(data) { |
| | | if (!this.password) { |
| | | this.$toast(this.$t('请输入资金密码')); |
| | | return |
| | | } |
| | | var data = { |
| | | currency: this.$route.query.currency, |
| | | fromTo: this.$route.query.fromTo, |
| | | amount: this.$route.query.amount, |
| | | safeword:this.password |
| | | } |
| | | await walletGrthertransfer(data).then((res) => { |
| | | console.log(res); |
| | | this.$toast(this.$t('操作成功')); |
| | | // this.$router.push({ |
| | | // path: "/transfer", |
| | | // }); |
| | | this.$router.go(-1); |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .withdraw_verify { |
| | | width: 100%; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .cl { |
| | | color: dodgerblue; |
| | | } |
| | | |
| | | .title { |
| | | font-weight: 700; |
| | | font-size: 52px; |
| | | margin-top: 54px; |
| | | margin-bottom: 56px; |
| | | } |
| | | |
| | | .content { |
| | | padding: 0 32px; |
| | | |
| | | p { |
| | | color: #868D9A; |
| | | font-size: 30px; |
| | | margin-bottom: 18px; |
| | | } |
| | | |
| | | .iptbox { |
| | | height: 88px; |
| | | margin-top: 16px; |
| | | padding: 0 20px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | border-radius: 8px; |
| | | |
| | | input { |
| | | flex: 1; |
| | | height: 100%; |
| | | border: none; |
| | | } |
| | | |
| | | span { |
| | | color: #1D91FF; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .btn { |
| | | color: #fff; |
| | | height: 88px; |
| | | line-height: 88px; |
| | | text-align: center; |
| | | font-size: 32px; |
| | | margin-top: 178px; |
| | | border-radius: 10px; |
| | | } |
| | | </style> |
| | |
| | | /* webpackChunkName: "SecurityVerification" */ /* webpackPrefetch: true */"@/page/withdraw/withdrawalSecurityVerification" |
| | | ), |
| | | }, |
| | | { |
| | | //提现申请密码验证 |
| | | path: "/withdraw/securityVerification_zh", |
| | | name: "SecurityVerification_zh", |
| | | meta: { index: 10 }, |
| | | props(route) { |
| | | return { |
| | | ...route.query |
| | | } |
| | | }, |
| | | component: () => |
| | | import( |
| | | /* webpackChunkName: "SecurityVerification" */ /* webpackPrefetch: true */"@/page/withdraw/withdrawalSecurityVerification_huazhuan" |
| | | ), |
| | | }, |
| | | { |
| | | //提现详情 |
| | | path: "/withdraw/withdrawDetail", |