|
@@ -110,7 +110,6 @@ var getInfo = function(that,url,method,params,success){
|
|
|
'Content-Type':'application/x-www-form-urlencoded;'
|
|
|
}
|
|
|
}
|
|
|
- console.log(that.$qs.stringify(params));
|
|
|
that.$axios({
|
|
|
url: url,
|
|
|
method: method,
|
|
@@ -239,7 +238,7 @@ var inputTest = function(that){
|
|
|
if (that.regInfo.intype == "") {
|
|
|
that.$notify({
|
|
|
title: '提示',
|
|
|
- message: that.tiptip,
|
|
|
+ message: that.intip,
|
|
|
type: 'warning',
|
|
|
duration:'1500'
|
|
|
})
|
|
@@ -288,7 +287,7 @@ var inputTest = function(that){
|
|
|
if (that.loginInfo.intype == "") {
|
|
|
that.$notify({
|
|
|
title: '提示',
|
|
|
- message: that.tiptip,
|
|
|
+ message: that.intip,
|
|
|
type: 'warning',
|
|
|
duration:'1500'
|
|
|
})
|
|
@@ -306,11 +305,11 @@ var inputTest = function(that){
|
|
|
};
|
|
|
return true;
|
|
|
case 2:
|
|
|
- if (that.operation == "mobile") {
|
|
|
+ if (that.operation == "email") {
|
|
|
if (that.resetInfo.intype == "") {
|
|
|
that.$notify({
|
|
|
title: '提示',
|
|
|
- message: that.tiptip,
|
|
|
+ message: that.intip,
|
|
|
type: 'warning',
|
|
|
duration:'1500'
|
|
|
})
|
|
@@ -344,7 +343,7 @@ var inputTest = function(that){
|
|
|
})
|
|
|
return false;
|
|
|
}
|
|
|
- if (that.resetInfo.oldPassWord == that.resetInfo.newPassWord) {
|
|
|
+ if (that.resetInfo.oldPassWord != that.resetInfo.newPassWord) {
|
|
|
that.$notify({
|
|
|
title: '提示',
|
|
|
message: '两次输入的密码不同',
|
|
@@ -462,7 +461,6 @@ var loginOut = function(that){
|
|
|
|
|
|
|
|
|
var resetCode = function(that){
|
|
|
- inputTest(that);
|
|
|
if (that.resetInfo.intype == '') {
|
|
|
return false;
|
|
|
}
|
|
@@ -470,13 +468,15 @@ var resetCode = function(that){
|
|
|
"email":that.operation=="email"? that.resetInfo.intype:"",
|
|
|
"mobile":that.operation=="mobile"? that.resetInfo.intype:"",
|
|
|
"os":"web",
|
|
|
- "type":that.operation=="email"?"email":"sms",
|
|
|
+ "type":that.operation=="email"? "email":"sms",
|
|
|
"platkey":"fx66",
|
|
|
"ticket":"",
|
|
|
- "businessId":""
|
|
|
+ "businessId":"",
|
|
|
+ "area":that.operation=="mobile"? that.coutry:""
|
|
|
}
|
|
|
+
|
|
|
getInfo(that,that.urlApi.resetEmailPassword,"POST",params,function(res){
|
|
|
- console.log(res.code);
|
|
|
+ console.log(params);
|
|
|
if (res.code = 200) {
|
|
|
that.$notify({
|
|
|
title: '成功',
|
|
@@ -516,17 +516,17 @@ var goReset = function(that,flag){
|
|
|
|
|
|
|
|
|
var getStatus = function(that){
|
|
|
- getInfo(that,that.urlApi.applyStatus,"POST",'',function(res){
|
|
|
+ getInfo(that,that.urlApi.applyStatus,"GET",'',function(res){
|
|
|
if (res.code == 200) {
|
|
|
- if (res.data.isApply == 1) {
|
|
|
+ if (res.data.isApplyed == 1) {
|
|
|
switch (res.data.info.status){
|
|
|
- case 0:
|
|
|
+ case "0":
|
|
|
that.applicationStatus = 1;
|
|
|
break;
|
|
|
- case 1:
|
|
|
+ case "1":
|
|
|
that.applicationStatus = 2;
|
|
|
break;
|
|
|
- case -1:
|
|
|
+ case "-1":
|
|
|
that.applicationStatus = -1;
|
|
|
break;
|
|
|
}
|