Browse Source

切换到个人登录

lifanagju_citu 11 tháng trước cách đây
mục cha
commit
f96b53c98c

+ 1 - 2
components.d.ts

@@ -21,7 +21,7 @@ declare module 'vue' {
     CtPagination: typeof import('./src/components/CtPagination/index.vue')['default']
     CtSearch: typeof import('./src/components/CtSearch/index.vue')['default']
     CtTextField: typeof import('./src/components/CtVuetify/CtTextField/index.vue')['default']
-    DatePicker: typeof import('./src/components/FormUI/datePicker/index.vue')['default']
+    DatePicker: typeof import('./src/components/DatePicker/index.vue')['default']
     Details: typeof import('./src/components/Enterprise/details.vue')['default']
     Empty: typeof import('./src/components/Empty/index.vue')['default']
     HeadSearch: typeof import('./src/components/headSearch/index.vue')['default']
@@ -40,7 +40,6 @@ declare module 'vue' {
     SimilarPositions: typeof import('./src/components/Position/similarPositions.vue')['default']
     TextArea: typeof import('./src/components/FormUI/textArea/index.vue')['default']
     TextInput: typeof import('./src/components/FormUI/TextInput/index.vue')['default']
-    Upload: typeof import('./src/components/Upload/index.vue')['default']
     VerificationCode: typeof import('./src/components/VerificationCode/index.vue')['default']
   }
 }

+ 0 - 40
src/api/personal/other.js

@@ -1,40 +0,0 @@
-import request from '@/config/axios'
-
-// 获取热门企业
-export const getHotEnterprise = async (params) => {
-  return await request.get({
-    url: '/app-api/menduner/system/job/advertised/get/hot/enterprise',
-    params
-  })
-}
-
-// 企业详情
-export const getEnterpriseDetails = async (params) => {
-  return await request.get({
-    url: '/app-api/menduner/system/enterprise/detail',
-    params
-  })
-}
-
-// 效验求职者是否关注该企业
-export const getEnterpriseSubscribeCheck = async (params) => {
-  return await request.get({
-    url: '/app-api/menduner/system/person/enterprise/subscribe/check',
-    params
-  })
-}
-
-// 求职者关注企业
-export const getEnterpriseSubscribe = async (data) => {
-  return await request.post({
-    url: '/app-api/menduner/system/person/enterprise/subscribe',
-    data
-  })
-}
-
-// 求职者取消关注企业
-export const getEnterpriseUnsubscribe = async (enterpriseId) => {
-  return await request.delete({
-    url: `/app-api/menduner/system/person/enterprise/unsubscribe?enterpriseId=` + enterpriseId
-  })
-}

+ 0 - 17
src/api/personal/search.js

@@ -1,17 +0,0 @@
-import request from '@/config/axios'
-
-// 根据条件搜索招聘职位
-export const getJobAdvertisedSearch = async (params) => {
-  return await request.get({
-    url: '/app-api/menduner/system/job/advertised/search',
-    params
-  })
-}
-
-// 企业检索
-export const getEnterpriseSearch = async (params) => {
-  return await request.get({
-    url: '/app-api/menduner/system/enterprise/search',
-    params
-  })
-}

+ 2 - 2
src/api/personal/user.js

@@ -11,7 +11,7 @@ export const getUserInfo = async (params) => {
 // 获取当前用户绑定的企业列表
 export const getUserBindEnterpriseList = async (params) => {
   return await request.get({
-    url: '/app-admin-api/menduner/system/enterprise-user-bind/get/user',
+    url: '/app-admin-api/menduner/system/enterprise-user-bind/get/enterprise/list',
     params
   })
 }
@@ -19,7 +19,7 @@ export const getUserBindEnterpriseList = async (params) => {
 // 企业注册申请
 export const enterpriseRegisterApply = async (data) => {
   return await request.post({
-    url: '/app-api/menduner/system/enterprise-register/apply',
+    url: '/app-admin-api/menduner/system/enterprise-register/apply',
     data
   })
 }

+ 2 - 0
src/locales/en.js

@@ -11,6 +11,7 @@ export default {
     saveMsg: 'Save successful',
     toHome: 'Go back to the homepage',
     submittedSuccessfully: 'Submitted successful',
+    switchSuccessful: 'Switch successful',
     addMsg: 'New successfully added',
     delMsg: 'Delete successful',
     uploadPictures: 'upload pictures',
@@ -68,6 +69,7 @@ export default {
     enterpriseLogin: 'Enterprise login',
     userAgreement: 'User Agreement',
     privacyPolicy: 'Privacy Policy',
+    switchToPersonalLogin: 'Switch to personal login',
     agreeLogin: 'By logging in/registering, you agree to',
     smsOrPassword: 'SMS, password login or registration',
     scanWeChatCode: 'Scan WeChat QR code for quick login',

+ 2 - 0
src/locales/zh-CN.js

@@ -11,6 +11,7 @@ export default {
     saveMsg: '保存成功',
     toHome: '回到首页',
     submittedSuccessfully: '提交成功',
+    switchSuccessful: '切换成功',
     addMsg: '新增成功',
     delMsg: '删除成功',
     uploadPictures: '上传图片',
@@ -68,6 +69,7 @@ export default {
     enterpriseLogin: '企业登录',
     userAgreement: '用户协议',
     privacyPolicy: '隐私政策',
+    switchToPersonalLogin: '切换到个人登录',
     agreeLogin: '登录/注册即代表您同意',
     smsOrPassword: '短信、密码登录或注册',
     scanWeChatCode: '微信扫码快速登录',

+ 25 - 2
src/views/login/index.vue

@@ -8,7 +8,25 @@
               {{ isPhone ? $t('login.smsOrPassword') : $t('login.scanWeChatCode') }}
             </div>
           </div>
-          <div v-if="loginType" class="loginType">{{ $t('login.enterpriseLogin') }}</div>
+          <div v-if="loginType" class="loginType">
+            <span>{{ $t('login.enterpriseLogin') }}</span>
+            <v-tooltip :text="$t('login.switchToPersonalLogin')" location="start">
+              <template v-slot:activator="{ props }">
+                <v-btn
+                  class="ml-0"
+                  color="#fffff"
+                  size="x-small"
+                  icon="mdi-swap-vertical"
+                  variant="plain"
+                  v-bind="props"
+                  to="/login"
+                  @click="changeto"
+                >
+                </v-btn>
+              </template>
+            </v-tooltip>
+            <!-- <span class="mdi mdi-swap-vertical ml-4"></span> -->
+          </div>
         </div>
         <div class="right mr-2 mt-3" v-if="showClose">
           <v-icon color="grey" size="30">mdi-close</v-icon>
@@ -105,6 +123,11 @@ const handleToUserAgreement = () => {
 const handlePrivacyPolicy = () => {
   router.push({ path: '/privacyPolicy' })
 }
+
+const changeto = () => {
+  loginType.value = 0
+  Snackbar.success(t('common.switchSuccessful'))
+}
 </script>
 
 <style lang="scss" scoped>
@@ -114,7 +137,7 @@ const handlePrivacyPolicy = () => {
   right: 0;
   // width: 100%;
   color: #fff;
-  padding: 10px 30px;
+  padding: 4px 15px 4px 30px;
   border-radius: 8px 0 0 8px;
   background-color: #ffba5d;
   font-size: 16px;