From 25c8be67c7b4f876a8ca5db9a4ba7a3b9db7fbaa Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Sat, 7 Oct 2023 11:15:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E5=85=A5=E6=B3=A8=E5=86=8C=E5=9B=BE?= =?UTF-8?q?=E5=BD=A2=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/signUp/index.vue | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/views/signUp/index.vue b/src/views/signUp/index.vue index bc8bb8d..c30f91f 100644 --- a/src/views/signUp/index.vue +++ b/src/views/signUp/index.vue @@ -52,6 +52,11 @@ +
+ + + +
@@ -164,6 +169,7 @@ export default { current: 0, pwdType: "password", repwdType: "password", + txtType:"text", step: 1, registerType:1, @@ -200,6 +206,8 @@ export default { smsCode: null, emailCode: null }, + Graph_che:'', // gc code image + gc_key:'', // tuxiangyanzheng key codes: new Array(6) }; @@ -255,6 +263,13 @@ export default { ); return } + // check gc code has fill + if(this.Graph_che==''){ + this.$message({ + type:"warning", + message:"input gc code pls.", + }) + } // 其他补充的验证 if (!this.isAgree) { // 没有同意条款 @@ -357,6 +372,18 @@ export default { window.frames["my-modal-body"].$captcha.sliderCaptcha("reset"); }, + // get gc code from api + gett_gc_code(){ + console.log("dddddd") + Member.sendGCode().then( (res) =>{ + this.gc_key = res.key + this.Graph_che = res.img + console.log("gc",res) + }).catch( err =>{ + console.log(err) + }); + }, + autofill($event) { let data = $event.clipboardData.getData("text/plain"), val; @@ -541,6 +568,8 @@ export default { window.md5 = md5; // 安全性验证成功时的回调函数 window.step2Register = this.step2; + // bind get gc code + this.gett_gc_code(); } };