wanshenmean
2025-04-10 54a7df532e4fd82a1462edd4475403ed9b2be0cc
´úÂë¹ÜÀí/NEWCode/WIDESEAWCS_PDA/pages/login/login.vue
@@ -1,8 +1,12 @@
<template>
   <view class="login">
      <view class="tools">
         <uni-icons  size="48rpx" color="#292C39" @click="doScan"></uni-icons>
         <uni-icons type="gear-filled" size="48rpx" color="#292C39" @click="goSetAddress"></uni-icons>
      </view>
      <view class="login-main">
         <text class="login-main-title">欢迎登录</text>
         <view class="login-main-subtitle">耀能新能源PDA程序</view>
         <view class="login-main-subtitle">赣锋新能源PDA程序</view>
         <view class="login-main-body">
            <!-- <login-input key="username" v-model="user" clearable placeholder="用户名"
               :maxlength="20"></login-input> -->
@@ -55,6 +59,10 @@
         this.configSysBaseList()
      },
      methods: {
         //跳转到SetAddress页面
         goSetAddress() {
            this.$u.route('/pages/SetAddress/SetAddress');
         },
         configSysBaseList() {
            // this.$u.get('/api/User/getVierificationCode', null).then(res => {
            //    if (res.code == 200) {
@@ -104,12 +112,12 @@
               //    UserName: this.user,
               //    VerificationCode: this.SYS_DEFAULT_CAPTCHA_OPEN ? this.code : null
               // }
               this.$u.post('/api/User/login',
               {UUID: this.validCodeReqNo,
               this.$u.post('/api/User/login', {
                  UUID: this.validCodeReqNo,
               passWord: this.pass,
               userName: this.user,
               verificationCode: this.code}
               ).then(res => {
                  verificationCode: this.code
               }).then(res => {
                  console.log(res)
                  this.$t.message.toast("登录成功")
                  this.$t.message.closeLoading()
@@ -136,6 +144,14 @@
</script>
<style lang="scss" scoped>
   .tools {
      display: flex;
      justify-content: space-between;
      margin-bottom: 32rpx;
      box-sizing: border-box;
      padding: 0 12rpx;
   }
   .login {
      // font-family: PingFangSC-Regular, PingFang SC;
      // background-color: $color-white;