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