Explorar o código

删除注释代码

lifanagju_citu hai 10 meses
pai
achega
68b80b1842
Modificáronse 1 ficheiros con 0 adicións e 30 borrados
  1. 0 30
      src/views/recruit/personal/shareJob/components/login.vue

+ 0 - 30
src/views/recruit/personal/shareJob/components/login.vue

@@ -8,7 +8,6 @@
     title="快速登录"
     @close="openDialog = false"
   >
-    <!-- <quickLogin :jobId="jobId" @loginSuccess="loginSuccess"></quickLogin> -->
     <div class="my-5">
       <phoneFrom ref="phoneRef" @handleEnter="handleLogin"></phoneFrom>
       <v-btn :loading="loginLoading" color="primary" class="white--text mt-5" min-width="350" @click="handleLogin">
@@ -21,8 +20,6 @@
 <script setup>
 import phoneFrom from '@/components/VerificationCode'
 import { useUserStore } from '@/store/user'; const userStore = useUserStore()
-// import { useI18n } from '@/hooks/web/useI18n'; const { t } = useI18n()
-// import Snackbar from '@/plugins/snackbar'
 import { nextTick, ref } from 'vue'
 defineOptions({name: 'shareJob-login'})
 const emit = defineEmits(['loginSuccess'])
@@ -36,8 +33,6 @@ nextTick(() => {
 const phoneRef = ref()
 const loginLoading = ref(false)
 
-// const timer = ref(null)
-// const baseInfo = ref(null)
 const handleLogin = async () => {
   localStorage.removeItem('currentRole')
   const { valid } = await phoneRef.value.phoneForm.validate()
@@ -47,36 +42,11 @@ const handleLogin = async () => {
     const params = { ...phoneRef.value.loginData } // 只能验证码登录
     await userStore.handleSmsLogin(params)
     emit('loginSuccess')
-    // // 查询用户基本信息
-    // timer.value = setInterval(() => { getUserInfoVerify() }, 1000)
-    // // 十秒后停止获取清除timer
-    // setTimeout(() => { if (!baseInfo.value) getUserInfoFail() }, 10000);
   } catch (error) {
     console.error('error', error)
   }
 }
 
-// // 查询用户基本信息失败 
-// const getUserInfoVerify = () => {
-//   if (baseInfo.value) {
-//     clearInterval(timer.value)
-//     timer.value = null
-//     loginLoading.value = false
-//     const keyArr = ['name', 'phone', 'jobStatus', 'expType', 'eduType'] // 必填人才信息
-//     const baseInfoReady = keyArr.every(e => baseInfo.value[e] && baseInfo.value[e] !== 0) // 校验必填人才信息
-//     const obj = { baseInfoReady, baseInfo: baseInfo.value, keyArr }
-//     emit('loginSuccess', obj)
-//   }
-//   baseInfo.value = JSON.parse(localStorage.getItem('baseInfo'))
-// }
-
-// // 查询用户基本信息失败 
-// const getUserInfoFail = () => {
-//   clearInterval(timer.value)
-//   timer.value = null
-//   loginLoading.value = false
-//   Snackbar.success(t('login.getUserInfoFailed')+','+t('login.loginAgain'))
-// }
 </script>
 <style lang="scss" scoped>
 </style>