自主授权

beta-enc
yishiqihuasheng 2 years ago
parent d7c1535c99
commit 0bdb8f48bb
  1. 14
      jianshui-ui/src/views/freedom/login.vue

@ -48,7 +48,7 @@
</el-form-item> </el-form-item>
<el-form-item label="登陆方式" prop="loginType"> <el-form-item label="登陆方式" prop="loginType">
<el-select v-model="ruleForm.loginType" placeholder="" style="width: 100%"> <el-select v-model="ruleForm.loginType" placeholder="" style="width: 100%">
<el-option label="账密手机号" value="1"></el-option> <el-option label="账密" value="1"></el-option>
<el-option label="扫码登陆" value="2"></el-option> <el-option label="扫码登陆" value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -94,14 +94,14 @@
</el-form> </el-form>
<el-form :model="ruleForm" ref="ruleForm" label-width="100px" class="demo-ruleForm" size="medium" v-if="ruleForm.showthree"> <el-form :model="ruleForm" ref="ruleForm" label-width="100px" class="demo-ruleForm" size="medium" v-if="ruleForm.showthree">
<el-row> <el-row style="margin-left: 500px">
<el-col :xl="12" :lg="12" > <el-col :xl="12" :lg="12" >
<el-result icon="success" title="" subTitle=""> <el-result icon="success" title="" subTitle="">
</el-result> </el-result>
</el-col> </el-col>
</el-row> </el-row>
<p style="text-align: center;margin-bottom: 30px">授权成功,任务可能需要5-10分钟请耐心等待...</p> <p style="text-align: center;margin-bottom: 30px">授权成功,任务可能需要5-10分钟请耐心等待...</p>
<span @click="changeShow()" style="color: #787be8;text-decoration-line: underline;margin-left: 50%">重新授权</span> <span @click="changeShow()" style="color: #787be8;text-decoration-line: underline;margin-left: 48%">重新授权</span>
</el-form> </el-form>
</div> </div>
</template> </template>
@ -121,8 +121,8 @@ export default {
return { return {
ruleForm: { ruleForm: {
smsCode : "", smsCode : "",
showone : false, showone : true,
showtwo : true, showtwo : false,
showthree : false, showthree : false,
nsrsbh: '', nsrsbh: '',
nsrdq: '', nsrdq: '',
@ -224,13 +224,13 @@ export default {
// ajax // ajax
submitNoteResult(this.ruleForm.traceno,this.ruleForm.nsrsbh,this.ruleForm.smsCode,this.ruleForm.nsrInfo.zjh) submitNoteResult(this.ruleForm.traceno,this.ruleForm.nsrsbh,this.ruleForm.smsCode,this.ruleForm.nsrInfo.zjh)
.then(res=>{ .then(res=>{
if (res.msg == "10011"){ if (res.msg == "10012"){
this.ruleForm.showone = false; this.ruleForm.showone = false;
this.ruleForm.showtwo = false; this.ruleForm.showtwo = false;
this.ruleForm.showthree = true; this.ruleForm.showthree = true;
this.loading = false; this.loading = false;
clearInterval(timer) clearInterval(timer)
}else if(res.msg == "10012"){ }else if(res.msg == "10011"){
this.ruleForm.showone = false; this.ruleForm.showone = false;
this.ruleForm.showtwo = true; this.ruleForm.showtwo = true;
this.ruleForm.showthree = false; this.ruleForm.showthree = false;

Loading…
Cancel
Save