1.0.18 • Published 2 years ago

cmcm-reset-pwd v1.0.18

Weekly downloads
-
License
none
Repository
-
Last release
2 years ago

reset-password 组件

import {resetPassword,initSetPassword} from '@cmux/reset-pwd'

####resetPassword

resetPassword(()=>Promise sendCode,(pwd)=>Promise getPassword)

sendCode 为一个方法,第一个参数是用户输入的手机号,将在用户点击时调用,sendCode应返回一个promse,在promise.then时开始倒计时

getPassword同样是一个方法,当用户点击确定时调用,第一个参数是用户输入的手机号,第二个参数是用户输入的密码,第三个参数是用户输入的 code,同样需要返回promise,promise.then 时关闭窗口


####initSetPassword

initSetPassword((pwd)=>Promise getPassword)

getPassword是一个方法,当用户点击确定时调用,第一个参数是用户输入的密码,同样需要返回promisepromise.then时关闭窗口

1.0.18

2 years ago