Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
sendClick() {
const _that = this
const prop = this.props
this.cleartip()
const mobile = this.PhoneInput.value
if(!co.verifyTel(mobile)) {
_that.setState({
tip: '请输入正确手机号'
})
return false
}
prop.handleSend(mobile)
let t = prop.time
_that.setState({
isTiming: true
})
_that.timer = setInterval(function(){
t = t-1
_that.setState({
time: t
confirmClick() {
const _that = this
const prop = this.props
this.cleartip()
const mobile = this.PhoneInput.value
if(!co.verifyTel(mobile)) {
_that.setState({
tip: '请输入正确手机号'
})
return false
}
const valid = this.ValidInput.value
prop.handleConfirm(mobile, valid)
}