"use strict";(self["webpackChunkexchange"]=self["webpackChunkexchange"]||[]).push([[1420],{3717:function(t,e,i){i.d(e,{A:function(){return d}});var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"assetsHead"}},[i("van-nav-bar",{attrs:{border:!1,title:t.title,"left-arrow":t.showLeft},on:{"click-left":t.onClickLeft},scopedSlots:t._u([{key:"right",fn:function(){return[t._t("default")]},proxy:!0}],null,!0)})],1)},a=[],s=(i(44114),{name:"assets-head",props:{title:{type:String,default:""},goHome:{type:Boolean,default:!1},goAssetsCenter:{type:Boolean,default:!1},goPerpetualContract:{type:Boolean,default:!1},showLeft:{type:Boolean,default:!0},backFunc:{type:Function},clickFunc:{type:Function}},methods:{onClickLeft(){this.goHome?this.$router.push("/"):this.goAssetsCenter?this.$router.push("/assetsCenter/assets"):this.goPerpetualContract?this.$router.go(-2):this.backFunc?this.backFunc():this.clickFunc?this.clickFunc():this.$router.go(-1)}}}),n=s,r=i(81656),l=(0,r.A)(n,o,a,!1,null,"77f40d14",null),d=l.exports},2644:function(t,e,i){i.r(e),i.d(e,{default:function(){return w}});var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"withdraw_verify",attrs:{id:"withdraw_verify"}},[i("assets-head"),i("div",{staticClass:"content"},[i("div",{staticClass:"title textColor"},[t._v(t._s(t.$t("安全验证")))]),i("p",[t._v(t._s(t.$t("请输入资金密码")))]),i("div",{staticClass:"iptbox inputBackground"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"inputBackground textColor",attrs:{type:"password",placeholder:t.$t("请输入密码")},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),i("div",{staticClass:"btn btnMain",on:{click:t.confirm}},[t._v(t._s(t.$t("提交")))]),i("div",{staticClass:"mt-42",staticStyle:{color:"#1D91FF"}},[i("span",{on:{click:function(e){return t.$router.push("/resetVerify?type=0")}}},[t._v(t._s(t.$t("资金密码不可用?")))])])])],1)},a=[],s=(i(25481),i(49565)),n=(i(86291),i(14189)),r=(i(56879),i(54629)),l=(i(44114),i(3717)),d=i(44132),u=i(80668),c=i(50404),h=i(94348),g={name:"withdrawalSecurityVerification",props:["type"],components:{assetsHead:l.A,[r.A.name]:r.A,[n.A.name]:n.A,[s.A.name]:s.A},data(){return{password:"",data:null,sessionToken:"",googleCode:"",isGoogleInput:!1}},created(){c.A._getIsGoogleAuth({code:"google_auth_secret_open"}).then((t=>{this.isGoogleInput="1"===t.data.google_auth_secret_open})),this.data=this.$route.query,this.getToken()},methods:{getToken(){d.A.GetSessionToken().then((t=>{this.sessionToken=t.data.session_token}))},onSubmit(t){h.log("submit",t)},confirm(t){if("sell"===this.type||"buy"===this.type){if(!this.password)return void this.$toast(this.$t("请输入资金密码"));"buy"===this.type?u.Ay.ctcOrderPayFinish({order_no:this.$store.state.c2c.order_no,safe_password:this.password}).then((t=>{t.code/1===0&&this.$router.push({path:"/paymentDetail"})})):u.Ay.ctcOrderPass({order_no:this.$store.state.c2c.order_no,safe_password:this.password}).then((t=>{this.isLoading=!1,this.$router.replace({path:"/tradeSuccessSell"})}))}else{if(!this.password)return void this.$toast(this.$t("请输入资金密码"));d.A.WithdrawApply({session_token:this.sessionToken,amount:this.data.amount,from:this.data.from,safeword:this.password,channel:this.data.channel,googleCode:this.googleCode}).then((t=>{0==t.code?this.$router.push({path:"/withdraw/withdrawSumbit"}):this.getToken()})).catch((t=>{105==t.code?this.$toast(this.$t("当前还需交易%s,才可提币",{MONEY:t.msg})):"ECONNABORTED"===t.code?this.$toast(this.$t("网络超时!")):void 0!==t.msg&&this.$toast(this.$t(t.msg)),this.getToken()}))}}}},p=g,f=i(81656),m=(0,f.A)(p,o,a,!1,null,"3454500f",null),w=m.exports},49565:function(t,e,i){var o=i(4250),a=i.n(o),s=i(47456),n=i(15827),r=i(56374),l=(0,s.Y)("cell-group"),d=l[0],u=l[1];function c(t,e,i,o){var s,l=t("div",a()([{class:[u({inset:e.inset}),(s={},s[r.pT]=e.border,s)]},(0,n.IL)(o,!0)]),[null==i.default?void 0:i.default()]);return e.title||i.title?t("div",{key:o.data.key},[t("div",{class:u("title",{inset:e.inset})},[i.title?i.title():e.title]),l]):l}c.props={title:String,inset:Boolean,border:{type:Boolean,default:!0}},e.A=d(c)},25481:function(t,e,i){i(76952)},54629:function(t,e,i){i(44114);var o=i(47456),a=i(81793),s=(0,o.Y)("form"),n=s[0],r=s[1];e.A=n({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{vanForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(t){return t?this.fields.filter((function(e){return-1!==t.indexOf(e.name)})):this.fields},validateSeq:function(t){var e=this;return new Promise((function(i,o){var a=[],s=e.getFieldsByNames(t);s.reduce((function(t,e){return t.then((function(){if(!a.length)return e.validate().then((function(t){t&&a.push(t)}))}))}),Promise.resolve()).then((function(){a.length?o(a):i()}))}))},validateFields:function(t){var e=this;return new Promise((function(i,o){var a=e.getFieldsByNames(t);Promise.all(a.map((function(t){return t.validate()}))).then((function(t){t=t.filter((function(t){return t})),t.length?o(t):i()}))}))},validate:function(t){return t&&!Array.isArray(t)?this.validateField(t):this.validateFirst?this.validateSeq(t):this.validateFields(t)},validateField:function(t){var e=this.fields.filter((function(e){return e.name===t}));return e.length?new Promise((function(t,i){e[0].validate().then((function(e){e?i(e):t()}))})):Promise.reject()},resetValidation:function(t){t&&!Array.isArray(t)&&(t=[t]);var e=this.getFieldsByNames(t);e.forEach((function(t){t.resetValidation()}))},scrollToField:function(t,e){this.fields.some((function(i){return i.name===t&&(i.$el.scrollIntoView(e),!0)}))},addField:function(t){this.fields.push(t),(0,a.w)(this.fields,this)},removeField:function(t){this.fields=this.fields.filter((function(e){return e!==t}))},getValues:function(){return this.fields.reduce((function(t,e){return t[e.name]=e.formValue,t}),{})},onSubmit:function(t){t.preventDefault(),this.submit()},submit:function(){var t=this,e=this.getValues();this.validate().then((function(){t.$emit("submit",e)})).catch((function(i){t.$emit("failed",{values:e,errors:i}),t.scrollToError&&t.scrollToField(i[0].name)}))}},render:function(){var t=arguments[0];return t("form",{class:r(),on:{submit:this.onSubmit}},[this.slots()])}})},56879:function(t,e,i){i(76952)},50404:function(t,e,i){var o=i(60783),a=i(91655);const s=t=>(0,o.zi)({url:"/api/user!updateOldAndNewPsw.action",method:"get",isLoading:!0},t),n=t=>(0,o.zi)({url:"/api/user!updatepsw.action",method:"get",isLoading:!0},t),r=t=>(0,o.zi)({url:"/api/user!resetpsw.action",method:"get",isLoading:!0},t),l=t=>(0,o.zi)({url:"/api/user!setSafewordReg.action",method:"get",isLoading:!0},t),d=t=>(0,o.zi)({url:"/api/user!updateOldAndNewSafeword.action",method:"get",isLoading:!0},t),u=t=>(0,o.zi)({url:"/api/user!setSafeword.action",method:"get",isLoading:!0},t),c=t=>(0,o.zi)({url:"/api/localuser!save_email.action",method:"get",isLoading:!0},t),h=t=>(0,o.zi)({url:"/api/localuser!save_phone.action",method:"get",isLoading:!1},t),g=t=>(0,o.zi)({url:"/api/user!getVerifTarget.action",method:"get",isLoading:!1},t),p=t=>(0,o.zi)({url:"/api/user!getUserNameVerifTarget.action",method:"get",isLoading:!0},t),f=t=>(0,o.zi)({url:"/api/googleauth!get.action",method:"get",isLoading:!1},t),m=t=>(0,o.zi)({url:"/api/googleauth!bind.action",method:"get",isLoading:!0},t),w=t=>(0,o.zi)({url:"/api/user!get_safeword_apply.action",method:"get",isLoading:!0},t),v=t=>(0,o.zi)({url:"/api/user!set_safeword_apply.action",method:"get",isLoading:!0},t),y=t=>(0,o.zi)({url:"/api/localuser!get.action",method:"get",isLoading:!1},t),L=t=>(0,o.zi)({url:"/api/kycHighLevel!apply.action",method:"get",isLoading:!1},t),_=t=>(0,o.zi)({url:"/api/kycHighLevel!get.action",method:"get",isLoading:!1},t),A=t=>(0,o.zi)({url:"/api/banner!list.action",method:"get",isLoading:!1},t),k=t=>(0,o.zi)({url:"/api/cms!get.action",method:"get",isLoading:!1},t),b=t=>(0,o.zi)({url:"/api/news!list_v2.action",method:"get",isLoading:!1},t),z=t=>(0,o.zi)({url:"/api/news!list.action",method:"get",isLoading:!1},t),$=t=>(0,o.zi)({url:"/api/news!get.action",method:"get",isLoading:!1},t),F=t=>(0,o.zi)({url:"/api/news!list_v2_popup.action",method:"get",isLoading:!1},t),S=t=>(0,o.zi)({url:"/api/syspara!getSyspara.action",method:"get",isLoading:!1},t),C=t=>(0,a.A)({url:"/api/tConfiguration/getConfiguration",method:"get",isLoading:!1},t),B={getConfigurationByKey:C,changePassword:s,updatepsw:n,resetpsw:r,setSafewordReg:l,changeFundsPassword:d,getVerifTarget:g,getUserNameVerifTarget:p,setSafeword:u,bindEmail:c,bindPhone:h,getGoogleauth:f,bindGoogleauth:m,getSafewordApply:w,setSafewordApply:v,localuserAction:y,kycHighLevelApply:L,getKycHighLevel:_,getBanner:A,getCms:k,_getNewsList:b,_getNewsList1:z,_getNews:$,_getPopupNews:F,_getIsGoogleAuth:S};e.A=B},44132:function(t,e,i){var o=i(60783);const a=t=>(0,o.zi)({url:"api/wallet!getUsdt.action",method:"get",isLoading:!1},t),s=t=>(0,o.zi)({url:"api/withdraw!withdraw_open.action",method:"get",isLoading:!1},t),n=t=>(0,o.zi)({url:"api/withdraw!apply.action",method:"get",isLoading:!1},t),r=t=>(0,o.zi)({url:"api/withdraw!fee.action",method:"get",isLoading:!1},t),l=t=>(0,o.zi)({url:"api/withdraw!limit.action",method:"get",isLoading:!1},t),d=t=>(0,o.zi)({url:"api/withdraw!list.action",method:"get",isLoading:!1},t),u=t=>(0,o.zi)({url:"api/withdraw!get.action",method:"get",isLoading:!1},t);e.A={GetUsdt:a,GetSessionToken:s,WithdrawApply:n,WithdrawFee:r,WithdrawLimit:l,WithdrawList:d,WithdrawDetail:u}}}]);
|