Commit a62b3bb7 by luyt

Merge branch 'develop' of http://192.168.3.233:8090/saas_plus/business-assistant into develop

2 parents 1fa2c11e 78d55a50
...@@ -53,10 +53,12 @@ ...@@ -53,10 +53,12 @@
font-size: 24rpx; font-size: 24rpx;
padding: 0; padding: 0;
text-align: right; text-align: right;
&[disabled]:not([type]){ transition: all .25s;
&[disabled]:not([type]) {
color: #CCCED1; color: #CCCED1;
} }
} }
.error { .error {
position: absolute; position: absolute;
font-size: 24rpx; font-size: 24rpx;
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
transition: all .25s;
.icon { .icon {
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
......
...@@ -75,14 +75,17 @@ Page({ ...@@ -75,14 +75,17 @@ Page({
}) })
}, },
checkLoginBtn(disabled = false) { checkLoginBtn(disabled = false) {
const { loginType } = this.data, const {
{ loginType
data: { formData }, } = this.data, {
data: {
formData
},
loginToken loginToken
} = this.selectComponent('#box') } = this.selectComponent('#box')
if (loginType == 0) { if (loginType == 0) {
disabled = loginToken disabled = loginToken
} else disabled = loginType == 1 ? formData.phone && this.validate.methods.tel(formData.phone) && formData.code : formData.account && formData.password } else disabled = loginType == 1 ? formData.phone && this.validate.methods.tel(formData.phone) && (formData.code && formData.code.length == 4) : formData.account && formData.password
this.setData({ this.setData({
disabled: !disabled disabled: !disabled
}) })
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
color: #FFFFFF; color: #FFFFFF;
line-height: 88rpx; line-height: 88rpx;
padding: 0; padding: 0;
transition: all .1s;
&[disabled]:not([type]){ &[disabled]:not([type]){
background: #CCCED1 !important; background: #CCCED1 !important;
color: #fff !important; color: #fff !important;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!