Xiao_123 9 ay önce
ebeveyn
işleme
d5b58e17ce

+ 6 - 1
src/views/recruit/enterprise/register/register.vue

@@ -16,7 +16,7 @@
           <span>支持jpg、jpeg、png格式,照片大小不得超过10M</span>
         </div>
         <div class="file-box">
-          <div class="file-item" v-if="licenseUrl">
+          <div class="file-item cursor-pointer" v-if="licenseUrl" @click="showPreview = !showPreview">
             <v-img width="100%" height="100%" :src="licenseUrl"></v-img>
           </div>
           <div class="file-item file-input-box" :class="{'verifyAct': fileVerify}" @click="openFileInput">
@@ -58,6 +58,7 @@
         <v-btn color="primary" variant="text" @click="router.push({ path: '/recruit/enterprise/register/joiningEnterprise' })">{{ $t('enterprise.joiningEnterprise') }}</v-btn>
       </div> -->
     </v-card>
+    <PreviewImg v-if="showPreview" :current="current" :list="[licenseUrl]" @close="showPreview = !showPreview"></PreviewImg>
   </div>
 </template>
 
@@ -76,6 +77,10 @@ const router = useRouter()
 const fileVerify = ref(false)
 const loginLoading = ref(false)
 
+// 图片预览
+const showPreview = ref(false)
+const current = ref(0)
+
 // 组件挂载后添加事件监听器  
 const isMobile = ref(false)
 onMounted(() => {

+ 2 - 2
src/views/recruit/personal/remuse/components/basicInfo.vue

@@ -173,10 +173,10 @@ const items = ref({
       key: 'name',
       value: null,
       default: null,
-      label: '名 *',
+      label: '中文名 *',
       col: 6,
       outlined: true,
-      rules: [v => !!v || '请输入名']
+      rules: [v => !!v || '请输入您的中文名']
     },
     {
       type: 'ifRadio',