ib-new.5651af77.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ib-new"],{5352:function(e,t,a){},"57c7":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],attrs:{id:"IB_newAccount","element-loading-background":"rgba(43, 48, 67, 0.05)","element-loading-spinner":"el-icon-loading"}},[a("div",{staticClass:"crm-title-box"},[a("div",{staticClass:"tit"},[1==this.params.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.NewAccount.TitleM",expression:"'Ib.NewAccount.TitleM'"}]}):e._e(),2==this.params.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.NewAccount.TitleP",expression:"'Ib.NewAccount.TitleP'"}]}):e._e()])]),e.showPage?a("div",{staticClass:"main-content"},["-1"!=e.showLogin.indexOf("1")&&"-1"!=e.showLogin.indexOf("2")&&"-1"!=e.showLogin.indexOf("3")&&"-1"!=e.showLogin.indexOf("6")&&"-1"!=e.showLogin.indexOf("7")&&"-1"!=e.showLogin.indexOf("8")?a("div",{staticClass:"box"},[a("div",{staticStyle:{margin:"20px 0","font-size":"14px","line-height":"1.7"}},[a("span",{directives:[{name:"t",rawName:"v-t",value:"news_add_field.OpenAccount.Des3",expression:"'news_add_field.OpenAccount.Des3'"}]})])]):a("div",{staticClass:"box"},[a("p",{staticClass:"tit"},[a("i",{staticClass:"el-icon-caret-right"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.NewAccount.Title1",expression:"'Ib.NewAccount.Title1'"}]})]),a("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.NewAccount.Des1",expression:"'Ib.NewAccount.Des1'"}],staticClass:"des"}),a("div",{staticClass:"b-card"},[a("el-row",{staticClass:"card-bottom"},[a("el-form",{ref:"params",staticClass:"form",attrs:{model:e.params,rules:e.rules,"label-position":"top"}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"platform",label:e.$t("Ib.NewAccount.Platform")}},[a("el-select",{staticClass:"crm_select_icon",attrs:{filterable:"",placeholder:e.$t("placeholder.choose")},model:{value:e.params.platform,callback:function(t){e.$set(e.params,"platform",t)},expression:"params.platform"}},[a("el-option",{attrs:{label:"MT4",value:"MT4"}})],1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"accountType",label:e.$t("Ib.NewAccount.LoginType")}},[a("el-select",{staticClass:"crm_select_icon",attrs:{filterable:"",placeholder:e.$t("placeholder.choose")},model:{value:e.params.accountType,callback:function(t){e.$set(e.params,"accountType",t)},expression:"params.accountType"}},["-1"==e.showLogin.indexOf("1")?a("el-option",{attrs:{label:e.$t("AccountType.ClassicAccount"),value:1},nativeOn:{click:function(t){return e.checkAccountType(1)}}}):e._e(),"-1"==e.showLogin.indexOf("2")?a("el-option",{attrs:{label:e.$t("AccountType.SeniorAccount"),value:2},nativeOn:{click:function(t){return e.checkAccountType(2)}}}):e._e(),"-1"==e.showLogin.indexOf("3")?a("el-option",{attrs:{label:e.$t("AccountType.AgencyAccount"),value:3},nativeOn:{click:function(t){return e.checkAccountType(3)}}}):e._e(),"-1"==e.showLogin.indexOf("6")?a("el-option",{attrs:{label:e.$t("AccountType.SpeedAccount"),value:6},nativeOn:{click:function(t){return e.checkAccountType(6)}}}):e._e(),"-1"==e.showLogin.indexOf("7")?a("el-option",{attrs:{label:e.$t("AccountType.StandardAccount"),value:7},nativeOn:{click:function(t){return e.checkAccountType(7)}}}):e._e(),"-1"==e.showLogin.indexOf("8")?a("el-option",{attrs:{label:e.$t("AccountType.CentAccount"),value:8},nativeOn:{click:function(t){return e.checkAccountType(8)}}}):e._e()],1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"leverage",label:e.$t("Ib.NewAccount.Lever")}},[a("el-select",{staticClass:"crm_select_icon",attrs:{filterable:"",placeholder:e.$t("placeholder.choose")},on:{change:e.selectChange},model:{value:e.params.leverage,callback:function(t){e.$set(e.params,"leverage",t)},expression:"params.leverage"}},e._l(e.optionsLev,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"currency",label:e.$t("Ib.NewAccount.Currency")}},[a("el-select",{staticClass:"crm_select_icon",attrs:{filterable:"",placeholder:e.$t("placeholder.choose")},on:{change:e.selectChange},model:{value:e.params.currency,callback:function(t){e.$set(e.params,"currency",t)},expression:"params.currency"}},e._l(e.optionsCur,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"commission",label:e.$t("Ib.NewAccount.Commission")}},[a("el-select",{staticClass:"crm_select_icon",attrs:{filterable:"",placeholder:e.$t("placeholder.choose")},on:{change:e.selectChange},model:{value:e.params.commission,callback:function(t){e.$set(e.params,"commission",t)},expression:"params.commission"}},e._l(e.optionsCom,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Ib.NewAccount.Btn",expression:"'Ib.NewAccount.Btn'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:function(t){return e.newAccount()}}})],1)],1)],1)],1)],1)]),a("div",{staticClass:"box"},[a("div",{staticStyle:{margin:"20px 0","font-size":"14px","line-height":"1.7"}},[1==this.params.type?a("div",{directives:[{name:"t",rawName:"v-t",value:"Ib.NewAccount.Dec1",expression:"'Ib.NewAccount.Dec1'"}],staticStyle:{"font-weight":"bold","margin-bottom":"5px"}}):e._e(),1==this.params.type?a("div",{directives:[{name:"t",rawName:"v-t",value:"Ib.NewAccount.Dec2",expression:"'Ib.NewAccount.Dec2'"}]}):e._e(),2==this.params.type?a("div",{directives:[{name:"t",rawName:"v-t",value:"Ib.NewAccount.Dec3",expression:"'Ib.NewAccount.Dec3'"}],staticStyle:{"font-weight":"bold","margin-bottom":"5px"}}):e._e(),2==this.params.type?a("div",{directives:[{name:"t",rawName:"v-t",value:"Ib.NewAccount.Dec4",expression:"'Ib.NewAccount.Dec4'"}]}):e._e()])]),6==this.params.accountType?a("div",{staticClass:"box"},[a("div",{staticStyle:{margin:"20px 0","font-size":"14px","line-height":"1.7"}},[a("div",[a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.NewAccount.Dec5",expression:"'Ib.NewAccount.Dec5'"}]}),-1!=["cn","zhHant"].indexOf(e.Session.Get("lang"))?a("a",{directives:[{name:"t",rawName:"v-t",value:"Ib.NewAccount.Dec6",expression:"'Ib.NewAccount.Dec6'"}],staticClass:"crm-cursor",staticStyle:{color:"#368FEC"},attrs:{href:"https://www.cwgvu.com/cn/leveragemargin",target:"_blank"}}):a("a",{directives:[{name:"t",rawName:"v-t",value:"Ib.NewAccount.Dec6",expression:"'Ib.NewAccount.Dec6'"}],staticClass:"crm-cursor",staticStyle:{color:"#368FEC"},attrs:{href:"https://www.cwgvu.com/en/leveragemargin",target:"_blank"}}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.NewAccount.Dec7",expression:"'Ib.NewAccount.Dec7'"}]})])])]):e._e()]):e._e(),a("el-dialog",{attrs:{visible:e.dialogCheck,center:"","close-on-click-modal":!1,"show-close":!1,"custom-class":"dialog_header_w"},on:{"update:visible":function(t){e.dialogCheck=t}}},[e.dialogVisible?a("div",{staticClass:"dia-content"},[a("div",{staticClass:"icon"},[a("i",{staticClass:"iconfont iconchenggong"})]),a("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des1",expression:"'ApplicationDialog.Des1'"}],staticClass:"des1"}),a("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des12",expression:"'ApplicationDialog.Des12'"}],staticClass:"des2"}),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.closeDia}}),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.closeDia}})],1)]):e._e(),e.dialogVisible?e._e():a("div",{staticClass:"dia-content"},[a("div",{staticClass:"icon"},[a("i",{staticClass:"iconfont iconjingshi"})]),a("div",{staticClass:"des1"},[e._v(e._s(e.RES))]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.closeDia}}),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.closeDia}})],1)])])],1)},s=[],i=(a("4160"),a("a9e3"),a("159b"),a("5530")),c=(a("96cf"),a("1da1")),r=a("1c45"),o=a("f121"),l=a.n(o),u=l.a.Code,p={name:"OpenAccount",computed:{rule1:function(){return!!this.params.password&&/^.{8,15}$/.test(this.params.password)},rule2:function(){return/^(?=.*?[a-z])(?=.*?[A-Z]).*$/.test(this.params.password)},rule4:function(){return/^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[~!@&%$^*./\\(\\)\\+\\=#_-])[A-Za-z0-9~!@&%$^*./\\(\\)\\+\\=#_-]{8,16}$/.test(this.params.password)}},data:function(){var e=this;return{pictLoading:!1,flag:!1,RES:"",dialogCheck:!1,dialogVisible:!1,showData:{},isOpenAccount:0,checked:"",optionsLev:[],optionsCom:[],optionsCur:[],showLogin:[],showPage:!1,params:{type:"",currency:"",commission:"",leverage:"",accountType:"",platform:""},rules:{password:[{validator:function(t,a,n){/^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[~!@&%$^*./\\(\\)\\+\\=#_-])[A-Za-z0-9~!@&%$^*./\\(\\)\\+\\=#_-]{8,16}$/.test(a)?n():n(new Error(e.$i18n.t("vaildate.password.format")))},trigger:"blur",required:!0}],currency:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],commission:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],leverage:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],accountType:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],platform:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}]}}},methods:{selectChange:function(){this.$forceUpdate()},closeDia:function(){this.$refs["params"]&&this.$refs["params"].resetFields(),this.dialogCheck=!1,this.dialogVisible=!1},getMustData:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,r["a"].MamApplyData({});case 2:a=t.sent,a.code==u.StatusOK?e.showData=a.data:e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},getExcludeShowLogin:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.pictLoading=!0,t.next=3,r["a"].excludeShowLogin({});case 3:a=t.sent,a.code==u.StatusOK?(null==a.data?e.showLogin=[]:e.showLogin=a.data.excludeShowLoginTypes,e.showPage=!0,e.pictLoading=!1):(e.$pigeon.MessageError(a.msg),e.pictLoading=!1);case 5:case"end":return t.stop()}}),t)})))()},newAccount:function(){var e=this;this.$refs["params"].validate(function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(a){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=12;break}if(!e.flag){t.next=5;break}return t.abrupt("return");case 5:e.flag=!0;case 6:return t.next=8,r["a"].MamApplyAdd(Object(i["a"])({},e.params));case 8:n=t.sent,n.code==u.StatusOK?(e.dialogCheck=!0,e.dialogVisible=!0,e.flag=!1):(e.RES=n.msg,e.dialogCheck=!0,e.dialogVisible=!1,e.flag=!1),t.next=13;break;case 12:return t.abrupt("return",!1);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},checkAccountType:function(e){var t=this;this.showData.forEach((function(a){a.type==e&&(t.optionsLev=a.leverage,t.optionsCur=a.currency,t.optionsCom=a.commission)}))}},mounted:function(){this.params.type=Number(this.$route.query.type)?Number(this.$route.query.type):1,this.getExcludeShowLogin(),this.getMustData()},watch:{"params.accountType":function(){this.params.leverage="",this.params.currency="",this.params.commission=""}}},m=p,d=(a("dfdc"),a("fb16"),a("2877")),v=Object(d["a"])(m,n,s,!1,null,"99b6f66c",null);t["default"]=v.exports},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,a){var n=a("1d80"),s=a("5899"),i="["+s+"]",c=RegExp("^"+i+i+"*"),r=RegExp(i+i+"*$"),o=function(e){return function(t){var a=String(n(t));return 1&e&&(a=a.replace(c,"")),2&e&&(a=a.replace(r,"")),a}};e.exports={start:o(1),end:o(2),trim:o(3)}},7156:function(e,t,a){var n=a("861d"),s=a("d2bb");e.exports=function(e,t,a){var i,c;return s&&"function"==typeof(i=t.constructor)&&i!==a&&n(c=i.prototype)&&c!==a.prototype&&s(e,c),e}},a9e3:function(e,t,a){"use strict";var n=a("83ab"),s=a("da84"),i=a("94ca"),c=a("6eeb"),r=a("5135"),o=a("c6b6"),l=a("7156"),u=a("c04e"),p=a("d039"),m=a("7c73"),d=a("241c").f,v=a("06cf").f,f=a("9bf2").f,g=a("58a8").trim,h="Number",w=s[h],b=w.prototype,A=o(m(b))==h,y=function(e){var t,a,n,s,i,c,r,o,l=u(e,!1);if("string"==typeof l&&l.length>2)if(l=g(l),t=l.charCodeAt(0),43===t||45===t){if(a=l.charCodeAt(2),88===a||120===a)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:n=2,s=49;break;case 79:case 111:n=8,s=55;break;default:return+l}for(i=l.slice(2),c=i.length,r=0;r<c;r++)if(o=i.charCodeAt(r),o<48||o>s)return NaN;return parseInt(i,n)}return+l};if(i(h,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var N,x=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof x&&(A?p((function(){b.valueOf.call(a)})):o(a)!=h)?l(new w(y(t)),a,x):y(t)},C=n?d(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;C.length>_;_++)r(w,N=C[_])&&!r(x,N)&&f(x,N,v(w,N));x.prototype=b,b.constructor=x,c(s,h,x)}},b0a7:function(e,t,a){},dfdc:function(e,t,a){"use strict";var n=a("5352"),s=a.n(n);s.a},fb16:function(e,t,a){"use strict";var n=a("b0a7"),s=a.n(n);s.a}}]);