123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790 |
- <!DOCTYPE html>
- <html>
-
- <head>
- <title>广西自学考试网上系统</title>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <link rel="shortcut icon" type="image/x-icon" href="./img/favicon.png"/>
- <!-- import CSS -->
- <!-- <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"> -->
- <!--<link rel="stylesheet" href="https://unpkg.com/element-ui@2.4.11/lib/theme-chalk/index.css">-->
- <link rel="stylesheet" href="https://lib.baomitu.com/element-ui/2.12.0/theme-chalk/index.css">
- <link rel="stylesheet" href="./vendor/font-awesome-4.7.0/css/font-awesome.min.css">
- <script src="https://lib.baomitu.com/jquery/1.12.4/jquery.min.js"></script>
- <script src="./vendor/jqueryPlugPop/plug-in.min.js"></script>
- <script src="./vendor/md5/md5.js" type="text/javascript"></script>
- <script src="./vendor/md5/jsencrypt.js" type="text/javascript"></script>
- <script src="./js/tool.js"></script>
- <!-- import Vue before Element -->
- <!-- <script src="https://unpkg.com/vue/dist/vue.js"></script> -->
- <script src="https://lib.baomitu.com/vue/2.5.17/vue.min.js" type="text/javascript"></script>
- <!-- import JavaScript -->
- <!-- <script src="https://unpkg.com/element-ui/lib/index.js"></script> -->
- <script src="https://lib.baomitu.com/element-ui/2.4.11/index.js" type="text/javascript"></script>
- <!-- <script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script> -->
- <script>
- function keyDown(){
- if (event.keyCode==13) //回车键的键值为13
- if(this.logintype==1){
-
- document.getElementById("loginBtnForPhone").click(); //调用登录按钮的登录事件
- }else{
-
- document.getElementById("loginBtn").click();
- }
- }
- </script>
- </head>
- <body onkeydown="keyDown();">
- <!-- particles.js container -->
- <div id="particles-js"></div>
- <!-- scripts -->
- <script src="https://lib.baomitu.com/particles.js/2.0.0/particles.min.js"></script>
- <script src="./vendor/particles/js/app.js"></script>
-
- <div id="app">
- <!-- <header class="header">
- <div class="school-logo"><img :src="this.logoPath" alt="school logo" />
- </div>
- <a class="close" style="border-bottom-left-radius: 6px;">关闭</a>
- </header> -->
-
- <div class="center" v-show="loaded">
- <!-- width: 100%;min-height: 350px;max-height: 380px; -->
- <!--<el-card style="position: absolute;top: 20%;margin-left: 0%;margin-right: 25%;width: 765px;min-width: 300px;height: 380px;z-index: 999999999999;" v-show="showInfo">
- <div slot="header" class="clearfix" style="text-align: left;">
- <span class="artcle-title">自治区招生考试院关于推迟我区4月高等教育自学考试报考工作的公告 </span> <button type="button" @click="showInfo=false;" aria-label="Close" class="el-dialog__headerbtn" style="margin-top: 10px; font-size: 18px;"><i class="el-dialog__close el-icon el-icon-close"></i></button>
- </div>
- <span class="artcle-detail">
- 为贯彻落实国家和自治区关于做好新型冠状病毒肺炎疫情防控工作的有关精神,
- <br>
- 切实保障广大考生和考试工作人员的生命安全和身体健康,
- <br>
- 原定于2月17日开始的4月高等教育自学考试报考工作推迟进行,
- <br>
- 具体报考时间将视疫情防控情况另行通知。
- <br>
- 请各位考生密切关注“广西招生考试院”网站(www.gxeea.cn)、
- <br>
- 微信公众号(名称:柳园清风、广西自考办)发布的相关信息。
- <br>
-
-
- <div style="text-align: right;width: 100%;margin-bottom: 30px">广西壮族自治区招生考试院<br>
- 2020年2月17日<br>
- </div>
- </span>
- </el-card>
- <el-card style="position: absolute;top: 25%;margin-left: 30%;margin-right: 25%;width: 250px;min-width: 300px;height: 250px;z-index: 999999999999;" v-show="showInfo">
- <div slot="header" class="clearfix" style="text-align: center;">
- <span style=" font-size: 16px;">识别二维码领取“广西健康码” </span>
- </div>
-
- <div style="margin-left: 25%;top: 25%;"><img src="http://www.gxeea.cn/gallary/upload_images//1013_25850_1595583126945.png" />
- </div>
- </el-card>
- -->
-
- <el-card style="position: absolute;top: 25%;margin-left: 35%;margin-right: 5%;width: 250px;min-width: 300px;height: 250px;z-index: 999999999999;" v-show="showInfo">
- <div slot="header" class="clearfix" style="text-align: center;">
- <span style=" font-size: 16px;">手机浏览器扫一扫下载广西自考APP Android版(苹果版本暂未提供) </span>
- </div>
-
- <div style="margin-left: 25%;top: 25%;"><img style="width: 125px;height: 125px;" src="https://zk1.gxeea.cn:8001/login/img/zk_app.png" />
- </div>
- <div style="text-align: left;margin-left: 0%;top: 25%;">
- <a style="position: absolute;font-size: 16px;" href="https://www.gxeea.cn/app/zk.apk">或点击下载广西自考APP Android版</a>
- </div>
- </el-card>
-
-
- <div class="content">
-
- <el-card class="box-card" style="position: absolute;top: 9%;width: 380px;min-height: 350px;max-height: 460px;">
- <div slot="header" class="clearfix" style="text-align: center;">
- <span>广西自学考试网上系统</span>
- </div>
- <center>
- <el-tabs type="border-card">
- <el-tab-pane label="账 号" onclick="logintype=0;">
- <el-form ref="loginForm" :model="loginForm" :rules="loginFormRule">
- <!-- <el-form-item prop="accountValue">
- <el-input type="text" v-model="loginForm.cert_no" placeholder="登录账号:证件号/准考证号">
- <el-icon icon="edit" slot="prepend"></el-icon>
- </el-input>
- </el-form-item>
- <el-form-item prop="password">
- <el-input type="password" v-model="loginForm.std_pass" placeholder="密码" @on-enter="login('loginForm')">
- <el-icon icon="share" slot="prepend"></el-icon>
- </el-input>
- </el-form-item> -->
- <form class="el-form">
- <div class="el-form-item">
- <div class="el-form-item__content">
- <div class="el-input el-input-group el-input-group--prepend">
- <div class="el-input-group__prepend" style="padding-left: 15px;padding-right: 15px;color: black">
- <!-- <i class="el-icon-undefined" icon="edit"></i> -->
- <i class="fa fa-user-o fa-fw"></i>
- </div>
- <input type="text" v-model="loginForm.cert_no" maxlength="32"
- autocomplete="off" placeholder="登录账号:证件号/准考证号" class="el-input__inner">
- </div>
- </div>
- </div>
- <div class="el-form-item">
- <div class="el-form-item__content">
- <div class="el-input el-input-group el-input-group--prepend">
- <div class="el-input-group__prepend" style="padding-left: 15px;padding-right: 15px;color: black">
- <i class="fa fa-key fa-fw"></i>
- </div>
- <input v-model="loginForm.std_pass"
- type="password" autocomplete="off" placeholder="密码" class="el-input__inner">
- </div>
- </div>
- </div>
- <div class="el-form-item">
- <div class="el-form-item__content">
- <div class="el-input el-input-group el-input-group--prepend">
- <div class="el-input-group__prepend" style="padding-left: 15px;padding-right: 15px;color: black">
- <i class="fa fa-hand-o-right fa-fw"></i>
- </div>
- <input v-model="validateCode" maxlength="4"
- type="text" autocomplete="off" placeholder="校验码" class="el-input__inner">
- <!-- <i class="fa fa-info fa-lg" style=" position: absolute;top: 15px;right: 100px;height: 80%;"></i> -->
- <i v-if="validateCode_check==1" class="fa fa-check-circle-o fa-lg" style="font-size: 22px; position: absolute;top: 15px;right: 100px;height: 80%;color:#67C23A"></i>
- <i v-if="validateCode_check==0" class="fa fa-times-circle-o fa-lg" style="font-size: 22px; position: absolute;top: 15px;right: 100px;height: 80%;color: #F56C6C"></i>
- <i v-if="validateCode_check=='loading'" class="fa fa-spinner fa-lg" style="font-size: 22px; position: absolute;top: 15px;right: 100px;height: 80%;color: blue"></i>
- <img :src="validateCodesrc" @click="freshImg" style="cursor:pointer; position: absolute;top: 5px;right: 2px;height: 80%;">
- </div>
- </div>
-
- </div>
- <!-- <div class="el-form-item">
- <div class="el-form-item__content">
- <span style="width: 100%;">
- <button type="button" class="el-button btn-long el-button-primary">
- <span>登录</span>
- </button>
- </span>
- <a>注册</a>
- </div>
- </div> -->
- </form>
- <!-- <el-alert type="error" size="mini" show-icon>{{errorInfo}}</el-alert> -->
- <div v-if="errorInfo" >
- <div style="margin-bottom: 5px;">
- <div role="alert" class="el-alert el-alert--error" size="mini" style=" font-size:10px;">
- <i class="fa fa-info-circle fa-lg"></i>
- <div class="el-alert__content">{{errorInfo}}
- <i class="el-alert__closebtn fa fa-window-close fa-lg" @click="errorInfo = null"></i>
- </div>
- </div>
- </div>
- </div>
- <el-form-item>
- <span style="width:100%">
- <el-button type="primary" id="loginBtn" class="btn-long" @click="login('loginForm')">登录</el-button>
- </span>
- <a style="position: absolute;left: 0px;" href="javascript:void(0)" @click="goReg()">新考生注册(老考生十二位准考证查询)</a>
- <!--
- <a style="position: absolute;right: 2px;" href="https://www.google.cn/intl/zh-CN/chrome/">chrome浏览器下载</a>
-
- <a style="position: absolute;left: 0px;top:65px;" href="./scoreQuery.html">快捷成绩查询</a>
- -->
- <a style="position: absolute;left: 0px;top:65px;" href="javascript:void(0)" @click="goPassword()">忘记密码</a>
- <a style="position: absolute;right: 2px;top:65px" href="javascript:void(0)" @click="goMajorPlanQuery()">
- 专业计划查询
- </a>
-
- </el-form-item>
- </el-form>
- </el-tab-pane>
- <el-tab-pane label="手机号" onclick="logintype=1;">
- <el-form ref="loginForm" :model="loginForm" :rules="loginFormRule">
- <form class="el-form">
- <div class="el-form-item">
- <div class="el-form-item__content">
- <div class="el-input el-input-group el-input-group--prepend">
- <div class="el-input-group__prepend" style="padding-left: 15px;padding-right: 15px;color: black">
- <i class="fa fa-user-o fa-fw"></i>
- </div>
- <input type="text" v-model="loginForm.cert_no" maxlength="32"
- autocomplete="off" placeholder="登录账号:手机号码" class="el-input__inner">
- </div>
- </div>
- </div>
- <div class="el-form-item">
- <div class="el-form-item__content">
- <div class="el-input el-input-group el-input-group--prepend">
- <div class="el-input-group__prepend" style="padding-left: 15px;padding-right: 15px;color: black">
- <i class="fa fa-key fa-fw"></i>
- </div>
- <input v-model="loginForm.code" maxlength="6"
- type="text" autocomplete="off" placeholder="短信验证码" class="el-input__inner">
- <a style="cursor:pointer; position: absolute;top: 12px;right: 20px;height: 80%;" href="javascript:void(0)" :disabled="secCountDown>0" @click="sendSmsForLogin()">{{secCountDownInfo}}</a>
- </div>
- </div>
- </div>
- <div class="el-form-item">
- <div class="el-form-item__content">
- <div class="el-input el-input-group el-input-group--prepend">
- <div class="el-input-group__prepend" style="padding-left: 15px;padding-right: 15px;color: black">
- <i class="fa fa-hand-o-right fa-fw"></i>
- </div>
- <input v-model="validateCode" maxlength="4"
- type="text" autocomplete="off" placeholder="校验码" class="el-input__inner">
- <i v-if="validateCode_check==1" class="fa fa-check-circle-o fa-lg" style="font-size: 22px; position: absolute;top: 15px;right: 100px;height: 80%;color:#67C23A"></i>
- <i v-if="validateCode_check==0" class="fa fa-times-circle-o fa-lg" style="font-size: 22px; position: absolute;top: 15px;right: 100px;height: 80%;color: #F56C6C"></i>
- <i v-if="validateCode_check=='loading'" class="fa fa-spinner fa-lg" style="font-size: 22px; position: absolute;top: 15px;right: 100px;height: 80%;color: blue"></i>
-
- <img :src="validateCodesrc" @click="freshImg" style="cursor:pointer; position: absolute;top: 5px;right: 2px;height: 80%;">
- </div>
- </div>
-
- </div>
- <!-- <div class="el-form-item">
- <div class="el-form-item__content">
- <span style="width: 100%;">
- <button type="button" class="el-button btn-long el-button-primary">
- <span>登录</span>
- </button>
- </span>
- <a>注册</a>
- </div>
- </div> -->
- </form>
- <!-- <el-alert type="error" size="mini" show-icon>{{errorInfo}}</el-alert> -->
- <div v-if="errorInfo" >
- <div style="margin-bottom: 5px;">
- <div role="alert" class="el-alert el-alert--error" size="mini" style=" font-size:10px;">
- <i class="fa fa-info-circle fa-lg"></i>
- <div class="el-alert__content">{{errorInfo}}
- <i class="el-alert__closebtn fa fa-window-close fa-lg" @click="errorInfo = null"></i>
- </div>
- </div>
- </div>
- </div>
- <el-form-item>
- <span style="width:100%">
- <el-button type="primary" id="loginBtnForPhone" class="btn-long" @click="loginForPhone('loginForm')">登录</el-button>
- </span>
- <a style="position: absolute;left: 0px;" href="javascript:void(0)" @click="goReg()">新考生注册(老考生十二位准考证查询)</a>
- <!--
- <a style="position: absolute;right: 2px;" href="https://www.google.cn/intl/zh-CN/chrome/">chrome浏览器下载</a>
-
-
- <a style="position: absolute;left: 0px;top:65px;" href="./scoreQuery.html">快捷成绩查询</a>
- -->
-
- <a style="position: absolute;left: 0px;top:65px;" href="javascript:void(0)" @click="goPassword()">忘记密码</a>
-
- <a style="position: absolute;right: 2px;top:65px" href="javascript:void(0)" @click="goMajorPlanQuery()">
- 专业计划查询
- </a>
-
-
- </el-form-item>
- </el-form>
- </el-tab-pane>
- </el-tabs>
- </center>
- </el-card>
- <el-card style="margin-bottom:0px;padding-bottom:0px;margin-top:0px;padding-top:0px;position: absolute;top: 24%;right: 14%;width: 270px;min-height: 320px;;z-index: 999999999999;" v-show="isMutiAccount">
- <div slot="header" class="clearfix" style="text-align: center;">
- <span>选择账号 </span> <button type="button" @click="isMutiAccount=false;" aria-label="Close" class="el-dialog__headerbtn" style="font-size: 16px;"><i class="el-dialog__close el-icon el-icon-close"></i></button>
- </div>
- <div slot="header" class="clearfix" style="text-align: center;">
- <el-table
- :data="accountArray"
- style="width: 100%;text-align: center;"
- @selection-change="handleSelectionChange"
- @current-change="handleCurrentChange"
- >
- <el-table-column
- prop="ticket_no"
- label="准考证号"
- style="width: 250px;text-align: center;padding:0px;margin: 0px;"
- >
- </el-table-column>
- </el-table>
- </div>
- </el-card>
- <el-card style="margin-bottom:0px;padding-bottom:0px;margin-top:0px;padding-top:0px;position: absolute;top: 24%;right: 14%;width: 270px;min-height: 320px;;z-index: 999999999999;" v-show="isMutiAccountForPhone">
- <div slot="header" class="clearfix" style="text-align: center;">
- <span>选择账号 </span> <button type="button" @click="isMutiAccountForPhone=false;" aria-label="Close" class="el-dialog__headerbtn" style="font-size: 16px;"><i class="el-dialog__close el-icon el-icon-close"></i></button>
- </div>
- <div slot="header" class="clearfix" style="text-align: center;">
- <el-table
- :data="accountArray"
- style="width: 100%;text-align: center;"
- @selection-change="handleSelectionChangeForPhone"
- @current-change="handleCurrentChangeForPhone"
- >
- <el-table-column
- prop="ticket_no"
- label="准考证号"
- style="width: 250px;text-align: center;padding:0px;margin: 0px;"
- >
- </el-table-column>
- </el-table>
- </div>
- </el-card>
- </div>
-
- </div>
- </div>
- <center>
- <footer class="footer" style="z-index: 999999999999;text-align:right"> @fairyever</footer>
- </center>
- <script>
-
- new Vue({
- el: '#app',
- computed: {
- validateCodesrc: function() {
- this.randomnum = Date.parse(new Date());
- return basePath + "/std/validateCode.htm?"+this.randomnum;
- },
- },
- watch: {
- validateCode: function(newValue, oldValue) {
- if(newValue && newValue.length ==4){
- this.validateCode_check = "loading";
- var this_ = this;
- //请求验证 校验码
- ajaxRequest("", '/std/stdRegInfo/checkValidateCode.htm', {validateCode:this.validateCode}, function (resp) {
- if (resp.success) {
- this_.validateCode_check = 1;
- } else {
- this_.validateCode_check = 0;
- }
- })
- }
- },
- },
- data: function () {
- return {
- pubKey:null,
- showInfo:true,
- randomnum:null,
- validateCode_check:null,
- loaded: false,
- logoPath: "",
- productName: "广西自考报考系统",
- errorInfo: null,
- validateCode: "",
- isMutiAccount:false,
- isMutiAccountForPhone:false,
- accountArray:[],
- selection:null,
- accountArrayloading:false,
- secCountDown: 0,
- secCountDownInfo:"发送短信验证码",
- logintype:0,
- loginForm: {
- cert_no: "",
- std_pass: "",
- validateCode:"",
- code:"",
- id:""
- },
- loginFormRule: {
- cert_no: [{
- required: true,
- message: "请填写登录账号",
- trigger: "blur"
- }],
- std_pass: [{
- required: true,
- message: "请填写密码",
- trigger: "blur"
- }],
- code: [{
- required: true,
- message: "请填写短信验证码",
- trigger: "blur"
- }],
- validateCode: [{
- required: true,
- message: "请填写校验码",
- trigger: "blur"
- }]
- }
-
- //
- }
- },
- mounted: function() {
- var div = document.getElementById("particles-js");
- div.children[0].height = div.children[0].height - 220;
- var this_ = this;
- //获取公钥
- ajaxRequest("", '/std/stdRegInfo/queryPubKey.htm', {}, function (resp) {
- if (resp.success) {
- this_.pubKey = resp.entity;
- }
- });
-
- },
- created: function() {
- this.loaded = true;
- },
- methods: {
- freshImg: function(){
- this.randomnum = Date.parse(new Date());
- },
- goReg: function () {
- window.location.href = './reg.html';
- },
- goPassword: function(){
- window.location.href = './password.html';
- },
- goMajorPlanQuery: function(){
- window.location.href = './majorPlanQuery.html';
- },
- handleSelectionChange: function(val){
- this.selection = val;
- },
- handleCurrentChange: function(val){
- this.selection = val;
- this.isMutiAccount = false;
- this.loginForm.cert_no = val.ticket_no;
- this.login();
-
- },
- handleSelectionChangeForPhone: function(val){
- this.selection = val;
- },
- handleCurrentChangeForPhone: function(val){
- this.selection = val;
- this.isMutiAccountForPhone = false;
- this.loginForm.id = val.id;
- this.loginForPhone();
-
- },
-
- getSignString:function(data) {
-
- var encrypt = new JSEncrypt();
- // 公匙,由后端返回到前台
- encrypt.setPublicKey(this.pubKey);
- var encodePassword = encrypt.encrypt(data);
- return encodePassword;
- },
- login: function () {
- this.errorInfo = null;
- var _this = this;
- if(!this.loginForm.cert_no){
- this.errorInfo = "请填写登录账号";
- return;
- }
- if(!this.loginForm.std_pass){
- this.errorInfo = "请填写密码";
- return;
- }
-
- if(!this.validateCode){
- this.errorInfo = "请填写校验码";
- return;
- }
-
- var std_pass_md5 = this.getSignString(hex_md5(this.loginForm.std_pass));
- var cloneLoginForm = JSON.parse(JSON.stringify(this.loginForm));
- cloneLoginForm.std_pass = std_pass_md5;
- cloneLoginForm.validateCode = this.validateCode;
-
- ajaxRequest("", '/std/login.htm', cloneLoginForm, function (resp) {
-
- if (resp.success) {
- if(resp.array){
- _this.accountArray = resp.array;
- _this.isMutiAccount = true;
- // _this.accountArrayloading = false;
- return;
- }
-
- localStorage.setItem("user",JSON.stringify(resp.entity));
-
- // 如果没有绑定手机号码且也没有设置密保问题,(两者设置其一直接跳转首页),则跳转绑定手机号码页面
- //if(!resp.entity.bindphone && resp.entity.question=='0'){
- // 20220722 当前批次信息没有采集,考生第一次登录时,跳转采集页面
-
- if(!resp.entity.year_code || resp.entity.year_code!=resp.entity.current_year_code){
- //跳转绑定手机页面
- window.location.href = "./phone.html";
- }else{
- //跳转系统首页
- window.location.href = "../#/index";
- }
-
- } else {
- _this.errorInfo = resp.errorMsg;
- _this.freshImg();
- _this.validateCode = "";
- }
- })
-
- },
- loginForPhone: function () {
- this.errorInfo = null;
- var _this = this;
- if(!this.loginForm.cert_no){
- this.errorInfo = "请填写手机号码";
- return;
- }
- if(!this.loginForm.code){
- this.errorInfo = "请填写短信验证码";
- return;
- }
-
- if(!this.validateCode){
- this.errorInfo = "请填写校验码";
- return;
- }
- var cloneLoginForm = JSON.parse(JSON.stringify(this.loginForm));
- cloneLoginForm.code = this.loginForm.code;
- cloneLoginForm.validateCode = this.validateCode;
- ajaxRequest("", '/std/loginForPhone.htm', cloneLoginForm, function (resp) {
- if (resp.success) {
- if(resp.array){
- _this.accountArray = resp.array;
- _this.isMutiAccountForPhone = true;
- // _this.accountArrayloading = false;
- return;
- }
-
- localStorage.setItem("user",JSON.stringify(resp.entity));
-
- if(!resp.entity.year_code || resp.entity.year_code!=resp.entity.current_year_code){
- //跳转绑定手机页面
- window.location.href = "./phone.html";
- }else{
- //跳转系统首页
- window.location.href = "../#/index";
- }
- //跳转系统首页
- // window.location.href = "../#/index";
-
- } else {
- _this.errorInfo = resp.errorMsg;
- _this.freshImg();
- _this.validateCode = "";
- if(_this.cloneLoginForm && _this.cloneLoginForm.id){
- _this.cloneLoginForm.id="";
- }
-
- }
- })
-
- },
- sendSmsForLogin: function(){
- var _this = this;
- this.errorInfo = "";
- if(!_this.loginForm.cert_no){
- this.errorInfo = "请填写手机号码";
- return;
- }
- //if(!_this.validateCode){
- // _this.errorInfo = "请填写校验码";
- // return;
- // }
- ajaxRequest("", '/std/sendSmsForLogin.htm', {std_mobile:this.loginForm.cert_no }, function (resp) {
-
-
- if(resp.success==true){
- _this.secCountDown = 60;
- var int = setInterval(function(){
- _this.secCountDown--;
- if(_this.secCountDown == 0){
- clearInterval(int);
- //恢复 发送按钮
- _this.secCountDownInfo = "发送短信验证码";
- }else{
- //倒计时提示
- _this.secCountDownInfo = _this.secCountDown+"秒后可重新发送";
- }
- },1000);
- _this.errorInfo = "验证码发送成功,请填写短信验证码!";
-
- }else if(resp.success==false && resp.errorMsg){
- _this.errorInfo = resp.errorMsg;
-
- }else{
- _this.errorInfo = "验证码发送失败,请重新尝试!";
-
-
- }
- _this.freshImg();
- _this.validateCode = "";
- })
- },
- }
- });
- </script>
- <style scoped>
- .home {
- display: flex;
- flex-direction: column;
- height: 100vh;
- }
-
- .school-logo {
- margin-left: -300px;
- }
-
- .header {
- min-height: 120px;
- display: grid;
- }
-
- .center {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-image: url("./img/bg.jpg");
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- /* opacity: 0.8;*/
- filter: alpha(opacity = 20);
- }
-
- .content {
- margin-top: 100px;
- margin-left: 60%;
- width: 380px;
- /* height: 300px; */
- border-radius: 6px;
- background-color: white;
- display: grid;
- grid-template-areas: "";
- }
-
- .login-type {
- flex: 1;
- line-height: 40px;
- background-color: #eeeeee;
- }
-
- .active-type {
- background-color: #ffffff;
- }
-
- .close {
- position: absolute;
- top: 0;
- right: 0;
- background-color: #eeeeee;
- color: #999999;
- width: 80px;
- height: 40px;
- line-height: 40px;
- }
-
- .close:hover {
- color: #444444;
- }
-
- .btn-long {
- width: 100%;
- }
-
- body {
- margin: 0px 0px
- }
-
- .group__prepend{
- padding: 0px 10px !important;
- }
-
- .el-alert {
- margin: 20px 0 0;
- }
- .el-alert--error {
- background-color: #fef0f0 !important;
- color: #f56c6c;
- }
- .el-alert {
- width: 100%;
- padding: 8px 16px;
- margin: 0;
- box-sizing: border-box;
- border-radius: 4px;
- position: relative;
- background-color: #fff;
- overflow: hidden;
- opacity: 1;
- display: flex;
- align-items: center;
- transition: opacity .2s;
- }
- .artcle-title {
- margin-top: 25px !important;
- font-family: "Microsoft YaHei", "微软雅黑字体";
- color: #4c4c4c !important;
- font-size: 23px !important;
- text-align: center !important;
- font-weight: bold !important;
- }
- .artcle-detail {
- padding-top: 20px;
- line-height: 30px;
- font-size: 18px;
- }
- .el-tabs__nav{
- width: 100% !important
- }
- .el-tabs__item{
- width: 50% !important
- }
- /* .el-card__header{
- padding: 3px 3px;
- }
-
- .el-card__body{
- padding: 0px !important
- } */
- </style>
- </body>
- </html>
|