提交 b46e6b31 编写于 作者: chengxiang.li's avatar chengxiang.li

hide console

上级 e4a98eca
...@@ -48,7 +48,7 @@ module.exports = { ...@@ -48,7 +48,7 @@ module.exports = {
// get public key // get public key
handleGetPubKey(content, cb){ handleGetPubKey(content, cb){
getPubKey().then(res => { getPubKey().then(res => {
console.log('>>>>>>>>>>>>>>>>>>>> publicKey: ', res) // console.log('>>>>>>>>>>>>>>>>>>>> publicKey: ', res)
if(res.code == '000000'){ if(res.code == '000000'){
pubKey = res.data; pubKey = res.data;
if(cb){ if(cb){
...@@ -66,7 +66,7 @@ module.exports = { ...@@ -66,7 +66,7 @@ module.exports = {
// format account params // format account params
formatContent(content, pubKey) { // obj为具体的json传参 formatContent(content, pubKey) { // obj为具体的json传参
let aesKey = this.getAesKey(16); let aesKey = this.getAesKey(16);
console.log('AES key::::::: ', aesKey) // console.log('AES key::::::: ', aesKey)
let params = { let params = {
key: '', key: '',
content: '' content: ''
......
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
const { config } = this; const { config } = this;
// 发送图形验证码 ajax // 发送图形验证码 ajax
handleGetCaptcha().then(res => { handleGetCaptcha().then(res => {
console.log('>>>>>>图形验证码获取 res ', res) // console.log('>>>>>>图形验证码获取 res ', res)
if(res.code==='000000'){ if(res.code==='000000'){
this.captchaImg = `data:image/png;base64,${res.data.content}` this.captchaImg = `data:image/png;base64,${res.data.content}`
this.captchaToken = res.data.token this.captchaToken = res.data.token
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
let getAuthCodeCB = params => { let getAuthCodeCB = params => {
// debugger; // debugger;
handleGetAuthCode(params).then(res => { handleGetAuthCode(params).then(res => {
console.log('>>>>>>login res ', res) // console.log('>>>>>>login res ', res)
if (res.code != '000000') { if (res.code != '000000') {
this.resetCaptchaErr = true; this.resetCaptchaErr = true;
this.resetCaptchaErrText = res.message; this.resetCaptchaErrText = res.message;
...@@ -403,7 +403,7 @@ ...@@ -403,7 +403,7 @@
}; };
let loginCB = params => { let loginCB = params => {
handleLogin(params).then(res => { handleLogin(params).then(res => {
console.log('>>>>>>login res ', res) // console.log('>>>>>>login res ', res)
if (res.code == '216509' || res.code == '216502' || res.code == '100001' ) { if (res.code == '216509' || res.code == '216502' || res.code == '100001' ) {
this.loginPWDErr = true; this.loginPWDErr = true;
this.loginPWDErrText = '手机号或密码不正确!'; this.loginPWDErrText = '手机号或密码不正确!';
...@@ -528,7 +528,7 @@ ...@@ -528,7 +528,7 @@
}; };
let resetPWDCB = params => { let resetPWDCB = params => {
handleResetPWD(params).then(res => { handleResetPWD(params).then(res => {
console.log('>>>>>>login res ', res) // console.log('>>>>>>login res ', res)
if(res && res.code == '000000'){ if(res && res.code == '000000'){
this.$message({ this.$message({
message: '重设密码成功,请重新登录!', message: '重设密码成功,请重新登录!',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册