瀏覽代碼

个人中心

Xiao_123 11 月之前
父節點
當前提交
0189fa2f33

+ 8 - 2
src/views/Home/personal/account/dynamic/editPassword.vue

@@ -30,7 +30,7 @@
                 prepend-inner-icon="mdi-lock-outline" 
                 :append-inner-icon="passwordType ? 'mdi-eye-outline' : 'mdi-eye-off-outline'"
                 :type="passwordType ? 'text' : 'password'"
-                :rules="[v=> !!v || '请填写密码']"
+                :rules="[v=> !!v || '请填写密码', validPassword]"
                 @click:append-inner="passwordType = !passwordType"
               ></v-text-field>
               <v-text-field
@@ -72,8 +72,14 @@ const query = reactive({
   password: '',
   checkPassword: ''
 })
+
+// 密码效验
+const regex = /^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).{4,10}$/
+const validPassword = computed(() => {
+  return regex.test(query.password) || '请输入4-10位数由数字、大小写字母组成的密码'
+})
 const passwordCheck = computed(() => {
-  return query.checkPassword === query.password || '两次密码输入不一致'
+  return (query.checkPassword === query.password && regex.test(query.checkPassword)) || '两次密码输入不一致'
 })
 
 // 当前登录的用户信息

+ 41 - 43
src/views/PersonalCenter/components/communication.vue

@@ -43,9 +43,7 @@
         </div>
       </div>
     </div>
-    <div v-else>
-      <Empty></Empty>
-    </div>
+    <Empty v-else></Empty>
   </div>
 </template>
 
