Kaynağa Gözat

微信登陆修改

tudc 4 yıl önce
ebeveyn
işleme
5d1c9a7a8f

+ 2 - 1
front-vue/package.json

@@ -82,7 +82,8 @@
     "sass-loader": "^10.1.0",
     "script-ext-html-webpack-plugin": "2.1.5",
     "svg-sprite-loader": "5.1.1",
-    "vue-template-compiler": "2.6.12"
+    "vue-template-compiler": "2.6.12",
+    "vue-wxlogin": "^1.0.4"
   },
   "engines": {
     "node": ">=8.9",

+ 2 - 2
front-vue/src/api/login.js

@@ -5,11 +5,11 @@ const client_secret = '123456'
 const scope = 'server'
 
 // 登录方法
-export function login(username, password, code, uuid, type, shortMessageCode) {
+export function login(username, password, code, uuid, type, shortMessageCode, unionId) {
   return request({
     url: '/auth/zcLogin',
     method: 'post',
-    data: { username, password, code, uuid, type, shortMessageCode}
+    data: { username, password, code, uuid, type, shortMessageCode, unionId}
   })
 }
 

+ 9 - 1
front-vue/src/api/system/weChat.js

@@ -8,10 +8,18 @@ export function wxImg() {
   })
 }
 
+// 获取微信二维码参数
+export function getWxParam() {
+  return request({
+    url: '/system/api/wx/getWxParam',
+    method: 'get'
+  })
+}
+
 // 扫码登录
 export function wxLogin(query) {
   return request({
-    url: '/system_tu/api/wx/callback',
+    url: '/system/api/wx/callback',
     method: 'get',
     params: query
   })

+ 33 - 22
front-vue/src/views/login.vue

@@ -95,7 +95,8 @@
                                 <img class="zap-2dcode__img" src="../assets/images/code1_3.gif" alt="" @click="scanningLogin=false">
                             </div>
                             <div class="zap-scanning__title">手机扫码</div>
-                            <img class="zap-scanning__img" src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201804%2F28%2F20180428114906_ulvqd.jpg&refer=http%3A%2F%2Fb-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1634225094&t=7acfc568424bf9781f535cd543cc258f" alt="">
+                            <!-- <img class="zap-scanning__img" :src="wxSrc" alt=""> -->
+                            <wxlogin :appid="wx_appid" :scope="wx_scope" :redirect_uri="wx_redirect_uri"></wxlogin>
                             <div class="zap-scanning__bottom">
                                 <img class="zap-scanning__icon" src="../assets/images/icon_scanning.png" alt="">
                                 <div class="zap-scanning__text">打开<span class="zap-scanning__color">微信</span>扫码登录</div>
@@ -155,10 +156,14 @@
 </template>
 <script>
 import { getCodeImg, sendShortMessage, chooseCompanyLogin} from "@/api/login";
-import { wxImg } from "@/api/system/weChat";
+import { wxImg, getWxParam } from "@/api/system/weChat";
 import Cookies from "js-cookie";
 import { encrypt, decrypt } from "@/utils/jsencrypt";
+import wxlogin from 'vue-wxlogin'
 export default {
+  components: {
+    wxlogin : wxlogin
+  },
     name: "Login",
     data() {
         return {
@@ -197,7 +202,11 @@ export default {
             dialogVisible : false,
             companyList : [],
             chooseCompanyId : '',
-            codeDialogVisible: false
+            codeDialogVisible: false,
+            wx_appid : "",
+            wx_scope : "",
+            wx_redirect_uri : ""
+
         };
     },
     watch: {
@@ -211,6 +220,7 @@ export default {
     created() {
         this.getCode();
         this.getCookie();
+        this.getWeChatImg();
         // this.getlistDomain();
     },
     methods: {
@@ -331,9 +341,10 @@ export default {
           return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null
       },
       getWeChatImg(){
-          wxImg().then((res) => {
-              // console.log(res)
-              location.href = res
+          getWxParam().then((res) => {
+            this.wx_appid = res.data.appid;
+            this.wx_scope = res.data.scope;
+            this.wx_redirect_uri = res.data.redirect_uri;
           })
       },
       changeLoginType(e){
@@ -446,12 +457,12 @@ export default {
         height: 55px;
         width: 100%;
         background-image: linear-gradient(
-            #fdfdfd, 
-            #fdfdfd), 
+            #fdfdfd,
+            #fdfdfd),
         linear-gradient(
-            #e7f0ff, 
+            #e7f0ff,
             #e7f0ff);
-        background-blend-mode: normal, 
+        background-blend-mode: normal,
             normal;
         input {
             height: 55px;
@@ -505,10 +516,10 @@ export default {
         padding: 10px 48px 46px;
         box-sizing: border-box;
         background-image: linear-gradient(
-            #ffffff, 
-            #ffffff), 
+            #ffffff,
+            #ffffff),
         linear-gradient(
-            #f3f3f3, 
+            #f3f3f3,
             #f3f3f3);
         .el-tabs__nav-wrap{
             padding: 0 12px;
@@ -523,7 +534,7 @@ export default {
             height: 56px;
             line-height: 56px;
             font-size: 24px;
-            color: #333333;   
+            color: #333333;
             &:nth-of-type(3){
                 padding-left: 30px;
             }
@@ -580,12 +591,12 @@ export default {
         font-size: 18px;
         border-radius: 0;
         background-image: linear-gradient(
-            #0056eb, 
-            #0056eb), 
+            #0056eb,
+            #0056eb),
         linear-gradient(
-            #e7f0ff, 
+            #e7f0ff,
             #e7f0ff);
-        background-blend-mode: normal, 
+        background-blend-mode: normal,
             normal;
     }
     .zap-agreement{
@@ -621,12 +632,12 @@ export default {
         width: 410px;
         height: 550px;
         background-image: linear-gradient(
-            #ffffff, 
-            #ffffff), 
+            #ffffff,
+            #ffffff),
         linear-gradient(
-            #f3f3f3, 
+            #f3f3f3,
             #f3f3f3);
-        background-blend-mode: normal, 
+        background-blend-mode: normal,
             normal;
         box-sizing: border-box;
     }

+ 479 - 120
front-vue/src/views/register.vue

@@ -1,61 +1,129 @@
 <template>
-    <div class="backdrop" :style="{backgroundImage: 'url({'+(this.baseImg)+')'}">
+    <div class="backdrop zap-login">
         <el-container>
-            <el-header style="display:block;position:relative;margin:auto;">
-                <!-- logo -->
-                <!-- <img :src="this.baseLogo" alt="" class="rightulliimg" /> -->
-            </el-header>
+            <!-- logo -->
+            <img class="zap-logo" src="../assets/images/login_logo.png" alt="">
              <el-main>
                 <!-- 中间部分 -->
                 <div class="login">
-                  <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
-                    <el-form-item prop="username">
-                        <el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="手机号">
-                            <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
-                        </el-input>
-                    </el-form-item>
-                    <el-form-item prop="code">
-                        <el-input v-model="loginForm.code" auto-complete="off" placeholder="验证码" style="width: 53%;" @keyup.enter.native="handleLogin">
-                            <svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
-                        </el-input>
-                        <div class="login-code">
-                            <img :src="codeUrl" @click="getCode" class="login-code-img" />
-                        </div>
-                    </el-form-item>
-                    <el-form-item prop="cade">
-                        <el-input v-model="loginForm.shortMessageCode" type="text"  maxlength="" auto-complete="off" placeholder="短信验证码" id="" onkeydown="enterHandler(event)" style="  width: 120px; ">
-                            <svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
-                        </el-input>
-                     <el-button @click="sendMessage" :disabled="sendShortMessageBtn">{{codeBtnWord}}</el-button>
-                    </el-form-item>
-
-                    <el-button :loading="loading" size="medium" type="primary" @click.native.prevent="handleLogin" style="width: 190px;border-radius: 50px;margin-left:10%;margin-top:10%">
-                        <span v-if="!loading">注 册</span>
-                        <span v-else>注 册 中...</span>
-                    </el-button>
-                  </el-form>
+                    <div class="login-left">
+                        <img class="login-name" src="../assets/images/logo_name.png" alt="">
+                        <img class="login-illustration" src="../assets/images/login_img.png" alt="">
+                    </div>
+                    <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
+                        <template v-if="!scanningLogin">
+                            <div class="zap-2dcode">
+                                <!-- <img class="zap-2dcode__text" src="../assets/images/code1_1.png" alt=""> -->
+                                <!-- <img class="zap-2dcode__img" src="../assets/images/code1_2.gif" alt="" @click="scanningLogin=true"> -->
+                            </div>
+                            <el-tabs v-model="activeName" class="zap-tabs" @tab-click="changeLoginType">
+                                <el-tab-pane label="验证码登录" name="login_shortMessage">
+                                    <el-form-item prop="username">
+                                        <el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="手机号">
+                                            <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
+                                        </el-input>
+                                    </el-form-item>
+                                    <el-form-item prop="cade">
+                                        <el-input v-model="loginForm.shortMessageCode" type="text"  maxlength="" auto-complete="off" placeholder="请输入验证码" id="" onkeydown="enterHandler(event)">
+                                            <svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
+                                            <el-button class="zap-code-button" slot="suffix" @click="sendMessage" :disabled="sendShortMessageBtn">{{codeBtnWord}}</el-button>
+                                        </el-input>
+                                    </el-form-item>
+                                    <el-form-item style="width:100%;">
+                                        <el-button :loading="loading"  class="zap-button" size="medium" type="primary" @click.native.prevent="handleLogin">
+                                            <span v-if="!loading">登 录</span>
+                                            <span v-else>登 录 中...</span>
+                                        </el-button>
+                                    </el-form-item>
+                                    <el-form-item>
+                                        <div class="zap-agreement">
+                                            <span class="zap-agreement__text">登录视为同意并遵守</span>
+                                            <div class="zap-agreement__link">
+                                                <span>《招采云链服务平台会员注册协议》</span>
+                                                <span>《招采云链服务平台隐私政策》</span>
+                                            </div>
+                                        </div>
+                                    </el-form-item>
+                                </el-tab-pane>
+                            </el-tabs>
+                        </template>
+                    </el-form>
+                    <!--  底部  -->
                 </div>
-              </el-main>
+            </el-main>
+            <el-dialog
+              title="选择企业"
+              :visible.sync="dialogVisible"
+              width="30%">
+              <el-select v-model="chooseCompanyId" placeholder="请选择">
+                <el-option
+                  v-for="item in companyList"
+                  :key="item.scyId"
+                  :label="item.scyName"
+                  :value="item.scyId">
+                </el-option>
+              </el-select>
+              <span slot="footer" class="dialog-footer">
+                <el-button type="primary" @click="chooseLogin()">确 定</el-button>
+              </span>
+            </el-dialog>
         </el-container>
+        <el-footer></el-footer>
+
+        <!-- 密码登录验证码 -->
+        <el-dialog
+            title="验证码"
+            :close-on-click-modal="false"
+            :visible.sync="codeDialogVisible"
+            width="30%">
+            <div style="display:flex;">
+                <el-input v-model="loginForm.code" auto-complete="off" placeholder="验证码" style="width: 53%;" @keyup.enter.native="handleLogin">
+                    <svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
+                </el-input>
+                <div class="login-code">
+                    <img :src="codeUrl" @click="getCode" class="login-code-img" />
+                </div>
+            </div>
+            <span slot="footer" class="dialog-footer">
+                <el-button type="primary" @click="handleImgCodeSubmit">确 定</el-button>
+            </span>
+        </el-dialog>
     </div>
 </template>
 <script>
 import { getCodeImg, sendShortMessage, chooseCompanyLogin} from "@/api/login";
+import { wxImg } from "@/api/system/weChat";
+import Cookies from "js-cookie";
+import { encrypt, decrypt } from "@/utils/jsencrypt";
+import wxlogin from 'vue-wxlogin'
 export default {
-    name: "register",
+  components: {
+    wxlogin : wxlogin
+  },
+    name: "Login",
     data() {
         return {
+            //默认背景图
+            activeName: "login_shortMessage",
+            baseImg: require('../assets/images/login_img.png'),
+            BackgroundImg : require('../assets/images/login_img.png'),
+            scanningLogin: false, // 是否扫码登陆
+            logo: '',
+            // baseLogo: require('../assets/images/lgo.png'),
+            codeUrl: "",
+            cookiePassword: "",
             loginForm: {
                 shortMessageCode: '',
                 username: "",
+                password: "",
+                rememberMe: false,
                 code: "",
                 uuid: "",
-                unionId : ''
+                unionId : "",
+                type : "2"
             },
-            codeUrl : '',
-            loading : false,
-            sendShortMessageBtn : false,
-            codeBtnWord : '获取验证码',
+            codeBtnWord: '获取验证码', // 获取验证码按钮文字
+            waitTime:2, // 获取验证码按钮失效时间
             loginRules: {
                 username: [
                     {
@@ -63,48 +131,114 @@ export default {
                         trigger: "blur",
                         message: "用户名不能为空",
                     },
-                ],
-                code: [
-                    {
-                        required: true,
-                        trigger: "change",
-                        message: "验证码不能为空",
-                    },
                 ]
             },
-            // baseLogo: require('../assets/images/lgo.png'),
-            baseImg: require('../assets/images/login_img.png'),
+            loading: false,
+            redirect: undefined,
+            wxSrc: require("../assets/images/wx1.png"),
+            sendShortMessageBtn : false,
+            dialogVisible : false,
+            companyList : [],
+            chooseCompanyId : '',
+            codeDialogVisible: false
         };
     },
+    watch: {
+        $route: {
+            handler: function (route) {
+                this.redirect = route.query && route.query.redirect;
+            },
+            immediate: true,
+        },
+    },
     created() {
-      this.loginForm.unionId = this.getUrlKey("unionId");
-      this.getCode();
+        this.getCode();
+        this.getCookie();
+        this.getWeChatImg();
+        // this.getlistDomain();
     },
-    methods:{
+    methods: {
+      changeImg(){
+          this.wxSrc = require("../assets/images/wx.png")
+      },
+      returnImg(){
+          this.wxSrc = require("../assets/images/wx1.png")
+      },
       getCode() {
           getCodeImg().then((res) => {
               this.codeUrl = "data:image/gif;base64," + res.img;
               this.loginForm.uuid = res.uuid;
           });
       },
+      getCookie() {
+          const username = Cookies.get("username");
+          const password = Cookies.get("password");
+          const rememberMe = Cookies.get("rememberMe");
+          this.loginForm = {
+              username:
+                  username === undefined ? this.loginForm.username : username,
+              password:
+                  password === undefined
+                      ? this.loginForm.password
+                      : decrypt(password),
+              rememberMe:
+                  rememberMe === undefined ? false : Boolean(rememberMe),
+          };
+      },
+      handleImgCodeSubmit () {
+          if (this.activeName === 'login_password') {
+              this.handleLogin()
+          } else {
+              this.sendMessage()
+          }
+      },
       handleLogin() {
           this.$refs.loginForm.validate((valid) => {
               if (valid) {
                   this.loading = true;
-                  this.loginForm.type = "2";
-                  // 密码不能为空
+                  // 验证码不能为空
                   if (this.loginForm.shortMessageCode == null || this.loginForm.shortMessageCode == "") {
                     this.msgError("请输入短信验证码!");
                     this.loading = false;
                     return;
                   }
-
+                  this.loginForm.unionId = this.getUrlKey("unionId");
+                  if (this.loginForm.unionId == null || this.loginForm.unionId == "") {
+                    this.msgError("微信unionId数据异常!");
+                    this.loading = false;
+                    return;
+                  }
+                  this.loginForm.type = "2";
                   this.$store
                       .dispatch("Login", this.loginForm)
                       .then((data) => {
-                        console.log("跳转认证!")
-                        this.loading = false;
-                        this.$router.push({ path: "/certification" });
+                        console.log(data)
+                          if (data.code == "0") {
+                            console.log("未认证!")
+                            this.$router.push({ path: "/certification" });
+                          // 认证单个企业
+                          } else if (data.code == "1") {
+                            // 认证通过
+                            if (data.loginUser.sysUser.companyStatus == "00") {
+                                console.log(this.redirect,"AAAAA")
+                            //   if(this.redirect == '/home'){
+                            //       this.$router.push({ path: "/homePage"+this.redirect || "/" });
+                            //   }else{
+                            //       this.$router.push({ path: this.redirect || "/" });
+                            //   }
+                              this.$router.push({ path: this.redirect || "/" });
+                            // 认证未通过
+                            } else {
+                              console.log("未认证通过!")
+                              this.$router.push({ path: "/certification" });
+                            }
+                          // 多加企业
+                          } else {
+                            this.companyList = data.companyList;
+                            this.chooseCompanyId = this.companyList[0].scyId;
+                            this.dialogVisible = true;
+                          }
+                          this.loading = false;
                       })
                       .catch(() => {
                           this.loading = false;
@@ -113,9 +247,42 @@ export default {
               }
           });
       },
+      getUrlKey(name) {
+          return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null
+      },
+      getWeChatImg(){
+          wxImg().then((res) => {
+            this.wxSrc = res;
+          })
+      },
+      changeLoginType(e){
+
+          if (this.activeName === 'login_password') {
+              this.loginRules.code = [
+                    {
+                        required: true,
+                        trigger: "change",
+                        message: "验证码不能为空",
+                    },
+                ]
+          } else {
+              delete this.loginRules.code
+          }
+        this.getCode();
+      },
       sendMessage(){
             this.$refs.loginForm.validate((valid) => {
                 if (valid) {
+                  if (this.codeDialogVisible) {
+                    if (!this.loginForm.code) {
+                        this.loading = false
+                        return this.msgError("请输入验证码!");
+                    } else {
+                        this.codeDialogVisible = false
+                    }
+                  } else {
+                      return this.codeDialogVisible = true
+                  }
                   // 调用获取短信验证码接口
                   sendShortMessage(this.loginForm.username, this.loginForm.code, this.loginForm.uuid).then(response => {
                     this.sendShortMessageBtn = true;
@@ -145,86 +312,278 @@ export default {
                 }
             })
       },
-      getUrlKey(name) {
-          return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null
-      },
+      chooseLogin(){
+        chooseCompanyLogin(this.chooseCompanyId).then(response => {
+          if (response.code == "200") {
+            // 认证通过
+            if (response.data.sysUser.companyStatus == "00") {
+                if(this.redirect == '/home'){
+                    this.$router.push({ path: "/homePage"+this.redirect || "/" });
+                }else{
+                    this.$router.push({ path: this.redirect || "/" });
+                }
+            //   this.$router.push({ path: this.redirect || "/" });
+            // 认证未通过
+            } else {
+              console.log("未认证通过!")
+              this.$router.push({ path: "/certification" });
+            }
+          }
+        }).catch((response)=>{
+
+        });
+      }
     }
 };
 </script>
 <style rel="stylesheet/scss" lang="scss">
-.login {
-    display: flex;
-    justify-content: center;
-    align-items: center;
-    height: 100%;
-    background-size: cover;
+// 大背景图
+.backdrop {
+    padding-top: 100px;
+    background-color: #ebf3ff;
+    width: 100%;
+    min-height: 100%;
+    text-align: center;
 }
-// 中间背景图
-.login-form {
-    border-radius: 6px;
-    width: 935px;
-    height: 434px;
-    padding: 73px 138px 103px 597px;
-    // background-image: url("../assets/images/login_bg2.png");
-    background-size: 935px 434px;
-    background-repeat: no-repeat;
-    margin-top: 40px;
+.zap-login{
+    .login {
+        display: flex;
+        justify-content: center;
+        height: 100%;
+        background-size: cover;
+    }
+    // 中间背景图
+    .login-form {
+        margin-left: 75px;
+        border-radius: 6px;
+        background-size: 935px 434px;
+        background-repeat: no-repeat;
+        margin-top: 40px;
+    }
     // 输入框大小
     .el-input {
-        height: 40px;
+        height: 55px;
         width: 100%;
+        background-image: linear-gradient(
+            #fdfdfd,
+            #fdfdfd),
+        linear-gradient(
+            #e7f0ff,
+            #e7f0ff);
+        background-blend-mode: normal,
+            normal;
         input {
-            height: 40px;
+            height: 55px;
             width: 100%;
+            font-size: 18px;
         }
     }
     .input-icon {
-        height: 39px;
-        width: 14px;
-        margin-left: 2px;
+        height: 53px;
+        width: 22px;
+        margin-left: 14px;
+        margin-right: 14px
     }
-}
-.login-tip {
-    font-size: 13px;
-    text-align: center;
-}
-// 验证码
-.login-code {
-    width: 33%;
-    height: 38px;
-    float: right;
-        margin-right: 6%;
-
-    img {
-        cursor: pointer;
-        vertical-align: middle;
+    .el-input--prefix .el-input__inner{
+        padding-left: 50px;
+    }
+    .login-tip {
+        font-size: 13px;
+        text-align: center;
+    }
+    .el-form-item--medium .el-form-item__content{
+        display: flex;
+        align-items: center;
+    }
+    // 验证码
+    .login-code {
+        height: 55px;
+        img {
+            cursor: pointer;
+            vertical-align: middle;
+        }
+    }
+    .login-code-img {
+        flex: 1;
+        height: 55px;
+        margin-left: 8px;
     }
-}
-.login-code-img {
-    height: 38px;
-}
-// 大背景图
-.backdrop {
 
-    background-repeat: no-repeat;
-    background-size: 1536px 752px;
-    background-size: cover;
-    width: 100%;
-    height: 100%;
-    display: flex;
-    justify-content: center;
-    align-items: center;
-    background-position: right top;
-    background-attachment: fixed;
-}
-.rightulliimg{
-    width: 860px;
+    .rightulliimg{
+        width: 860px;
 
-}
-.divider_left{
-    margin-left: -40px;
-}.el-button.disabled-style {
-    background-color: #EEEEEE;
-    color: #CCCCCC;
+    }
+    .divider_left{
+        margin-left: -40px;
+    }
+
+    // 内部供应链
+    .zap-tabs{
+        width: 410px;
+        min-height: 480px;
+        padding: 10px 48px 46px;
+        box-sizing: border-box;
+        background-image: linear-gradient(
+            #ffffff,
+            #ffffff),
+        linear-gradient(
+            #f3f3f3,
+            #f3f3f3);
+        .el-tabs__nav-wrap{
+            padding: 0 12px;
+        }
+        .el-tabs__nav-wrap::after{
+            height: 0;
+        }
+        .el-tabs__nav{
+            width: 100%;
+        }
+        .el-tabs__item{
+            height: 56px;
+            line-height: 56px;
+            font-size: 24px;
+            color: #333333;
+            &:nth-of-type(3){
+                padding-left: 30px;
+            }
+        }
+        .el-tabs__item.is-active{
+            color: #0056eb;
+        }
+        .el-tabs__active-bar{
+            background-color: #0056eb;
+        }
+    }
+    .login-left{
+        width: 704px;
+        margin-top: 40px;
+        text-align: left;
+        .login-name{
+            width: 515px;
+        }
+        .login-illustration{
+            width: 704px;
+        }
+    }
+    .zap-logo{
+        position: absolute;
+        top: 25px;
+        left: 45px;
+        width: 210px;
+        height: 60px;
+    }
+    .zap-2dcode{
+        display: flex;
+        justify-content: flex-end;
+        align-items: center;
+        width: 410px;;
+        padding-top: 10px;
+        padding-right: 10px;
+        font-size: 0;
+        background-color: #ffffff;
+        box-sizing: border-box;
+    }
+    .zap-2dcode__text{
+        width: 113px;
+        height: 28px;
+    }
+    .zap-2dcode__img{
+        width: 60px;
+        height: 61px;
+        cursor: pointer;
+    }
+    .zap-button{
+        margin-top: 25px;
+        width: 100%;
+        height: 55px;
+        font-size: 18px;
+        border-radius: 0;
+        background-image: linear-gradient(
+            #0056eb,
+            #0056eb),
+        linear-gradient(
+            #e7f0ff,
+            #e7f0ff);
+        background-blend-mode: normal,
+            normal;
+    }
+    .zap-agreement{
+        display: flex;
+        align-items: top;
+        margin-top: 8px;
+        line-height: 18px;
+        font-size: 12px;
+    }
+    .zap-agreement__text{
+        color: #666666;
+    }
+    .zap-agreement__link{
+        display: flex;
+        flex-direction: column;
+        align-items: flex-start;
+        color: #389cf4;
+        cursor: pointer;
+    }
+    .zap-code-button{
+        padding: 0 16px;
+        line-height: 55px;
+        font-size: 18px;
+        color: #23b24b;
+        border: none;
+        background-color: transparent;
+    }
+    .el-button.is-disabled, .el-button.is-disabled:hover, .el-button.is-disabled:focus{
+        background-color: transparent;
+    }
+    // 扫码登录
+    .zap-scanning{
+        width: 410px;
+        height: 550px;
+        background-image: linear-gradient(
+            #ffffff,
+            #ffffff),
+        linear-gradient(
+            #f3f3f3,
+            #f3f3f3);
+        background-blend-mode: normal,
+            normal;
+        box-sizing: border-box;
+    }
+    .zap-scanning__title{
+        padding: 0 60px;
+        font-size: 24px;
+        color: #333333;
+    }
+    .zap-scanning__img{
+        display: block;
+        width: 220px;
+        height: 220px;
+        margin: 40px auto 0;
+        object-fit: cover;
+    }
+    .zap-scanning__bottom{
+        display: flex;
+        align-items: center;
+        justify-content: center;
+        margin-top: 18px;
+        font-size: 14px;
+    }
+    .zap-scanning__icon{
+        width: 22px;
+        height: 22px;
+        margin-right: 10px;
+    }
+    .zap-scanning__text{
+        color: #333333;
+    }
+    .zap-scanning__color{
+        color: #23b24b;
+    }
+    .el-tabs__header{
+        margin-bottom: 38px;
+    }
+    .el-dialog:not(.is-fullscreen){
+        margin-top: 25vh !important;
+    }
 }
 </style>

+ 1 - 1
front-vue/src/views/wxLogin.vue

@@ -36,7 +36,7 @@ export default {
         var data = response.data;
         var unionId = data.unionId;
         if (data.code == "0") {
-          alert("未认证!")
+          this.$router.push({ path: "/certification" });
         // 认证单个企业
         } else if (data.code == "1") {
           // 认证通过