|
@@ -269,6 +269,7 @@ export default{
|
|
|
businessId:'',
|
|
|
dataSrc:'',
|
|
|
fuckfuck:false,
|
|
|
+ alertStatus:false,
|
|
|
}
|
|
|
},
|
|
|
components:{
|
|
@@ -290,6 +291,10 @@ export default{
|
|
|
area(val){
|
|
|
// console.log(val);
|
|
|
},
|
|
|
+ // alertStatus(val){
|
|
|
+
|
|
|
+ // this.addscript();
|
|
|
+ // },
|
|
|
operateType(val){
|
|
|
for(let x in this.loginParam){
|
|
|
this.loginParam[x]="";
|
|
@@ -326,6 +331,7 @@ export default{
|
|
|
}
|
|
|
},
|
|
|
mounted(){
|
|
|
+ // console.log(this.alertStatus);
|
|
|
this.$nextTick(()=>{
|
|
|
let token=getcookie("token");
|
|
|
if(token){
|
|
@@ -353,7 +359,7 @@ export default{
|
|
|
setTimeout(()=>{
|
|
|
let capOption={callback :this.cbfn,type:'popup'};
|
|
|
capInit(document.getElementById("TCaptcha"), capOption);
|
|
|
- },1000)
|
|
|
+ },2000)
|
|
|
},
|
|
|
//删除script标签
|
|
|
// deletescript(){
|
|
@@ -377,12 +383,19 @@ export default{
|
|
|
this.ticketNum = retJson.ticket;
|
|
|
this.pwdSend();
|
|
|
this.fuckfuck=false;
|
|
|
+ sessionStorage.setItem('alertStatus','')
|
|
|
+ sessionStorage.setItem('dataSrc','')
|
|
|
+ sessionStorage.setItem('businessId','')
|
|
|
// 销毁上一个验证
|
|
|
capDestroy();
|
|
|
}else{
|
|
|
//用户关闭验证码页面,没有验证
|
|
|
capDestroy();
|
|
|
this.fuckfuck=false;
|
|
|
+ sessionStorage.setItem('alertStatus','')
|
|
|
+ sessionStorage.setItem('dataSrc','')
|
|
|
+ sessionStorage.setItem('businessId','')
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
toForgetPassWord(){
|
|
@@ -473,12 +486,12 @@ export default{
|
|
|
//this.operateType = "email"
|
|
|
// console.log("this.operateType :"+this.operateType);
|
|
|
if(this.setParam.username==""){
|
|
|
- this.$notify({
|
|
|
- title: '提示',
|
|
|
- message: this.tipWord,
|
|
|
- type: 'warning',
|
|
|
- duration:'1500'
|
|
|
- })
|
|
|
+ // this.$notify({
|
|
|
+ // title: '提示',
|
|
|
+ // message: this.tipWord,
|
|
|
+ // type: 'warning',
|
|
|
+ // duration:'1500'
|
|
|
+ // })
|
|
|
return false;
|
|
|
}
|
|
|
let param={
|
|
@@ -568,7 +581,8 @@ export default{
|
|
|
codetype:'validate',
|
|
|
platkey:'zhaobi'
|
|
|
};
|
|
|
- sendEmail(this,sparam,(data)=>{});
|
|
|
+ sendEmail(this,sparam,(data)=>{
|
|
|
+ });
|
|
|
}
|
|
|
else{
|
|
|
sparam={
|
|
@@ -578,8 +592,19 @@ export default{
|
|
|
area:this.area,
|
|
|
platkey:'zhaobi',
|
|
|
};
|
|
|
- sendCode(this,sparam,(data)=>{});
|
|
|
+ sendCode(this,sparam,(data)=>{
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ if(sessionStorage.getItem('alertStatus') == 'true'){
|
|
|
+ this.alertStatus = true;
|
|
|
+ this.dataSrc = sessionStorage.getItem('dataSrc');
|
|
|
+ this.businessId = sessionStorage.getItem('businessId');
|
|
|
+ this.addscript();
|
|
|
+ console.log( this.dataSrc, this.businessId)
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
//登录时~发送验证码
|
|
|
sendLoginCode(){
|