| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456 |
- var content = {
- 'cn': {
- headers1: '开设账户',
- footer1: '版权所有 © 2024 CWG MARKETS 保留所有权利',
- box1item4: '欢迎来到CWG Markets',
- box1item4_1: '请填写此字段',
- box1item5: '国家/地区',
- box1item6: '电话号码',
- box1item7: '电子邮件地址',
- box1item8: '电子邮件验证码',
- box1item9: '设置密码',
- box1item10: '我声明并确认我不是美国公民或居民。',
- box1item11: '注册',
- box1item12: '已有账户',
- code: '生成',
- country: "请选择您的国家",
- email: "电子邮件地址格式错误",
- phone: "电话号码格式错误",
- password: "必须为8到15个字符,包含大写和小写字母,使用数字和字母的组合",
- codeInput: "请输入电子邮件验证码",
- agree: "请同意声明",
- CodeSuccess: "验证码已成功获取",
- emailempty: "电子邮件地址不能为空",
- waitCode1: "请稍候 ",
- waitCode2: "秒",
- registerSuc: "注册成功,立即登录...",
- SystemError: "系统错误,请重试。",
- LoginSuccess: "登录成功",
- st1: "必须为8到15个字符",
- nd2: "包含大写和小写字母",
- rd3: "使用数字和字母的组合",
- header1: "您的每标准手交易都能获得最高$2美金的奖励,",
- header2: "奖金实时返现至个人钱包,上不封顶。",
- header3: "*适用条款和条件",
- header4: "奖励实时返现",
- header5: "奖励金额无上限",
- header6: "仅限标准账户",
- header7: "支持跟单与EA交易",
- section11: "奖励无上限",
- section12: "交易越多奖励越高",
- section13: "交易量",
- section14: "单个标准账户每月交易前5标准手不享受奖励。",
- section15: "单个标准账户当月交易量超5标准手后每手奖励$1。",
- section16: "单个标准账户当该月交易量超过25标准手后每手奖励$2。",
- section17: "(累计交易手数每个自然月最后一天自动清0,次月重新累计)",
- section18: "示例",
- section19: "A客户当月交易5标准手,不享受任何奖励。",
- section110: "B客户当月交易15标准手,其中10标准手可享受奖励,总累计奖励$10。",
- section111: "C客户当月交易50标准手,其中20标准手享受$1/手的奖励,25标准手可享受$2/手的奖励,总累计奖励$70。",
- section21: "参与方式",
- section22: "步骤1:",
- section23: '点击下方立即开户按钮,开立CWG客户专区',
- section24: "步骤2:",
- section25: "在客户专区选择开立CWG标准账户。",
- section26: "步骤3:",
- section27: "入金交易后标准账户均享受奖励实时返现。",
- section31: "有疑问?",
- section32: "查看下面的问答。",
- section33: "每次存款均可申请,立即开始您的交易!",
- section34: "1. 账户奖励实时返现返到哪里?",
- section35: "所有账户奖励为实时返现,返现将直接在账户平仓后5-10分钟内自动注入个人钱包中,您可以在客户专区-个人钱包中查看。",
- section36: "2. 奖励每天或者每月有上限么?",
- section37: "标准账户交易奖励每天无上限,您的标准账户每天或每月无论交易多少手都会按照标准实时返现至您的个人钱包。",
- section38: "3. 我有好几个标准账户,奖励如何计算?",
- section39: "我们手数统计以单个交易账户计算,同个CID名下如有多个标准账户,交易手数是独立计算的,单个标准账户单月交易量超5标准手后,交易可奖励额外返现。",
- section310: "4. 我能参加其他促销活动吗?",
- section311: "是的,本活动可以和所有CWG活动同时参与。",
- section312: "请仔细阅读所有促销活动的条款和条件。",
- section313: " *适用条款和条件",
- section41: "立即加入CWG",
- section42: "开启无限奖励之旅!",
- section43: "您的成功,从现在开始。",
- section44: "已有账户?",
- section45: "在此登录",
- section46: "*完整条款和条件",
- section47: "*完整条款和条件"
- },
- 'en': {
- headers1: 'Open Account',
- footer1: 'Copyright © 2024 CWG MARKETS All Rights Reserved',
- box1item4: 'Welcome To CWG Markets',
- box1item4_1: 'Please fill out this field',
- box1item5: 'Country / Region',
- box1item6: 'Phone Number',
- box1item7: 'Email Address',
- box1item8: 'Email Varification Code',
- box1item9: 'Set Password',
- box1item10: 'I declared and confirmed that I am not a citizen or resident of the United States.',
- box1item11: 'Register',
- box1item12: 'Already have an account',
- code: 'Generate',
- country: "Please select your country",
- email: "Email Address Format Error",
- phone: "Phone Format Error",
- password: "Must be between 8 to 15 characters,Contain both uppercase and lowercase letter,Use a combination of numbers and letters",
- codeInput: "Please enter the Email verification code",
- agree: "Please agree to the declaration",
- CodeSuccess: "Verification code has been successfully obtained ",
- emailempty: "Email Address cannot be empty",
- waitCode1: "Please wait ",
- waitCode2: "s ",
- registerSuc: "Registration successful, log in now...",
- SystemError: "System Error, please try again.",
- LoginSuccess: "Login Successful",
- st1: "Must be between 8 to 15 characters",
- nd2: "Contain both uppercase and lowercase letter",
- rd3: "Use a combination of numbers and letters",
- header1: "Earn Rewards For Each Trade",
- header2: "Take advantage of withdrawable cash rewards to increase your earnings.",
- header3: "*Terms and Conditions Apply",
- header4: "Instant Cash Rewards",
- header5: "Unlimited Reward Amounts",
- header6: "Exclusive to Standard Account",
- header7: "Supports Copy Trading & EA Trading",
- section11: "Maximize Your Rewards:",
- section12: "The More You Trade, The More You Earn",
- section13: "Trading Volume",
- section14: "A single standard account cannot receive rewards for the first 5 traded lots.",
- section15: "For monthly trading volumes over 5 standard lots, each additional lot is qualified for $1.",
- section16: "For monthly trading volumes over 25 standard lots, each additional lot earns $2.",
- section17: "(Trading lots are automatically reset to zero on the last day of each month and accumulate the following month.)",
- section18: "Example",
- section19: "Customer A trades 5 lots per month and is not qualified for the trading reward.",
- section110: "Customer B trades 15 standard lots per month, with 10 lots qualifying for trading reward, resulting in a total money back of $10.",
- section111: "Customer C trades 50 standard lots per month, with 20 qualifying for $1 per lot rewards and 25 qualifying for $2 per lot rewards, summing $70 in money back.",
- section21: "How To Join",
- section22: "Step 1:",
- section23: "Click the “Open Account” button below to register for an account.",
- section24: "Step 2:",
- section25: "Log in to your Client Zone and open a CWG Standard Account.",
- section26: "Step 3:",
- section27: "Once you've funded and made your first trade, your Standard Account will be eligible for instant rewards .",
- section31: "Got Questions?",
- section32: "Check out our Q&A below.",
- section33: "Each deposit can apply, start your trading now!",
- section34: "1. Where are rewards credited? ",
- section35: "All trading rewards is credited in real-time to your Personal Area - Wallet section within 5-10 minutes after the position is closed.",
- section36: "2. Are there limits on rewards? ",
- section37: "No, there are no daily or monthly limits on rewards for Standard Account trading. Your rewards will be credited according to standard terms.",
- section38: "3. Can I receive rewards with multiple accounts? ",
- section39: "Yes, each Standard Account under the same ID is eligible for rewards individually, based on its trading volume. However, the volume from each account cannot be combined.",
- section310: "4. Can I participate in other promotions? ",
- section311: "Yes, you can participate in this promotion along with all other CWG promotions simultaneously.",
- section312: "Please carefully review all of the promotion's terms and conditions.",
- section313: " *Terms & Conditions Apply",
- section41: "Keep Trading &",
- section42: "You Will Be Rewarded!",
- section43: "This is not how it gets better, is it?",
- section44: "Already have an account?",
- section45: "Login here",
- section46: "*Full terms and conditions",
- section47: "*Full terms and conditions"
- },
- }
- let vm = new Vue({
- el: "#active_1",
- data: {
- flag: false,
- loading: false,
- pictLoading:false,
- // 验证规则
- rules: {
- // country: [
- // {
- // validator: (rule, value, callback) => {
- // if (value != "" && value != null) {
- // callback();
- // } else {
- // callback(new Error(content[sessionStorage.getItem('lang')].country));
- // }
- // },
- // trigger: "blur",
- // },
- // ],
- email: [
- {
- validator: (rule, value, callback) => {
- if (/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/.test(value)) {
- callback();
- } else {
- callback(new Error('Email Address Format Error'));
- }
- },
- trigger: "blur",
- },
- ],
- name: [
- {
- validator: (rule, value, callback) => {
- if (
- value != "" &&
- value != null
- ) {
- callback();
- } else {
- callback(new Error('Name is required'));
- }
- },
- trigger: "blur",
- },
- ],
- phone: [
- {
- validator: (rule, value, callback) => {
- if (/^[0-9]\d*$/.test(value)) {
- callback();
- } else {
- callback(new Error('Phone Format Error'));
- }
- },
- trigger: "blur",
- },
- ],
- },
- // 表单参数
- params: {
- sourceCode:null,
- name: "",
- email: "",
- country: "",
- phone: "",
- },
- imgUrl: '',
- ho: '',
- isPc:null,
- centerDialogVisible:false,
- },
- methods: {
- // 提交
- register: async function () {
- if (!this.params.name) {
- this.$message.error('Name is required');
- return
- }
- if (!this.params.phone) {
- this.$message.error('Phone Format Error');
- return
- }
- if (!this.params.email) {
- this.$message.error('Email Address Format Error');
- return
- }
- if (this.flag) {
- return;
- } else {
- this.flag = true;
- }
- axios.post(this.imgUrl + '/web/oc/add', {
- ...this.params
- //参数
- }).then(res => {//请求成功后的处理函数
- if (res.data.code == 200) {
- this.$message({
- message: res.data.msg,
- type: 'success'
- });
- this.flag = false;
- } else {
- this.$message.error(res.data.msg);
- this.flag = false;
- }
- }).catch(err => {//请求失败后的处理函数
- this.flag = false;
- })
- },
- //获取当前国家编码
- async getCountryMsg() {
- axios.get(this.imgUrl + '/country/get', {
- //参数
- }).then(res => {//请求成功后的处理函数
- if (res.data.code == 200) {
-
- if ((res.data.msg == "GB"||res.data.msg == "IE")&&res.data.data.indexOf('//195.224.141.218') == -1) {
- window.location.href = 'https://www.cwgmarkets.co.uk';
- } else {
- document.getElementById("pre").style.display = 'none'
- }
- } else {
- document.getElementById("pre").style.display = 'none'
- this.$message.error(res.data.msg);
- }
- }).catch(err => {//请求失败后的处理函数
- })
- },
- getQueryStringRegExp(name){
- var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i");
- if (reg.test(location.href)) return unescape(RegExp.$2.replace(/\+/g, " ")); return "";
- },
- getCodeQuery(){
- this.params.sourceCode = this.getQueryStringRegExp('ex')
- },
- },
- mounted() {
-
- this.getCodeQuery();
-
-
- // || 'cwgvu'
- this.ho = window.location.host.split('.')[1];
- this.imgUrl = window.location.origin;
- // this.imgUrl = 'http://193.134.208.230:8000'
- this.getCountryMsg()
-
- },
- });
- let vm2 = new Vue({
- el: "#active_2",
- data: {
- flag: false,
- loading: false,
- pictLoading:false,
- // 验证规则
- rules: {
- // country: [
- // {
- // validator: (rule, value, callback) => {
- // if (value != "" && value != null) {
- // callback();
- // } else {
- // callback(new Error(content[sessionStorage.getItem('lang')].country));
- // }
- // },
- // trigger: "blur",
- // },
- // ],
- email: [
- {
- validator: (rule, value, callback) => {
- if (/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/.test(value)) {
- callback();
- } else {
- callback(new Error('Email Address Format Error'));
- }
- },
- trigger: "blur",
- },
- ],
- name: [
- {
- validator: (rule, value, callback) => {
- if (
- value != "" &&
- value != null
- ) {
- callback();
- } else {
- callback(new Error('Name is required'));
- }
- },
- trigger: "blur",
- },
- ],
- phone: [
- {
- validator: (rule, value, callback) => {
- if (/^[0-9]\d*$/.test(value)) {
- callback();
- } else {
- callback(new Error('Phone Format Error'));
- }
- },
- trigger: "blur",
- },
- ],
- },
- // 表单参数
- params: {
- sourceCode:null,
- name: "",
- email: "",
- country: "",
- phone: "",
- },
- imgUrl: '',
- ho: '',
- isPc:null,
- centerDialogVisible:false,
- },
- methods: {
- // 提交
- register: async function () {
- // console.log(document.getElementsByClassName(".my-mfp-zoom-in.mfp-ready.mfp-bg"));
- if (!this.params.name) {
- this.$message.error('Name is required');
- return
- }
- if (!this.params.phone) {
- this.$message.error('Phone Format Error');
- return
- }
- if (!this.params.email) {
- this.$message.error('Email Address Format Error');
- return
- }
- if (this.flag) {
- return;
- } else {
- this.flag = true;
- }
- axios.post(this.imgUrl + '/web/oc/add', {
- ...this.params
- //参数
- }).then(res => {//请求成功后的处理函数
- if (res.data.code == 200) {
- this.$message({
- message: res.data.msg,
- type: 'success'
- });
- this.flag = false;
- setTimeout(function () {
- location.reload();
- }, 500);
- } else {
- this.$message.error(res.data.msg);
- this.flag = false;
- }
- }).catch(err => {//请求失败后的处理函数
- this.flag = false;
- })
- },
- getQueryStringRegExp(name){
- var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i");
- if (reg.test(location.href)) return unescape(RegExp.$2.replace(/\+/g, " ")); return "";
- },
- getCodeQuery(){
- this.params.sourceCode = this.getQueryStringRegExp('ex')
- },
- },
- mounted() {
-
- this.getCodeQuery();
-
-
- // || 'cwgvu'
- this.ho = window.location.host.split('.')[1];
- this.imgUrl = window.location.origin;
- this.getCountryMsg()
-
- },
- });
|