Compare commits
2 Commits
8d16e66455
...
09e3861b06
Author | SHA1 | Date | |
---|---|---|---|
|
09e3861b06 | ||
|
28b213df68 |
@ -110,6 +110,20 @@ loadingRef.value.loading1=true
|
|||||||
isShow.value=true
|
isShow.value=true
|
||||||
loadingRef.value.loading1=false
|
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 = () => {
|
const goBack = () => {
|
||||||
code.value = ''
|
code.value = ''
|
||||||
@ -163,7 +177,13 @@ onUnmounted(() => {
|
|||||||
window.removeEventListener('resize', () => {})
|
window.removeEventListener('resize', () => {})
|
||||||
})
|
})
|
||||||
const isShow=ref(false)
|
const isShow=ref(false)
|
||||||
|
const onSuccess=()=>{
|
||||||
|
// userCaptchaValidate()
|
||||||
|
isShow.value=false
|
||||||
|
}
|
||||||
|
const onClose=()=>{
|
||||||
|
isShow.value=false
|
||||||
|
}
|
||||||
const onLeave =async (moveX, callback) => {
|
const onLeave =async (moveX, callback) => {
|
||||||
loadingRef.value.loading1=true
|
loadingRef.value.loading1=true
|
||||||
const res=await senCode({
|
const res=await senCode({
|
||||||
@ -178,7 +198,7 @@ const onLeave =async (moveX, callback) => {
|
|||||||
if (res.status===408){
|
if (res.status===408){
|
||||||
callback(false)
|
callback(false)
|
||||||
getCode()
|
getCode()
|
||||||
}else if([407,0].includes(res.status)){
|
}else{
|
||||||
callback(true)
|
callback(true)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
pane.value = 1
|
pane.value = 1
|
||||||
@ -187,11 +207,6 @@ const onLeave =async (moveX, callback) => {
|
|||||||
isShow.value=false
|
isShow.value=false
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
||||||
}else{
|
|
||||||
setTimeout(() => {
|
|
||||||
|
|
||||||
isShow.value=false
|
|
||||||
}, 1000)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -273,7 +288,7 @@ const onLeave =async (moveX, callback) => {
|
|||||||
</div>
|
</div>
|
||||||
<van-popup v-model:show="isShow" round teleport="body">
|
<van-popup v-model:show="isShow" round teleport="body">
|
||||||
<PuzzleComponent
|
<PuzzleComponent
|
||||||
v-if="isShow"
|
v-if="isShow"
|
||||||
:options="captcha"
|
:options="captcha"
|
||||||
@leave="onLeave"
|
@leave="onLeave"
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user