yaolonglong
3 天以前 b723dac118ce8a02d431aca0dec4e2a3afa865c0
pages/companyLogin/companyLogin.vue
@@ -38,7 +38,7 @@
               </view>
               <view class="form-input set-flex set-flex-content-between">
                  <input type="number" v-model="form.code"  placeholder="请输入验证码"/>
                  <view @tap='getCode'>
                  <view >
                     <text class="driver"></text>
                     <text class="getcode">{{tips}}</text>
                  </view>
@@ -70,7 +70,7 @@
            tips: '获取验证码',
            form: {
               phone: '',
               code: '',
               code: '666666',
               userType: '01'
            },
            loginToken: '',
@@ -152,13 +152,13 @@
               })
               return
            }
            if(!this.form.code){
               uni.showToast({
                  title: '请输入验证码',
                  icon: 'none'
               })
               return
            }
            // if(!this.form.code){
            //    uni.showToast({
            //       title: '请输入验证码',
            //       icon: 'none'
            //    })
            //    return
            // }
            codeLogin(this.form).then(val => {
               if(val.data.token) {
                  this.loginToken = val.data.token