Browse Source

HL-4766 在WMS的登录页面和PDA的登录页面取消验证码功能

ljc_0803
wangyufei 3 months ago
parent
commit
110767de2a
  1. 2
      src/api/request2.js
  2. 13
      src/pages/login/index.vue

2
src/api/request2.js

@ -19,7 +19,7 @@ export function getCaptchaImage(params) {
*/
export function login(username, password, code, uuid, tenantName) {
return request({
url: baseApi + '/system/auth/login',
url: baseApi + '/system/auth/loginNoCode',
headers: {
isToken: false
},

13
src/pages/login/index.vue

@ -65,13 +65,13 @@
</view>
</view>
<view style="display: flex;flex-direction: row;">
<view style="display: flex;flex-direction: row;" v-if="needCode">
<!-- <view class="uni-input">
<input class="" placeholder="请输入验证码"
v-model="code"
style="background-color: lightgray;padding-top: 40rpx;padding-bottom: 40rpx;margin-right: 20rpx;" />
</view> -->
<view class="uni-input-wrapper">
<view class="uni-input-wrapper" >
<input class="" style="height: 80rpx; background-color: #F7F9FF;margin-right: 20rpx;"
placeholder="请输入验证码" type="number" v-model="code" />
</view>
@ -119,7 +119,8 @@
imageSrc: "",
code: "",
uuid: "",
version: ""
version: "",
needCode:false
}
},
// computed: mapState(['forcedLogin', 'hasLogin']),
@ -185,13 +186,15 @@
icon: 'none',
mask: true
})
} else if (this.code === '') {
}
else if (this.needCode&&this.code === '') {
uni.showToast({
title: '验证码不能为空',
icon: 'none',
mask: true
})
} else {
}
else {
// console.log("", this.username, "", this.password, this.tapstyle, this.smloginmsg)
let logininfo = {
username: "",

Loading…
Cancel
Save