连接了我的项目,我的抽成
This commit is contained in:
@ -14,6 +14,38 @@ const formatNumber = n => {
|
||||
return n[1] ? n : `0${n}`
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
formatTime
|
||||
const formatPassword = (pwd , currentPwd) => {
|
||||
if (pwd === '') {
|
||||
wx.showToast({
|
||||
title: '密码不能为空',
|
||||
icon: 'error'
|
||||
})
|
||||
return;
|
||||
}
|
||||
if (pwd.length < 6) {
|
||||
wx.showToast({
|
||||
title: '密码不能小于6位',
|
||||
icon: 'error'
|
||||
})
|
||||
return;
|
||||
}
|
||||
if (currentPwd === '') {
|
||||
wx.showToast({
|
||||
title: '请输入二次确认密码',
|
||||
icon: 'error'
|
||||
})
|
||||
return;
|
||||
}
|
||||
if (currentPwd !== pwd) {
|
||||
wx.showToast({
|
||||
title: '两次密码不一致',
|
||||
icon: 'error'
|
||||
})
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
formatTime,
|
||||
formatPassword
|
||||
}
|
||||
|
Reference in New Issue
Block a user