active1.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. var content = {
  2. 'cn': {
  3. nav1: "",
  4. nav2: "立即参与",
  5. headers1: '惊喜大放送 现金嘉年华!',
  6. headers2: '宝藏获得者',
  7. headers3: '$500宝藏获得者:',
  8. headers4: '$1',
  9. headers5: '$100',
  10. headers6: '$10',
  11. headers7: '$200',
  12. headers8: '点击抽奖',
  13. headers9: '$50',
  14. headers10: '$5',
  15. headers11: '$20',
  16. headers12: '感谢参与',
  17. headers13: '剩余',
  18. headers14: '抽数不足',
  19. table1: '每日都有机会抽取现金好礼',
  20. table2: '最高$500宝藏奖励等您拿!',
  21. table3: '精彩奖金等您揽获',
  22. table4: '每次入金与交易,皆为成功大奖的起点!!!',
  23. table5: '入金即有机会',
  24. table6: '每满$100入金,即获得一次抽奖机会,每日最多10次!',
  25. table7: '获取更多机会',
  26. table8: '每一笔有效存款都有机会激活额外的任务,抽奖更多现金奖励!',
  27. table9: '奖励加码',
  28. table10: '抽奖次数越多,获取$500美金宝藏概率越大。',
  29. table11: '真实奖励',
  30. table12: '奖励自动添加至您的客户钱包,无取款限制!',
  31. table13: '*如需了解更多规则和条款,请登录CWG客户专区活动中心。',
  32. step1: '如何参与抽奖',
  33. step2: '步骤1',
  34. step3: '登录您的CWG客户专区并完成入金要求',
  35. step4: '步骤2',
  36. step5: '在客户专区-活动中心找到现金嘉年华活动',
  37. step6: '步骤3',
  38. step7: '按下按钮,开启您的惊喜现金奖励',
  39. step1_1: '存款金额和获取抽奖次数示例:',
  40. step1_2: '存款金额',
  41. step1_3: '$100',
  42. step1_4: '$330',
  43. step1_5: '$690',
  44. step1_6: '$1500',
  45. step1_7: '可获取抽奖次数',
  46. step1_8: '1',
  47. step1_9: '3',
  48. step1_10: '6',
  49. step1_11: '10',
  50. footer1: '宝藏探秘者访谈',
  51. footer2: '头像',
  52. footer3: '姓名',
  53. footer4: '账号',
  54. footer5: '交易心得&获奖感言',
  55. footer6: '探索CWG宝藏嘉年华,即刻启程!每次转动,都蕴藏着您交易旅程的精彩时刻。别再观望,行动起来,让奖励之风席卷而至!',
  56. box1item4: '欢迎来到CWG Markets',
  57. box1item4_1: '请填写这些字段',
  58. box1item5: '国家地区',
  59. box1item6: '联系电话',
  60. box1item7: '电子邮箱',
  61. box1item8: '邮箱验证码',
  62. box1item9: '设置密码',
  63. box1item10: '本人声明并确认本人并非美国公民或居民。',
  64. box1item11: '注册',
  65. box1item12: '已有账户',
  66. code: '获取验证码',
  67. country: "请选择您所在国家",
  68. email: "邮箱格式错误",
  69. phone: "电话格式错误",
  70. password: "使用8到15个字符,同时使用大写和小写字母,使用数字和英文字母的组合",
  71. codeInput: "请输入验证码",
  72. agree: "请同意声明",
  73. CodeSuccess: "验证码获取成功",
  74. emailempty: "邮箱不能为空",
  75. waitCode1: "等待 ",
  76. waitCode2: "s ",
  77. registerSuc: "注册成功,正在登录...",
  78. SystemError: "系统错误,请稍后再试。",
  79. LoginSuccess: "登录成功,马上进入系统。",
  80. st1: "使用8到15个字符",
  81. nd2: "同时使用大写和小写字母",
  82. rd3: "使用数字和英文字母的组合",
  83. },
  84. 'en': {
  85. "nav1": "",
  86. "nav2": "Join Now",
  87. "headers1": "Exciting Cash Carnival!",
  88. "headers2": "Treasure Winners",
  89. "headers3": "$500 Treasure Winners:",
  90. "headers4": "$1",
  91. "headers5": "$100",
  92. "headers6": "$10",
  93. "headers7": "$200",
  94. "headers8": "Click to Draw",
  95. "headers9": "$50",
  96. "headers10": "$5",
  97. "headers11": "$20",
  98. "headers12": "Thank You for Participating",
  99. "headers13": "Remaining",
  100. "headers14": "Insufficient Draws",
  101. "table1": "Daily Chances to Win Cash Prizes",
  102. "table2": "Up to $500 Treasure Awaits You!",
  103. "table3": "Exciting Bonuses Await You",
  104. "table4": "Every deposit and trade is a chance to win big prizes!",
  105. "table5": "Deposit for a Chance",
  106. "table6": "For every $100 deposited, you get a chance to draw, up to 10 times a day!",
  107. "table7": "Get More Chances",
  108. "table8": "Each successful deposit can activate extra tasks for more cash rewards!",
  109. "table9": "Bonus Boost",
  110. "table10": "The more draws you make, the higher your chance of winning a $500 treasure.",
  111. "table11": "Real Rewards",
  112. "table12": "Rewards are automatically added to your customer wallet with no withdrawal limits!",
  113. "table13": "*For more rules and terms, please visit the CWG Client Zone Promotion Center.",
  114. "step1": "How to Participate in the Draw",
  115. "step2": "Step 1",
  116. "step3": "Log in to your CWG Client Zone and meet the deposit requirements",
  117. "step4": "Step 2",
  118. "step5": "Find the Cash Carnival event in the Client Zone - Promotion Center",
  119. "step6": "Step 3",
  120. "step7": "Click the button to unlock your surprise cash rewards",
  121. "step1_1": "Deposit Amount and Number of Draw Entries Example:",
  122. "step1_2": "Deposit Amount",
  123. "step1_3": "$100",
  124. "step1_4": "$330",
  125. "step1_5": "$690",
  126. "step1_6": "$1500",
  127. "step1_7": "Number of Draw Entries",
  128. "step1_8": "1",
  129. "step1_9": "3",
  130. "step1_10": "6",
  131. "step1_11": "10",
  132. "footer1": "Treasure Explorer Interviews",
  133. "footer2": "Avatar",
  134. "footer3": "Name",
  135. "footer4": "Account",
  136. "footer5": "Trading Experience & Reflections",
  137. "footer6": "Explore the CWG Treasure Carnival and set sail now! Every spin holds exciting moments of your trading journey. Don't wait any longer; take action and let the rewards come rolling in!",
  138. box1item4: 'Welcome To CWG Markets',
  139. box1item4_1: 'Please fill out this field',
  140. box1item5: 'Country / Region',
  141. box1item6: 'Phone Number',
  142. box1item7: 'Email Address',
  143. box1item8: 'Email Varification Code',
  144. box1item9: 'Set Password',
  145. box1item10: 'I declared and confirmed that I am not a citizen or resident of the United States.',
  146. box1item11: 'Register',
  147. box1item12: 'Already have an account',
  148. code: 'Generate',
  149. country: "Please select your country",
  150. email: "Email Address Format Error",
  151. phone: "Phone Format Error",
  152. password: "Must be between 8 to 15 characters,Contain both uppercase and lowercase letter,Use a combination of numbers and letters",
  153. codeInput: "Please enter the Email verification code",
  154. agree: "Please agree to the declaration",
  155. CodeSuccess: "Verification code has been successfully obtained ",
  156. emailempty: "Email Address cannot be empty",
  157. waitCode1: "Please wait ",
  158. waitCode2: "s ",
  159. registerSuc: "Registration successful, log in now...",
  160. SystemError: "System Error, please try again.",
  161. LoginSuccess: "Login Successful",
  162. st1: "Must be between 8 to 15 characters",
  163. nd2: "Contain both uppercase and lowercase letter",
  164. rd3: "Use a combination of numbers and letters",
  165. },
  166. }
  167. let vm = new Vue({
  168. el: "#active1",
  169. data: {
  170. //多语言
  171. langList: {
  172. en: "ENGLISH",
  173. cn: "中文简体",
  174. zhHant: "中文繁體",
  175. vn: "Tiếng Việt",
  176. de: "Deutsch",
  177. es: "Español",
  178. id: "Indonesian",
  179. ms: "Melayu",
  180. th: "ภาษาไทย",
  181. ar: "العربية",
  182. ko: "한국어",
  183. pt: "Português",
  184. fa: "زبان پارسی",
  185. },
  186. language: "en",
  187. lang: {},
  188. flag: false,
  189. loading: false,
  190. mock_options: {
  191. account:'',
  192. name:'',
  193. raffleResidueNumber:'0',
  194. list:[]
  195. },
  196. mock_optionsC: [],
  197. // img_logo: logo,
  198. timer: 59,
  199. interval: null,
  200. getCodeString: "",
  201. notCountry:[
  202. 'AF','AI','AG','BS','BY',
  203. 'BZ','BA','BI','CF','CD','CU',
  204. 'ET','FJ','PS','GN','GW','HT',
  205. 'IR','IQ','LB','LY','ML','MM',
  206. 'NI','KP','PW','RU','SO','SS',
  207. 'SD','SY','UA','US','VE','YE','ZW','MY'
  208. ],
  209. // 表单参数
  210. params: {
  211. agentId: null,
  212. comPoint: null,
  213. sourceCode:null,
  214. subId: "",
  215. email: "",
  216. password: "",
  217. country: "",
  218. emailCode: "",
  219. phone: "",
  220. w: "",
  221. agree: false,
  222. linkValue: null,
  223. },
  224. dialogFormVisible:false,
  225. clientWidth:'',
  226. pagerInfo: {row: 10, current: 1, pageTotal: 0, rowTotal: 0},//分页
  227. pictLoading:false,
  228. // 验证规则
  229. rules: {
  230. country: [
  231. {
  232. validator: (rule, value, callback) => {
  233. if (value != "" && value != null) {
  234. callback();
  235. } else {
  236. callback(new Error(content[sessionStorage.getItem('lang')].country));
  237. }
  238. },
  239. trigger: "blur",
  240. },
  241. ],
  242. email: [
  243. {
  244. validator: (rule, value, callback) => {
  245. if (/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/.test(value)) {
  246. callback();
  247. } else {
  248. callback(new Error(content[sessionStorage.getItem('lang')].email));
  249. }
  250. },
  251. trigger: "blur",
  252. },
  253. ],
  254. emailCode: [
  255. {
  256. validator: (rule, value, callback) => {
  257. if (
  258. value != "" &&
  259. value != null
  260. ) {
  261. callback();
  262. } else {
  263. callback(new Error(content[sessionStorage.getItem('lang')].codeInput));
  264. }
  265. },
  266. trigger: "blur",
  267. },
  268. ],
  269. password: [
  270. {
  271. validator: (rule, value, callback) => {
  272. if (/^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*([~!@&%$^\\(\\)#_]).*\\1.*\\1.*\\1)[A-Za-z0-9~!@&%$^\\(\\)#_]{8,16}$/.test(value)) {
  273. callback();
  274. } else {
  275. callback(new Error(content[sessionStorage.getItem('lang')].password));
  276. }
  277. },
  278. trigger: "blur",
  279. },
  280. ],
  281. agree: [
  282. {
  283. validator: (rule, value, callback) => {
  284. if (value) {
  285. callback();
  286. } else {
  287. callback(new Error(content[sessionStorage.getItem('lang')].agree));
  288. }
  289. },
  290. trigger: "change",
  291. },
  292. ],
  293. phone: [
  294. {
  295. validator: (rule, value, callback) => {
  296. if (/^[0-9]\d*$/.test(value)) {
  297. callback();
  298. } else {
  299. callback(new Error(content[sessionStorage.getItem('lang')].phone));
  300. }
  301. },
  302. trigger: "blur",
  303. },
  304. ],
  305. },
  306. notRegisterMsg:"",
  307. notRegisterMsgOpen:false,
  308. imgUrl: '',
  309. ho: '',
  310. isPc:null,
  311. centerDialogVisible:false,
  312. token:'',
  313. CompetitionData:{},//基础信息
  314. rankingList:{},//排名列表
  315. Countdown:{
  316. d:'0',
  317. h:'0',
  318. m:'0',
  319. s:'0',
  320. },
  321. CountdownFlag:true,
  322. curLuckyDrawTimes:0,// 用户剩余的抽奖次数,由接口返回,这里用于测试初始化为10
  323. prizeFlag:0,// 记录抽奖转盘当前的状态; 0:待开始;1-进行中;2-已完成
  324. prizeIndex:null,// 记录本次抽奖的奖品下标
  325. curIndex:-1, // 当前抽奖转盘转动过程中轮询到的九宫格下标
  326. counts:3, // 定义转盘抽奖过程中可转的圈数
  327. timerFlag:null,
  328. prizeList:[],
  329. },
  330. computed: {
  331. rule1: function () {
  332. if (!this.params.password) {
  333. return false;
  334. }
  335. return /^.{8,16}$/.test(this.params.password);
  336. },
  337. rule2: function () {
  338. return /^(?=.*?[a-z])(?=.*?[A-Z]).*$/.test(this.params.password);
  339. },
  340. rule3: function () {
  341. return /^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*([~!@&%$^\\(\\)#_]).*\\1.*\\1)[A-Za-z0-9~!@&%$^\\(\\)#_]{8,16}$/.test(
  342. this.params.password
  343. );
  344. },
  345. },
  346. methods: {
  347. // 语言切换函数
  348. chooseLang(key) {
  349. this.lang = content[key];
  350. this.language = key;
  351. sessionStorage.setItem("lang", this.language);
  352. location.reload();
  353. },
  354. //分页返回数据
  355. handleSizeChange (val) {
  356. this.pagerInfo.row = val;
  357. this.searchFunc();
  358. },
  359. handleCurrentChange (val) {
  360. this.pagerInfo.current = val;
  361. this.searchFunc();
  362. },
  363. //获取国家列表
  364. async getCountry() {
  365. axios.post(this.imgUrl + '/country/get', {
  366. ...this.params
  367. //参数
  368. }).then(res => {//请求成功后的处理函数
  369. if (res.data.code == 200) {
  370. this.mock_optionsC = res.data.data;
  371. } else {
  372. this.$message.error(res.data.msg);
  373. }
  374. }).catch(err => {//请求失败后的处理函数
  375. })
  376. },
  377. //获取当前国家编码
  378. async getCountryMsg() {
  379. axios.get(this.imgUrl + '/country/get', {
  380. //参数
  381. }).then(res => {//请求成功后的处理函数
  382. if (res.data.code == 200) {
  383. this.notRegisterMsg = res.data.msg
  384. if ((res.data.msg == "GB"||res.data.msg == "IE")&&res.data.data.indexOf('//195.224.141.218') == -1) {
  385. window.location.href = 'https://www.cwgmarkets.co.uk';
  386. } else {
  387. document.getElementById("pre").style.display = 'none'
  388. }
  389. } else {
  390. document.getElementById("pre").style.display = 'none'
  391. this.$message.error(res.data.msg);
  392. }
  393. }).catch(err => {//请求失败后的处理函数
  394. })
  395. },
  396. //获取当前国家编码
  397. async getCountryCode() {
  398. axios.post(this.imgUrl + '/country/getCodeByIp', {
  399. //参数
  400. }).then(res => {//请求成功后的处理函数
  401. if (res.data.code == 200) {
  402. if (this.notCountry.indexOf(res.data.msg)==-1) {
  403. this.params.country = res.data.msg;
  404. }
  405. if (!sessionStorage.getItem("timer")) {
  406. let lang = sessionStorage.getItem("lang")
  407. ? sessionStorage.getItem("lang")
  408. : this.params.country == "CN"
  409. ? "cn"
  410. : "en";
  411. sessionStorage.clear();
  412. sessionStorage.setItem("lang", lang);
  413. } else {
  414. let timer = sessionStorage.getItem("timer");
  415. let lang = sessionStorage.getItem("lang")
  416. ? sessionStorage.getItem("lang")
  417. : this.params.country == "CN"
  418. ? "cn"
  419. : "en";
  420. sessionStorage.clear();
  421. sessionStorage.setItem("lang", lang);
  422. sessionStorage.setItem("timer", timer);
  423. }
  424. this.language = sessionStorage.getItem("lang");
  425. this.lang = content[this.language];
  426. this.initTimer();
  427. } else {
  428. this.$message.error(res.data.msg);
  429. }
  430. }).catch(err => {//请求失败后的处理函数
  431. })
  432. },
  433. // 注册
  434. register: async function () {
  435. if (this.notRegisterMsg == 'MY') {
  436. this.notRegisterMsgOpen = true;
  437. return
  438. }
  439. this.$refs["params"].validate(async (valid) => {
  440. if (valid) {
  441. if (this.flag) {
  442. return;
  443. } else {
  444. this.flag = true;
  445. }
  446. axios.post(this.imgUrl + '/custom/register', {
  447. ...this.params
  448. //参数
  449. }).then(res => {//请求成功后的处理函数
  450. if (res.data.code == 200) {
  451. this.loading = true;
  452. this.$message({
  453. message: this.lang.registerSuc,
  454. type: 'success'
  455. });
  456. this.login();
  457. this.flag = false;
  458. } else {
  459. this.$message.error(res.data.msg);
  460. this.flag = false;
  461. }
  462. }).catch(err => {//请求失败后的处理函数
  463. })
  464. } else {
  465. return false;
  466. }
  467. });
  468. },
  469. // 登陆
  470. login: async function () {
  471. axios.post(this.imgUrl + '/custom/login', {
  472. loginName: this.params.email,
  473. password: this.params.password,
  474. //参数
  475. }).then(res => {//请求成功后的处理函数
  476. if (res.data.code == 200) {
  477. sessionStorage.setItem("access_token", res.data.data);
  478. axios.defaults.headers.common["Access-Token"] = res.data.data;
  479. this.getLoginInfo();
  480. } else {
  481. this.$message.error(res.data.msg);
  482. }
  483. }).catch(err => {//请求失败后的处理函数
  484. })
  485. },
  486. //获取登录信息
  487. async getLoginInfo() {
  488. axios.post(this.imgUrl + '/custom/info', {
  489. //参数
  490. }).then(res => {//请求成功后的处理函数
  491. if (res.data.code == 200) {
  492. this.loading = true;
  493. // this.$store.commit("InitInfo", res.data.data);
  494. this.$message({
  495. message: this.lang.LoginSuccess,
  496. type: 'success'
  497. });
  498. setTimeout(() => {
  499. this.loading = false;
  500. Session.Set("user", JSON.stringify(res.data.data), true)
  501. window.location.href = this.imgUrl + '/#/customer/index';
  502. }, 1000);
  503. } else {
  504. this.$message.error(this.lang.SystemError);
  505. }
  506. }).catch(err => {//请求失败后的处理函数
  507. })
  508. },
  509. // 获取验证码
  510. getCode: async function (val) {
  511. if (val) {
  512. if (!this.params.country) {
  513. this.$message.error(content[sessionStorage.getItem("lang")].country);
  514. return;
  515. }
  516. if (!this.params.email) {
  517. this.$message.error(content[sessionStorage.getItem("lang")].emailempty);
  518. return;
  519. }
  520. if (!/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/.test(this.params.email)) {
  521. this.$message.error(content[sessionStorage.getItem("lang")].email);
  522. return;
  523. }
  524. }
  525. this.getCodeString =
  526. content[sessionStorage.getItem("lang")].waitCode1 +
  527. this.timer +
  528. content[sessionStorage.getItem("lang")].waitCode2;
  529. let that = this;
  530. if (!this.interval) {
  531. this.getCode1(val);
  532. this.interval = setInterval(() => {
  533. that.timer--;
  534. sessionStorage.setItem("timer", that.timer);
  535. that.getCodeString =
  536. content[sessionStorage.getItem("lang")].waitCode1 +
  537. that.timer +
  538. content[sessionStorage.getItem("lang")].waitCode2;
  539. if (that.timer == 0) {
  540. this.getCodeString = content[sessionStorage.getItem("lang")].code;
  541. clearInterval(that.interval);
  542. that.interval = null;
  543. that.timer = 59;
  544. sessionStorage.setItem("timer", that.timer);
  545. }
  546. }, 1000);
  547. }
  548. },
  549. //验证码
  550. async getCode1(val) {
  551. if (val) {
  552. axios.post(this.imgUrl + '/custom/register/send/code', {
  553. ...this.params
  554. //参数
  555. }).then(res => {//请求成功后的处理函数
  556. if (res.data.code == 200) {
  557. this.$message({
  558. message: this.lang.CodeSuccess,
  559. type: 'success'
  560. });
  561. } else {
  562. this.$message.error(res.data.msg);
  563. }
  564. }).catch(err => {//请求失败后的处理函数
  565. })
  566. }
  567. },
  568. // 初始化定时器
  569. initTimer: function () {
  570. let t = sessionStorage.getItem("timer") || this.timer;
  571. if (t == 59) {
  572. this.getCodeString = content[sessionStorage.getItem("lang")].code;
  573. } else {
  574. this.timer = sessionStorage.getItem("timer");
  575. this.getCode(0);
  576. }
  577. },
  578. getQueryStringRegExp(name){
  579. var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i");
  580. if (reg.test(location.href)) return unescape(RegExp.$2.replace(/\+/g, " ")); return "";
  581. },
  582. getCodeQuery(){
  583. this.token = decodeURIComponent(this.getQueryStringRegExp('token'));
  584. this.params.sourceCode = this.getQueryStringRegExp('ex')
  585. this.params.w = this.getQueryStringRegExp('w')
  586. this.params.subId = this.getQueryStringRegExp('SUBID')
  587. this.params.agentId = Number(this.getQueryStringRegExp('mmdi')) || null;
  588. this.params.linkValue = this.getQueryStringRegExp('mmF')
  589. switch (this.getQueryStringRegExp('mmF')) {
  590. case "F0":
  591. this.params.comPoint = 0;
  592. break;
  593. case "F1":
  594. this.params.comPoint = 10;
  595. break;
  596. case "F2":
  597. this.params.comPoint = 20;
  598. break;
  599. case "F3":
  600. this.params.comPoint = 30;
  601. break;
  602. }
  603. switch (this.getQueryStringRegExp('mmB')) {
  604. case "B0":
  605. this.params.ibInvalid = 0;
  606. break;
  607. case "B1":
  608. this.params.ibInvalid = 1;
  609. break;
  610. }
  611. },
  612. },
  613. watch:{ },
  614. mounted() {
  615. this.getCodeQuery();
  616. this.ho = window.location.host.split('.')[1];
  617. this.imgUrl = window.location.origin;
  618. // this.ho = 'cwgvu'
  619. // this.imgUrl = 'https://secure.cwgvu.com/';
  620. // this.imgUrl = 'http://193.134.208.230:8000'
  621. this.getCountryMsg()
  622. if (sessionStorage.getItem("lang")) {
  623. this.language = sessionStorage.getItem("lang"),
  624. this.lang = content[sessionStorage.getItem("lang")];
  625. } else {
  626. this.language = 'en'
  627. this.lang = content['en'];
  628. sessionStorage.setItem("lang", this.language);
  629. }
  630. this.getCountryCode();
  631. this.getCountry();
  632. },
  633. destroyed() {
  634. clearInterval(this.interval);
  635. },
  636. });