Compare commits
No commits in common. "09e3861b06594699f813c72c41ab8edc02a831b7" and "8d16e664557aa8156b21e30f1beff1ea654ea227" have entirely different histories.
09e3861b06
...
8d16e66455
@ -110,20 +110,6 @@ loadingRef.value.loading1=true
|
||||
isShow.value=true
|
||||
loadingRef.value.loading1=false
|
||||
}
|
||||
// loadingRef.value.loading1=true
|
||||
// const res=await senCode({
|
||||
// telNum:phoneNum.value,
|
||||
// zone:selectedZone.value
|
||||
// })
|
||||
// loadingRef.value.loading1=false
|
||||
// if (res.status===0){
|
||||
|
||||
|
||||
// }
|
||||
// pane.value = 1
|
||||
// vanSwipeRef.value?.swipeTo(pane.value)
|
||||
|
||||
// startCountdown();
|
||||
}
|
||||
const goBack = () => {
|
||||
code.value = ''
|
||||
@ -177,13 +163,7 @@ onUnmounted(() => {
|
||||
window.removeEventListener('resize', () => {})
|
||||
})
|
||||
const isShow=ref(false)
|
||||
const onSuccess=()=>{
|
||||
// userCaptchaValidate()
|
||||
isShow.value=false
|
||||
}
|
||||
const onClose=()=>{
|
||||
isShow.value=false
|
||||
}
|
||||
|
||||
const onLeave =async (moveX, callback) => {
|
||||
loadingRef.value.loading1=true
|
||||
const res=await senCode({
|
||||
@ -198,7 +178,7 @@ const onLeave =async (moveX, callback) => {
|
||||
if (res.status===408){
|
||||
callback(false)
|
||||
getCode()
|
||||
}else{
|
||||
}else if([407,0].includes(res.status)){
|
||||
callback(true)
|
||||
setTimeout(() => {
|
||||
pane.value = 1
|
||||
@ -207,6 +187,11 @@ const onLeave =async (moveX, callback) => {
|
||||
isShow.value=false
|
||||
}, 1000)
|
||||
|
||||
}else{
|
||||
setTimeout(() => {
|
||||
|
||||
isShow.value=false
|
||||
}, 1000)
|
||||
}
|
||||
|
||||
|
||||
@ -288,7 +273,7 @@ const onLeave =async (moveX, callback) => {
|
||||
</div>
|
||||
<van-popup v-model:show="isShow" round teleport="body">
|
||||
<PuzzleComponent
|
||||
v-if="isShow"
|
||||
v-if="isShow"
|
||||
:options="captcha"
|
||||
@leave="onLeave"
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user