连接了我的项目,我的抽成

This commit is contained in:
2025-05-29 21:31:35 +08:00
parent 48e92710d6
commit bafd46bf63
12 changed files with 208 additions and 37 deletions

View File

@ -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
}