|
@@ -529,42 +529,43 @@ export default{
|
|
|
},
|
|
|
//注册按钮
|
|
|
goreg(){
|
|
|
- if(this.regParam.email==""){
|
|
|
- this.$notify({
|
|
|
- title: '提示',
|
|
|
- message: this.tipWord,
|
|
|
- type: 'warning',
|
|
|
- duration:'1500'
|
|
|
- })
|
|
|
- return false;
|
|
|
- };
|
|
|
- if(this.regParam.code==""){
|
|
|
- this.$notify({
|
|
|
- title: '提示',
|
|
|
- message: '验证码不能为空',
|
|
|
- type: 'warning',
|
|
|
- duration:'1500'
|
|
|
- })
|
|
|
- return false;
|
|
|
- };
|
|
|
- if(this.regParam.password==""){
|
|
|
- this.$notify({
|
|
|
- title: '提示',
|
|
|
- message: '密码不能为空',
|
|
|
- type: 'warning',
|
|
|
- duration:'1500'
|
|
|
- })
|
|
|
- return false;
|
|
|
- };
|
|
|
- if(this.tipNeed==false){
|
|
|
- this.$notify({
|
|
|
- title: '提示',
|
|
|
- message: '请阅读风险提示',
|
|
|
- type: 'warning',
|
|
|
- duration:'1500'
|
|
|
- })
|
|
|
- return false;
|
|
|
- }
|
|
|
+ //验证输入
|
|
|
+ if(this.regParam.email==""){
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: this.tipWord,
|
|
|
+ type: 'warning',
|
|
|
+ duration:'1500'
|
|
|
+ })
|
|
|
+ return false;
|
|
|
+ };
|
|
|
+ if(this.regParam.code==""){
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: '验证码不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ duration:'1500'
|
|
|
+ })
|
|
|
+ return false;
|
|
|
+ };
|
|
|
+ if(this.regParam.password==""){
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: '密码不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ duration:'1500'
|
|
|
+ })
|
|
|
+ return false;
|
|
|
+ };
|
|
|
+ if(this.tipNeed==false){
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: '请阅读风险提示',
|
|
|
+ type: 'warning',
|
|
|
+ duration:'1500'
|
|
|
+ })
|
|
|
+ return false;
|
|
|
+ }
|
|
|
let param={};
|
|
|
if(this.operateType=="email"){
|
|
|
param={
|
|
@@ -572,17 +573,19 @@ export default{
|
|
|
'password':this.regParam.password,
|
|
|
'code':this.regParam.code,
|
|
|
'type':"email",
|
|
|
- "checkmethod":"data",
|
|
|
+ 'checkmethod':"data",
|
|
|
+ 'platform':'fx66',
|
|
|
};
|
|
|
}
|
|
|
else{
|
|
|
param={
|
|
|
- mobile:this.regParam.email,
|
|
|
- password:this.regParam.password,
|
|
|
- code:this.regParam.code,
|
|
|
- checkmethod:"data",
|
|
|
- type:"sms",
|
|
|
- area:this.area,
|
|
|
+ 'mobile':this.regParam.email,
|
|
|
+ 'password':this.regParam.password,
|
|
|
+ 'code':this.regParam.code,
|
|
|
+ 'checkmethod':"data",
|
|
|
+ 'type':"sms",
|
|
|
+ 'area':this.area,
|
|
|
+ 'platform':'fx66',
|
|
|
};
|
|
|
}
|
|
|
this.regLoad=true;
|
|
@@ -590,7 +593,7 @@ export default{
|
|
|
this.regLoad=false;
|
|
|
if(data.code==200){
|
|
|
this.gologin('reg');
|
|
|
- this.isRegisted = false;
|
|
|
+ this.isRegisted = false;
|
|
|
this.$notify({
|
|
|
title: '成功',
|
|
|
message: '注册成功!',
|
|
@@ -908,5 +911,4 @@ export default{
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
</style>
|