Bladeren bron

个人-修改密码

Xiao_123 1 maand geleden
bovenliggende
commit
17af21f404

+ 1 - 1
src/components/Enterprise/hotPromoted.vue

@@ -190,7 +190,7 @@ ul li {
   position: relative;
   line-height: 22px;
   font-weight: 700;
-  color: #404040;
+  color: #0E100F;
   margin-right: 8px;
   overflow: hidden;
   text-overflow: ellipsis;

+ 1 - 1
src/components/Position/item.vue

@@ -196,6 +196,6 @@ const handlePosition = (item) => {
 }
 .names {
   font-weight: 500;
-  color: #404040;
+  color: #0E100F;
 }
 </style>

+ 9 - 0
src/views/login/components/editPassword.vue

@@ -57,6 +57,10 @@ const props = defineProps({
   isReset: {
     type: Boolean,
     default: false
+  },
+  refresh: {
+    type: Boolean,
+    default: false
   }
 })
 
@@ -122,6 +126,11 @@ const handleSubmit = async () => {
     await api(data)
     Snackbar.success('修改成功')
     handleClose(1)
+    if (props.refresh) {
+      setTimeout(() => {
+        window.location.href = '/recruit/personal/personalCenter/accountSettings/editPassword'
+      }, 1000)
+    }
   } catch (error) {
     phoneRef.value && phoneRef.value.clearCaptcha()
     loading.value = false

+ 5 - 5
src/views/recruit/components/message/components/chatting.vue

@@ -61,7 +61,7 @@
           
           <template v-if="val.payload?.type === 102">
             <v-card
-              color="teal"
+              color="primary"
               variant="tonal"
               class="mx-auto mb-5"
               width="400"
@@ -74,7 +74,7 @@
                 <div v-else class="text-subtitle-2">薪酬待遇: {{ val.payload?.content?.positionInfo?.payFrom ? val.payload?.content?.positionInfo?.payFrom + ' - ' : '' }}{{ val.payload?.content?.positionInfo?.payTo }}</div>
                 <div>
                   <v-chip
-                    color="secondary"
+                    color="primary"
                     v-for="(v, i) in val.payload?.content?.positionInfo?.enterprise?.welfareList"
                     :key="val.message_id + v + i"
                     x-small
@@ -120,7 +120,7 @@
             </template>
             <!-- 发起面试邀请 -->
             <div v-else-if="val.payload?.type === 101">
-              <v-chip class="ma-2" color="teal" label>
+              <v-chip class="ma-2" color="primary" label>
                 <v-icon icon="mdi-email-newsletter" start></v-icon>
                 发起了面试邀请
               </v-chip>
@@ -142,7 +142,7 @@
                 <v-icon icon="mdi-check" start></v-icon>
                 {{ val.payload.content?.type === 1 ? '附件简历已发送' : '简历请求已发送' }}
               </v-chip>
-              <v-card v-if="val.payload.content?.type !== 2 || val.from_uid !== IM.uid" width="300" class="pa-3 ma-2" color="teal" variant="tonal" :elevation="3">
+              <v-card v-if="val.payload.content?.type !== 2 || val.from_uid !== IM.uid" width="300" class="pa-3 ma-2" color="primary" variant="tonal" :elevation="3">
                 <v-card-text class="d-flex">
                   <p v-if="val.payload.content?.type === 1" style="width: 100%; text-align: left;">{{ val.payload.content?.query?.title || t('resume.attachmentResume') }}</p>
                   <p v-if="val.payload.content?.type === 2">{{ t('resume.requestResume') }}</p>
@@ -167,7 +167,7 @@
           <!-- 插入个人-面试职位邀请:同意、拒绝 -->
           <div v-if="isEnterprise && val.payload?.type === 101" class="d-flex justify-center">
             <v-card
-              color="teal"
+              color="primary"
               variant="tonal"
               class="mx-auto"
               min-width="400"

+ 6 - 29
src/views/recruit/personal/PersonalCenter/accountSettings/editPassword.vue

@@ -1,19 +1,11 @@
 <template>
   <div style="position: relative; width: 100%; height: 100%;">
-    <h3>{{ $t('setting.editPassword') }}</h3>
-    <v-divider class="mb-4"></v-divider>
-    <div v-if="!showEdit" class="login-user mb-4">
-      当前登录账号: 
-      <span>{{ userInfo.phone }}</span>
-      <span class="color-primary ml-5 cursor-pointer border-bottom-primary" @click.stop="showEdit = true">修改密码</span>
+    <div class="resume-header">
+      <div class="resume-title">{{ $t('setting.editPassword') }}</div>
     </div>
-    <div class="editPageBox">
-      <editPasswordPage
-        v-if="showEdit"
-        :phone="userInfo.phone"
-        @cancel="showEdit = false"
-        class="editPage"
-      ></editPasswordPage>
+    <v-divider class="my-3"></v-divider>
+    <div class="editPageBox mt-16">
+      <editPasswordPage :phone="userInfo.phone" :refresh="true" :showCancelBtn="false"></editPasswordPage>
     </div>
   </div>
 </template>
@@ -22,23 +14,11 @@
 import { ref } from 'vue'
 import editPasswordPage from '@/views/login/components/editPassword.vue'
 
-const showEdit = ref(false)
-
 // 当前登录的用户信息
-const userInfo = JSON.parse(localStorage.getItem('userInfo'))
+const userInfo = ref(JSON.parse(localStorage.getItem('userInfo')))
 </script>
 
 <style lang="scss" scoped>
-h3 {
-  font-size: 20px;
-  text-align: left;
-  font-weight: 600;
-  padding-bottom: 25px;
-}
-.login-user {
-  color: var(--color-666);
-  font-weight: 600;
-}
 .editPageBox {
   width: 100%;
   display: flex;
@@ -46,9 +26,6 @@ h3 {
   align-items: center;
 }
 .editPage {
-  // display: flex;
-  // justify-content: center;
-  // align-items: center;
   width: 450px;
   height: 450px;
 }

+ 1 - 5
src/views/recruit/personal/recommend/components/positionList.vue

@@ -60,7 +60,6 @@
 defineOptions({ name: 'position-card-item' })
 import { ref, watch } from 'vue'
 import { formatName } from '@/utils/getText'
-// import { spaces } from '@/utils/index.js'
 
 const emit = defineEmits(['selectChange'])
 const props = defineProps({
@@ -108,7 +107,6 @@ const handleClick = (item, index) => {
   padding: 0;
   overflow: hidden;
   cursor: pointer;
-  // transition: all .2s linear;
   background-color: #fff;
   border: 1px solid #fff;
 }
@@ -157,7 +155,6 @@ const handleClick = (item, index) => {
 }
 .sub-li-info .name {
   position: relative;
-  // max-width: 140px;
   margin-right: 8px;
   overflow: hidden;
   text-overflow: ellipsis;
@@ -185,8 +182,7 @@ const handleClick = (item, index) => {
 .names {
   font-weight: 500;
   &:hover {
-    // color: var(--v-primary-base);
-    color: #404040;
+    color: #0E100F;
   }
 }
 </style>