| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user"],{"0e72":function(t,e,s){t.exports=s.p+"img/trust-pilot.e616618f.png"},3419:function(t,e,s){"use strict";s("998e")},"3ab2":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"user"}},[e("div",{staticClass:"section-common section-top"},[e("div",{staticClass:"bar"},[e("div",{staticClass:"language"},[t.systemList.length>0?e("div",{staticClass:"system-switch"},[e("el-dropdown",{attrs:{trigger:"click"}},[e("span",{staticClass:"menu crm-cursor"},[t._v(" "+t._s(t.currentSystemName)+" "),e("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.systemList,(function(s){return e("el-dropdown-item",{key:s.sysCode,class:{"is-active":s.sysCode===t.currentSystemCode},nativeOn:{click:function(e){return t.switchSystem(s)}}},[e("span",[t._v(t._s(t.getSystemDisplayName(s)))]),s.sysCode===t.currentSystemCode?e("i",{staticClass:"el-icon-check"}):t._e()])})),1)],1)],1):t._e(),t.systemList.length>0?e("div",{staticClass:"rbt-separator d-none d-xl-block"}):t._e(),e("el-dropdown",{attrs:{trigger:"click"},on:{command:t.chooseLang}},[e("div",["ENGLISH"==t.langList[t.language]?e("img",{staticStyle:{width:"15px",height:"10px",margin:"0 4px"},attrs:{src:s("d66a"),alt:""}}):t._e(),"中文简体"==t.langList[t.language]?e("img",{staticStyle:{width:"15px",height:"10px",margin:"0 4px"},attrs:{src:s("8561"),alt:""}}):t._e(),"中文繁体"==t.langList[t.language]?e("img",{staticStyle:{width:"15px",height:"10px",margin:"0 4px"},attrs:{src:s("8561"),alt:""}}):t._e(),"Tiếng Việt"==t.langList[t.language]?e("img",{staticStyle:{width:"15px",height:"10px",margin:"0 4px"},attrs:{src:s("c626"),alt:""}}):t._e(),"Deutsch"==t.langList[t.language]?e("img",{staticStyle:{width:"15px",height:"10px",margin:"0 4px"},attrs:{src:s("c1f2"),alt:""}}):t._e(),"Español"==t.langList[t.language]?e("img",{staticStyle:{width:"15px",height:"10px",margin:"0 4px"},attrs:{src:s("531e"),alt:""}}):t._e(),"Indonesian"==t.langList[t.language]?e("img",{staticStyle:{width:"15px",height:"10px",margin:"0 4px"},attrs:{src:s("1fbd"),alt:""}}):t._e(),"Melayu"==t.langList[t.language]?e("img",{staticStyle:{width:"15px",height:"10px",margin:"0 4px"},attrs:{src:s("1011"),alt:""}}):t._e(),"ภาษาไทย"==t.langList[t.language]?e("img",{staticStyle:{width:"15px",height:"10px",margin:"0 4px"},attrs:{src:s("2032"),alt:""}}):t._e(),"العربية"==t.langList[t.language]?e("img",{staticStyle:{width:"15px",height:"10px",margin:"0 4px"},attrs:{src:s("f510"),alt:""}}):t._e(),"한국어"==t.langList[t.language]?e("img",{staticStyle:{width:"15px",height:"10px",margin:"0 4px"},attrs:{src:s("97d7"),alt:""}}):t._e(),"Português"==t.langList[t.language]?e("img",{staticStyle:{width:"15px",height:"10px",margin:"0 4px"},attrs:{src:s("584d"),alt:""}}):t._e(),"زبان پارسی"==t.langList[t.language]?e("img",{staticStyle:{width:"15px",height:"10px",margin:"0 4px"},attrs:{src:s("c5d1"),alt:""}}):t._e(),"Türkçe"==t.langList[t.language]?e("img",{staticStyle:{width:"15px",height:"10px",margin:"0 4px"},attrs:{src:s("1f4d"),alt:""}}):t._e(),e("span",{staticClass:"menu"},[t._v(" "+t._s(t.langList[t.language])+" "),e("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]),e("el-dropdown-menu",{staticStyle:{position:"sticky",top:"50px","max-height":"calc(100vh - 80px)",overflow:"hidden","overflow-y":"scroll","scrollbar-width":"none"},attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{attrs:{command:"cn"}},[t._v("中文简体")]),e("el-dropdown-item",{attrs:{command:"zhHant"}},[t._v("中文繁体")]),e("el-dropdown-item",{attrs:{command:"en"}},[t._v("English")]),e("el-dropdown-item",{attrs:{command:"vn"}},[t._v("Tiếng Việt")]),e("el-dropdown-item",{attrs:{command:"de"}},[t._v("Deutsch")]),e("el-dropdown-item",{attrs:{command:"es"}},[t._v("Español")]),e("el-dropdown-item",{attrs:{command:"id"}},[t._v("Indonesian")]),e("el-dropdown-item",{attrs:{command:"ms"}},[t._v("Melayu")]),e("el-dropdown-item",{attrs:{command:"th"}},[t._v("ภาษาไทย")]),e("el-dropdown-item",{attrs:{command:"ar"}},[t._v("العربية")]),e("el-dropdown-item",{attrs:{command:"ko"}},[t._v("한국어")]),e("el-dropdown-item",{attrs:{command:"pt"}},[t._v("Português")]),e("el-dropdown-item",{attrs:{command:"fa"}},[t._v("زبان پارسی")]),e("el-dropdown-item",{attrs:{command:"tr"}},[t._v("Türkçe")])],1)],1),e("div",{staticClass:"rbt-separator d-none d-xl-block"}),t._m(0)],1)])]),e("el-row",{staticClass:"section-common section-bottom"},[e("el-col",{staticClass:"section-common section-left",attrs:{span:12}},[e("div",[e("div",[e("Loop")],1),e("div",{staticClass:"des"},[e("span",{domProps:{innerHTML:t._s(t.$t("newSignin.item12"))}}),e("br"),e("span",{domProps:{innerHTML:t._s(t.$t("newSignin.item12_1"))}}),e("br"),e("span",{domProps:{innerHTML:t._s(t.$t("newSignin.item10"))}}),e("br"),e("span",{domProps:{innerHTML:t._s(t.$t("newSignin.item11"))}}),e("br"),e("span",{directives:[{name:"t",rawName:"v-t",value:"newSignin.item13",expression:"'newSignin.item13'"}]}),e("a",{directives:[{name:"t",rawName:"v-t",value:"newSignin.item13_1",expression:"'newSignin.item13_1'"}],attrs:{href:"https://www."+t.ho+".com/doc/Risk-Disclosures-and-Acknowledgements-2020-08.pdf",target:"_blank"}}),e("span",{directives:[{name:"t",rawName:"v-t",value:"newSignin.item13_2",expression:"'newSignin.item13_2'"}]})])])]),e("el-col",{staticClass:"section-common section-right",attrs:{span:12}},[e("router-view")],1)],1)],1)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"header-info d-none d-xl-block"},[e("ul",{staticClass:"social-share-transparent"},[e("li",[e("a",{attrs:{href:"https://www.facebook.com/people/CWG-Markets-Promotions/100064027417838/",target:"_blank"}},[e("i",{staticClass:"bi bi-facebook"})])]),e("li",[e("a",{attrs:{href:"https://www.linkedin.com/company/cwg-markets-ltd/",target:"_blank"}},[e("i",{staticClass:"bi bi-linkedin"})])]),e("li",[e("a",{attrs:{href:"https://www.instagram.com/cwgmarkets/",target:"_blank"}},[e("i",{staticClass:"bi bi-instagram"})])])])])}],n=(s("e9f5"),s("f665"),function(){var t=this,e=t._self._c;return e("el-carousel",{staticClass:"carousel",attrs:{"indicator-position":"none",arrow:"never"}},[e("el-carousel-item",[e("h1",{staticClass:"h1"},[e("div",{staticClass:"inner"},[e("div",{staticClass:"section-title"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"newLoop.item11",expression:"'newLoop.item11'"}],staticClass:"bg-secondary-opacity subtitle w-40"})]),e("h1",{staticClass:"title w-700"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"newLoop.item12",expression:"'newLoop.item12'"}]}),t._v(" "),e("strong",{directives:[{name:"t",rawName:"v-t",value:"newLoop.item13",expression:"'newLoop.item13'"}],staticClass:"color-white"})]),e("h6",{directives:[{name:"t",rawName:"v-t",value:"newLoop.item14",expression:"'newLoop.item14'"}],staticClass:"text-white"})]),e("img",{staticClass:"img-fluid mt--10",attrs:{src:s("0e72"),alt:"trust-pilot"}})])])],1)}),o=[],r={name:"loop",data(){return{}}},l=r,g=(s("3419"),s("2877")),c=Object(g["a"])(l,n,o,!1,null,"52acba82",null),m=c.exports,d=s("bc3a"),h=s.n(d),p=s("7884"),u=s("f121"),w=s.n(u),S=s("6df7");let{Code:y}=w.a;var v={components:{Loop:m},inject:["reload"],data(){return{systemList:[],currentSystemCode:null,ho:"",langList:{en:"ENGLISH",cn:"中文简体",zhHant:"中文繁体",vn:"Tiếng Việt",de:"Deutsch",es:"Español",id:"Indonesian",ms:"Melayu",th:"ภาษาไทย",ar:"العربية",ko:"한국어",pt:"Português",fa:"زبان پارسی",tr:"Türkçe"},language:""}},computed:{currentSystemName(){if(!this.currentSystemCode||0===this.systemList.length)return"系统切换";const t=this.systemList.find(t=>t.sysCode===this.currentSystemCode);return t?t.sysName:"系统切换"}},methods:{async getSystemList(){const t="systemListCache",e=144e5,s=t=>{if(this.systemList=t||[],this.systemList.length>0){const t=this.systemList.find(t=>1===t.localSystem);this.currentSystemCode=t?t.sysCode:null}else this.currentSystemCode=null};try{const a=localStorage.getItem(t);if(a){const{data:t,timestamp:i}=JSON.parse(a);if(Date.now()-i<e)return void s(t)}let i=await S["a"].getSystemList({});if(i.code==y.StatusOK){const e=i.data||[];s(e),localStorage.setItem(t,JSON.stringify({data:e,timestamp:Date.now()}))}else this.$pigeon.MessageError(i.msg)}catch(a){console.error("获取系统列表失败:",a)}},switchSystem(t){t.sysCode!==this.currentSystemCode&&this.$pigeon.MessageConfirm("是否切换系统?","系统提示","确认","取消",async()=>{await this.confirmSwitchSystem(t)},()=>{})},async confirmSwitchSystem(t){try{this.loading=!0;const e=t.sysUrl+"/#/signin";window.location.replace(e)}catch(e){console.error("切换系统失败:",e),this.$pigeon.MessageError("切换系统失败")}finally{this.loading=!1}},getSystemDisplayName(t){return t.sysName},chooseLang(t){t!=this.language&&(this.$i18n.locale=this.language=t,this.Session.Set("lang",t),this.Session.Set("langManuallySet","true"),h.a.defaults.headers.common["Language"]=sessionStorage.getItem("lang"),setTimeout(()=>{this.reload()},500))},async getCountryCode(){this.language="cn",this.$i18n.locale="cn",this.Session.Set("lang",this.language),h.a.defaults.headers.common["Language"]=sessionStorage.getItem("lang"),this.reload()},async switchLanguage(t){await p["a"].switchLanguage({lang:t})},async getLanguage(){let t=await p["a"].getLanguage({});t.code==y.StatusOK&&(t.msg&&"zh-CN"==t.msg.split(",")[0]?(this.language="cn",this.$i18n.locale="cn",this.Session.Set("lang",this.language),h.a.defaults.headers.common["Language"]=sessionStorage.getItem("lang")):t.msg&&t.msg.split(",")[0].indexOf("zh-")>-1?(this.language="zhHant",this.$i18n.locale="zhHant",this.Session.Set("lang",this.language),h.a.defaults.headers.common["Language"]=sessionStorage.getItem("lang")):(this.language="en",this.$i18n.locale="en",this.Session.Set("lang",this.language),h.a.defaults.headers.common["Language"]=sessionStorage.getItem("lang")),this.reload())},toHome(){this.$store.commit("isActiveTab","0")}},mounted(){this.getSystemList()},created(){this.ho=window.location.host.split(".")[1],this.$route.query.emailAdvertisement&&!sessionStorage.getItem("lang")&&(this.$i18n.locale=this.language="cn",this.Session.Set("lang","cn"),h.a.defaults.headers.common["Language"]=sessionStorage.getItem("lang")),this.Session.Get("lang")?(this.$i18n.locale=this.Session.Get("lang"),this.language=this.Session.Get("lang"),h.a.defaults.headers.common["Language"]=sessionStorage.getItem("lang")):(this.language=this.$i18n.locale,this.Session.Set("lang",this.language),h.a.defaults.headers.common["Language"]=sessionStorage.getItem("lang"))},watch:{"$i18n.locale":{handler(t){this.language=t},immediate:!0}}},f=v,x=(s("4da6"),s("99b1"),Object(g["a"])(f,a,i,!1,null,"345010c2",null));e["default"]=x.exports},"4da6":function(t,e,s){"use strict";s("94ae")},"5d9e":function(t,e,s){},"94ae":function(t,e,s){},"998e":function(t,e,s){},"99b1":function(t,e,s){"use strict";s("5d9e")}}]);
|