@@ -69,46 +67,46 @@ const props = defineProps({
 //   pageSize: 10
 // })
 const list = ref([
-  {
-    contact: {
-      name: '肖女士',
-      avatars: 'https://cdn.vuetifyjs.com/images/john.jpg',
-      postNameCn: '人事经理'
-    },
-    name: '前端开发工程师',
-    areaName: '北京·石景山区·八大处',
-    payFrom: 15,
-    payTo: 18,
-    expName: '3-5年',
-    eduName: '本科',
-    active: false,
-    enterprise: {
-      name: '广州辞图科技有限公司',
-      industryName: '互联网',
-      scaleName: '0-20人',
-      financingName: '未融资'
-    }
-  },
-  {
-    contact: {
-      name: '肖女士',
-      avatars: 'https://cdn.vuetifyjs.com/images/john.jpg',
-      postNameCn: '人事经理'
-    },
-    name: '前端开发工程师',
-    areaName: '北京·石景山区·八大处',
-    payFrom: 15,
-    payTo: 18,
-    expName: '3-5年',
-    eduName: '本科',
-    active: false,
-    enterprise: {
-      name: '广州辞图科技有限公司',
-      industryName: '互联网',
-      scaleName: '0-20人',
-      financingName: '未融资'
-    }
-  }
+  // {
+  //   contact: {
+  //     name: '肖女士',
+  //     avatars: 'https://cdn.vuetifyjs.com/images/john.jpg',
+  //     postNameCn: '人事经理'
+  //   },
+  //   name: '前端开发工程师',
+  //   areaName: '北京·石景山区·八大处',
+  //   payFrom: 15,
+  //   payTo: 18,
+  //   expName: '3-5年',
+  //   eduName: '本科',
+  //   active: false,
+  //   enterprise: {
+  //     name: '广州辞图科技有限公司',
+  //     industryName: '互联网',
+  //     scaleName: '0-20人',
+  //     financingName: '未融资'
+  //   }
+  // },
+  // {
+  //   contact: {
+  //     name: '肖女士',
+  //     avatars: 'https://cdn.vuetifyjs.com/images/john.jpg',
+  //     postNameCn: '人事经理'
+  //   },
+  //   name: '前端开发工程师',
+  //   areaName: '北京·石景山区·八大处',
+  //   payFrom: 15,
+  //   payTo: 18,
+  //   expName: '3-5年',
+  //   eduName: '本科',
+  //   active: false,
+  //   enterprise: {
+  //     name: '广州辞图科技有限公司',
+  //     industryName: '互联网',
+  //     scaleName: '0-20人',
+  //     financingName: '未融资'
+  //   }
+  // }
 ])
 
 const desc = ['industryName', 'financingName', 'scaleName']

+ 40 - 40
src/views/PersonalCenter/components/interestedMe.vue

@@ -69,46 +69,46 @@ const props = defineProps({
 //   pageSize: 10
 // })
 const list = ref([
-  {
-    contact: {
-      name: '肖女士',
-      avatars: 'https://cdn.vuetifyjs.com/images/john.jpg',
-      postNameCn: '人事经理'
-    },
-    name: '前端开发工程师',
-    areaName: '北京·石景山区·八大处',
-    payFrom: 15,
-    payTo: 18,
-    expName: '3-5年',
-    eduName: '本科',
-    active: false,
-    enterprise: {
-      name: '广州辞图科技有限公司',
-      industryName: '互联网',
-      scaleName: '0-20人',
-      financingName: '未融资'
-    }
-  },
-  {
-    contact: {
-      name: '肖女士',
-      avatars: 'https://cdn.vuetifyjs.com/images/john.jpg',
-      postNameCn: '人事经理'
-    },
-    name: '前端开发工程师',
-    areaName: '北京·石景山区·八大处',
-    payFrom: 15,
-    payTo: 18,
-    expName: '3-5年',
-    eduName: '本科',
-    active: false,
-    enterprise: {
-      name: '广州辞图科技有限公司',
-      industryName: '互联网',
-      scaleName: '0-20人',
-      financingName: '未融资'
-    }
-  }
+  // {
+  //   contact: {
+  //     name: '肖女士',
+  //     avatars: 'https://cdn.vuetifyjs.com/images/john.jpg',
+  //     postNameCn: '人事经理'
+  //   },
+  //   name: '前端开发工程师',
+  //   areaName: '北京·石景山区·八大处',
+  //   payFrom: 15,
+  //   payTo: 18,
+  //   expName: '3-5年',
+  //   eduName: '本科',
+  //   active: false,
+  //   enterprise: {
+  //     name: '广州辞图科技有限公司',
+  //     industryName: '互联网',
+  //     scaleName: '0-20人',
+  //     financingName: '未融资'
+  //   }
+  // },
+  // {
+  //   contact: {
+  //     name: '肖女士',
+  //     avatars: 'https://cdn.vuetifyjs.com/images/john.jpg',
+  //     postNameCn: '人事经理'
+  //   },
+  //   name: '前端开发工程师',
+  //   areaName: '北京·石景山区·八大处',
+  //   payFrom: 15,
+  //   payTo: 18,
+  //   expName: '3-5年',
+  //   eduName: '本科',
+  //   active: false,
+  //   enterprise: {
+  //     name: '广州辞图科技有限公司',
+  //     industryName: '互联网',
+  //     scaleName: '0-20人',
+  //     financingName: '未融资'
+  //   }
+  // }
 ])
 
 const desc = ['industryName', 'financingName', 'scaleName']

+ 2 - 1
src/views/PersonalCenter/components/interview.vue → src/views/PersonalCenter/components/interview/index.vue

@@ -7,12 +7,13 @@
         <v-tab :value="2">未面试</v-tab>
         <v-tab :value="3">已取消</v-tab>
       </v-tabs>
+      <Empty class="mt-3"></Empty>
   </div>
 </template>
 
 <script setup>
 // 面试
-defineOptions({ name: 'formPage'})
+defineOptions({ name: 'interview-index'})
 import { ref } from 'vue'
 
 const tabVal = ref(0)

+ 40 - 40
src/views/PersonalCenter/components/seenMe.vue

@@ -69,46 +69,46 @@ const props = defineProps({
 //   pageSize: 10
 // })
 const list = ref([
-  {
-    contact: {
-      name: '肖女士',
-      avatars: 'https://cdn.vuetifyjs.com/images/john.jpg',
-      postNameCn: '人事经理'
-    },
-    name: '前端开发工程师',
-    areaName: '北京·石景山区·八大处',
-    payFrom: 15,
-    payTo: 18,
-    expName: '3-5年',
-    eduName: '本科',
-    active: false,
-    enterprise: {
-      name: '广州辞图科技有限公司',
-      industryName: '互联网',
-      scaleName: '0-20人',
-      financingName: '未融资'
-    }
-  },
-  {
-    contact: {
-      name: '肖女士',
-      avatars: 'https://cdn.vuetifyjs.com/images/john.jpg',
-      postNameCn: '人事经理'
-    },
-    name: '前端开发工程师',
-    areaName: '北京·石景山区·八大处',
-    payFrom: 15,
-    payTo: 18,
-    expName: '3-5年',
-    eduName: '本科',
-    active: false,
-    enterprise: {
-      name: '广州辞图科技有限公司',
-      industryName: '互联网',
-      scaleName: '0-20人',
-      financingName: '未融资'
-    }
-  }
+  // {
+  //   contact: {
+  //     name: '肖女士',
+  //     avatars: 'https://cdn.vuetifyjs.com/images/john.jpg',
+  //     postNameCn: '人事经理'
+  //   },
+  //   name: '前端开发工程师',
+  //   areaName: '北京·石景山区·八大处',
+  //   payFrom: 15,
+  //   payTo: 18,
+  //   expName: '3-5年',
+  //   eduName: '本科',
+  //   active: false,
+  //   enterprise: {
+  //     name: '广州辞图科技有限公司',
+  //     industryName: '互联网',
+  //     scaleName: '0-20人',
+  //     financingName: '未融资'
+  //   }
+  // },
+  // {
+  //   contact: {
+  //     name: '肖女士',
+  //     avatars: 'https://cdn.vuetifyjs.com/images/john.jpg',
+  //     postNameCn: '人事经理'
+  //   },
+  //   name: '前端开发工程师',
+  //   areaName: '北京·石景山区·八大处',
+  //   payFrom: 15,
+  //   payTo: 18,
+  //   expName: '3-5年',
+  //   eduName: '本科',
+  //   active: false,
+  //   enterprise: {
+  //     name: '广州辞图科技有限公司',
+  //     industryName: '互联网',
+  //     scaleName: '0-20人',
+  //     financingName: '未融资'
+  //   }
+  // }
 ])
 
 const desc = ['industryName', 'financingName', 'scaleName']

+ 1 - 1
src/views/PersonalCenter/dynamic/left.vue

@@ -71,7 +71,7 @@ import { useI18n } from '@/hooks/web/useI18n'
 import Snackbar from '@/plugins/snackbar'
 import communication from '../components/communication.vue'
 import delivery from '../components/delivery.vue'
-import interview from '../components/interview.vue'
+import interview from '../components/interview/index.vue'
 import interested from '../components/interested.vue'
 import interestedMe from '../components/interestedMe.vue'
 import seenMe from '../components/seenMe.vue'