王恒
2025-08-06 c62f4961f9d86460a5d483d7b31c05f98b113290
pages/companyLogin/companyLogin.vue
@@ -59,7 +59,12 @@
<script>
   // 00营商办,01执法,02企业 区分不同的登陆页面
   import { getCode, codeLogin, getInfo, getCompanyList } from '@/api/auth.js'
  import {
    getCode,
    codeLogin,
    getInfo,
    getCompanyList
  } from '@/api/auth.js'
   import selectVue from '@/components/select.vue'
   export default {
      components: {
@@ -70,7 +75,7 @@
            tips: '获取验证码',
            form: {
               phone: '',
               code: '666666',
          code: '',
               userType: '01'
            },
            loginToken: '',
@@ -113,7 +118,9 @@
               uni.showLoading({
                  title: '正在获取验证码'
               })
               getCode({phone: this.form.phone }).then(val => {
          getCode({
            phone: this.form.phone
          }).then(val => {
                     if(val.data.code == 200) {
                        this.startCountdown()
                        uni.hideLoading();
@@ -207,7 +214,11 @@
            })
         },
         getCompanyList(companyPhone) {
            getCompanyList({companyPhone, companyStatus: 0, checkStatus: 2}).then(val => {
        getCompanyList({
          companyPhone,
          companyStatus: 0,
          checkStatus: 2
        }).then(val => {
               if(val.data.rows.length > 1){
                  this.$refs.selectVue.open(val.data.rows)
               } else {
@@ -235,23 +246,27 @@
         height: 345rpx;
         text-align: center;
         background-color: #111;
         &>image{
            width: 100%;
            height: 345rpx;
         }
      }
      .content-box{
         border-radius: 40rpx 40rpx 0 0;
         padding: 40rpx 32rpx;
         position: relative;
         top: 80rpx;
         background-color: white;
         .form {
            .form-item{
               .form-label{
                  font-size: 34rpx;
                  margin: 0 0 24rpx 16rpx;
               }
               .form-input{
                  background-color: #F7F7F7;
                  padding: 20rpx;
@@ -259,15 +274,18 @@
               }
            }
         }
         .margin-bottom{
            margin-bottom: 36rpx;
         }
         .getcode{
            color: #1171E0;
            font-size: 34rpx;
            font-weight: 500;
            width: 20%;
         }
         .driver{
            display: inline-block;
            vertical-align: middle;
@@ -277,6 +295,7 @@
            background-color: #C3C6CD;
         }
      }
      .company-register{
         position: fixed;
         bottom: 32rpx;
@@ -290,6 +309,7 @@
         background: #F0F8FF;
      }
   }
   ::v-deep .u-radio {
      margin-bottom: 20rpx;
   }