Commit a62b3bb7 by luyt

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

2 parents 1fa2c11e 78d55a50
......@@ -33,7 +33,7 @@
padding: 24rpx 0;
position: relative;
input {
flex: 1;
......@@ -53,10 +53,12 @@
font-size: 24rpx;
padding: 0;
text-align: right;
&[disabled]:not([type]){
transition: all .25s;
&[disabled]:not([type]) {
color: #CCCED1;
}
}
.error {
position: absolute;
font-size: 24rpx;
......@@ -67,4 +69,4 @@
}
}
}
}
}
\ No newline at end of file
......@@ -8,6 +8,7 @@
display: flex;
align-items: center;
justify-content: center;
transition: all .25s;
.icon {
width: 32rpx;
height: 32rpx;
......
......@@ -75,16 +75,19 @@ Page({
})
},
checkLoginBtn(disabled = false) {
const { loginType } = this.data,
{
data: { formData },
loginToken
} = this.selectComponent('#box')
const {
loginType
} = this.data, {
data: {
formData
},
loginToken
} = this.selectComponent('#box')
if (loginType == 0) {
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({
disabled: !disabled
})
}
})
})
\ No newline at end of file
......@@ -37,6 +37,7 @@
color: #FFFFFF;
line-height: 88rpx;
padding: 0;
transition: all .1s;
&[disabled]:not([type]){
background: #CCCED1 !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!