瀏覽代碼

Merge branch 'master' of https://git.citupro.com/zhengnaiwen_citu/menduner

Xiao_123 1 年之前
父節點
當前提交
a69dc014ac

+ 1 - 0
.gitignore

@@ -1,6 +1,7 @@
 .DS_Store
 node_modules
 /dist
+/.history/
 
 # local env files
 .env.local

+ 6 - 1
index.html

@@ -7,10 +7,15 @@
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <title>%VITE_APP_TITLE%</title>
 </head>
-
 <body>
   <div id="app"></div>
   <script type="module" src="/src/main.js"></script>
 </body>
+<style>
+/* 复写vuetify css属性 */
+html {
+  overflow: auto;
+}
+</style>
 
 </html>

+ 9 - 0
pnpm-lock.yaml

@@ -11,6 +11,9 @@ importers:
       '@mdi/font':
         specifier: 7.0.96
         version: 7.0.96
+      js-cookie:
+        specifier: ^3.0.5
+        version: 3.0.5
       pinia:
         specifier: ^2.1.7
         version: 2.1.7(vue@3.4.25)
@@ -783,6 +786,10 @@ packages:
   isexe@2.0.0:
     resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
 
+  js-cookie@3.0.5:
+    resolution: {integrity: sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==}
+    engines: {node: '>=14'}
+
   js-yaml@4.1.0:
     resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}
     hasBin: true
@@ -1967,6 +1974,8 @@ snapshots:
 
   isexe@2.0.0: {}
 
+  js-cookie@3.0.5: {}
+
   js-yaml@4.1.0:
     dependencies:
       argparse: 2.0.1

+ 6 - 2
src/router/modules/remaining.js

@@ -1,8 +1,12 @@
-import personel from './personal'
+import personal from './personal'
 import enterprise from './enterprise'
 
 const type  = 0
-const items = type ? personel : enterprise
+const routeArray = [
+  personal,
+  enterprise
+]
+const items = routeArray[type]
 const remainingRouter = [
   {
     path: '/',

+ 2 - 2
src/views/Home/index.vue

@@ -1,9 +1,9 @@
 <script setup>
-
+defineOptions({ name:'home-index'})
 </script>
 <template>
   <div>
-123
+    <v-btn color="primary" class="white--text mt-2" min-width="298" @click="changeRole">切换企业为用户</v-btn>
   </div>
 </template>
 <style lang="scss" scoped>

+ 0 - 0
src/views/enterprise/components/enterpriseInfo.vue


+ 12 - 0
src/views/enterprise/components/register.vue

@@ -0,0 +1,12 @@
+<!-- 企业注册表单 -->
+<script setup>
+defineOptions({ name:'register-form'})
+</script>
+<template>
+  <div>
+    企业注册表单
+  </div>
+</template>
+<style lang="scss" scoped>
+
+</style>

+ 1 - 0
src/views/login/index.vue

@@ -83,6 +83,7 @@ const handlePrivacyPolicy = () => {
   width: 100%;
   height: 100%;
   background-image: url('https://www.menduner.com/images/userfiles/92d7e4a755e2428b94aab3636d5047f3/images/recruitment/adImages/2018/11/1920x940.jpg');
+  background-size: cover;
 }
 .login-content {
   position: absolute;