diff --git a/app/pages/login/index.vue b/app/pages/login/index.vue index 9519ec5..e7ac625 100644 --- a/app/pages/login/index.vue +++ b/app/pages/login/index.vue @@ -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