|
|
|
@ -96,9 +96,9 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import {freedomLogin,submitNote} from "@/api/freedom/login"; |
|
|
|
|
import {login,submitNote} from "@/api/freedom/login"; |
|
|
|
|
export default { |
|
|
|
|
name: "login", |
|
|
|
|
name: "Login", |
|
|
|
|
data() { |
|
|
|
|
let checkedFn = (rule, value, callback) => { |
|
|
|
|
if (!value) { |
|
|
|
@ -149,8 +149,8 @@ |
|
|
|
|
{ required: true, message: '请输入个人密码', trigger: 'blur' } |
|
|
|
|
], |
|
|
|
|
checked: [ |
|
|
|
|
// { validator: checkedFn, trigger: "change" } |
|
|
|
|
{ type: 'array', required: true, message: '请勾选同意协议', trigger: 'change' } |
|
|
|
|
{ validator: checkedFn, trigger: "change" } |
|
|
|
|
// { type: 'array', required: true, message: '请勾选同意协议', trigger: 'change' } |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
@ -159,11 +159,11 @@ |
|
|
|
|
submitForm(formName) { |
|
|
|
|
this.$refs[formName].validate((valid) => { |
|
|
|
|
if (valid) { |
|
|
|
|
alert('submit!'); |
|
|
|
|
this.ruleForm.dlsfmm = this.ruleForm.gsnsmm; |
|
|
|
|
this.ruleForm.bsryxz = this.ruleForm.zjh; |
|
|
|
|
this.ruleForm.gsnsyhm = this.ruleForm.zjh; |
|
|
|
|
freedomLogin(this.ruleForm).then(res=>{ |
|
|
|
|
// alert('submit!'); |
|
|
|
|
this.ruleForm.nsrInfo.dlsfmm = this.ruleForm.nsrInfo.gsnsmm; |
|
|
|
|
this.ruleForm.nsrInfo.bsryxz = this.ruleForm.nsrInfo.zjh; |
|
|
|
|
this.ruleForm.nsrInfo.gsnsyhm = this.ruleForm.nsrInfo.zjh; |
|
|
|
|
login(this.ruleForm).then(res=>{ |
|
|
|
|
if (res.code == 200){ |
|
|
|
|
this.ruleForm.traceno = res.msg; |
|
|
|
|
this.ruleForm.show = false; |
|
|
|
|