diff --git a/.env b/.env
index 18adcd1..010fb0e 100644
--- a/.env
+++ b/.env
@@ -8,4 +8,4 @@ VITE_OPEN = true
VITE_OPEN_CDN = false
# public path 配置线上环境路径(打包)、本地通过 http-server 访问时,请置空即可
-VITE_PUBLIC_PATH = 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/event_web/202606181700/'
\ No newline at end of file
+VITE_PUBLIC_PATH = 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/event_web/202606230907/'
\ No newline at end of file
diff --git a/src/views/match/user/general/index.vue b/src/views/match/user/general/index.vue
index 3907909..9631810 100644
--- a/src/views/match/user/general/index.vue
+++ b/src/views/match/user/general/index.vue
@@ -17,7 +17,7 @@
-
+
-
@@ -136,12 +136,27 @@ const getAuditStatusType = (status) => {
}
};
+// 根据 AuthType 获取对应的证件照片URL
+// AuthType=1: 身份证 idCardImageUrl
+// AuthType=2: 护照 passportPhotoUrl
+// AuthType=3: 户口本 householdPhotoUrl
+const getCertImageUrl = (row) => {
+ if (!row) return '';
+ const authType = Number(row.authType) || 1;
+ if (authType === 2) {
+ return row.passportPhotoUrl || row.idCardImageUrl || '';
+ } else if (authType === 3) {
+ return row.householdPhotoUrl || row.idCardImageUrl || '';
+ }
+ return row.idCardImageUrl || '';
+};
+
const columns = ref([
{ prop: 'ss', type: 'selection' },
{ prop: 'index', label: '序号', align: 'center' },
{ prop: 'name', label: '姓名', search: { el: 'input' } },
{ prop: 'gender', label: '性别', search: { el: 'select' }, enum: [{ label: '全部', value: '' }, { label: '男', value: 0 }, { label: '女', value: 1 }] },
- { prop: 'idCardImageUrl', label: '身份证', width: '130px' },
+ { prop: 'idCardImageUrl', label: '证件照片', width: '130px' },
{ prop: 'auditStatus', label: '审核状态', search: { el: 'select' }, enum: [{ label: '全部', value: '' }, { label: '待提交', value: 0 }, { label: '待审核', value: 1 }, { label: '审核通过', value: 2 }] },
{ prop: 'mobile', label: '联系电话', search: { el: 'input' } },
{ prop: 'createdTime', label: '生成时间', search: { el: 'date-picker', props: { type: 'daterange' } } },
diff --git a/vite.config.ts b/vite.config.ts
index e3b664a..4592a4d 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -30,7 +30,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
hmr: true,
proxy: {
'/api': {
- // target: 'http://localhost:9996',
+ // target: 'https://event.yuedongsports.com',
target: 'http://8.153.108.90:9996',
ws: true,
changeOrigin: true,