A维护通知
This commit is contained in:
@@ -318,6 +318,7 @@ const emit = defineEmits(['submit-success']);
|
||||
// 动态导入产品背景图片的函数
|
||||
const loadProductBackground = async (productType) => {
|
||||
try {
|
||||
console.log('1动态导入加载产品背景图片', productType);
|
||||
switch (productType) {
|
||||
case 'companyinfo':
|
||||
return (await import("@/assets/images/report/xwqy_inquire_bg.jpg")).default;
|
||||
@@ -326,19 +327,21 @@ const loadProductBackground = async (productType) => {
|
||||
case 'personalData':
|
||||
return (await import("@/assets/images/report/grdsj_inquire_bg.jpg")).default;
|
||||
case 'marriage':
|
||||
console.log('2动态导入loadProductBackground :marriage_inquire_bg.jpg');
|
||||
return (await import("@/assets/images/report/marriage_inquire_bg.jpg")).default;
|
||||
case 'homeservice':
|
||||
return (await import("@/assets/images/report/homeservice_inquire_bg.jpg")).default;
|
||||
case 'backgroundcheck':
|
||||
return (await import("@/assets/images/report/backgroundcheck_inquire_bg.png")).default;
|
||||
default:
|
||||
console.log('No matching case for product type:', productType);
|
||||
return null;
|
||||
}
|
||||
} catch (error) {
|
||||
console.warn(`Failed to load background image for ${productType}:`, error);
|
||||
console.log('Failed to load background image for ${productType}:', error);
|
||||
return null;
|
||||
}
|
||||
console.log('Loaded background21:', background);
|
||||
};
|
||||
|
||||
const route = useRoute();
|
||||
@@ -673,12 +676,13 @@ const toHistory = () => {
|
||||
|
||||
// 生命周期
|
||||
onMounted(async () => {
|
||||
|
||||
await loadBackgroundImage();
|
||||
await loadTrapezoidBackground();
|
||||
});
|
||||
|
||||
// 加载背景图片
|
||||
const loadBackgroundImage = async () => {
|
||||
console.log('加载背景图片:s111s', props.feature);
|
||||
console.log(' 加载背景图片loadBackgroundImage :feature', props.feature);
|
||||
const background = await loadProductBackground(props.feature);
|
||||
productBackground.value = background || '';
|
||||
};
|
||||
|
||||
@@ -149,12 +149,19 @@ const router = createRouter({
|
||||
component: () => import('@/views/AgentServiceAgreement.vue'),
|
||||
meta: { title: '信息技术服务合同' },
|
||||
},
|
||||
{
|
||||
path: '/inquire/marriage',
|
||||
name: 'inquire-marriage',
|
||||
component: () => import('@/views/Maintenance.vue'),
|
||||
meta: { title: '维护通知' },
|
||||
},
|
||||
{
|
||||
path: '/inquire/:feature',
|
||||
name: 'inquire',
|
||||
component: () => import('@/views/Inquire.vue'),
|
||||
meta: { title: '查询报告' },
|
||||
},
|
||||
|
||||
{
|
||||
path: '/authorization',
|
||||
name: 'authorization',
|
||||
|
||||
82
src/views/Maintenance.vue
Normal file
82
src/views/Maintenance.vue
Normal file
@@ -0,0 +1,82 @@
|
||||
<template>
|
||||
<div class="maintenance-container">
|
||||
<div class="notice-card">
|
||||
<h2 class="notice-title">服务暂停通知</h2>
|
||||
<div class="notice-content">
|
||||
<p>因政策要求,接上级主管部门通知,我司现暂停婚姻报告服务,恢复时间估计在元旦以后,由此给您带来的不便,我们深表歉意。</p>
|
||||
</div>
|
||||
<div class="notice-footer">
|
||||
<p>感谢您的理解与支持!</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Maintenance',
|
||||
data() {
|
||||
return {
|
||||
// 可以在这里添加需要的数据
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 可以在这里添加需要的方法
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.maintenance-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
background-color: #f5f7fa;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.notice-card {
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
||||
padding: 40px;
|
||||
max-width: 600px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.notice-title {
|
||||
font-size: 24px;
|
||||
color: #303133;
|
||||
margin-bottom: 20px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.notice-content {
|
||||
font-size: 16px;
|
||||
color: #606266;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.notice-footer {
|
||||
font-size: 14px;
|
||||
color: #909399;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.notice-card {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.notice-title {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.notice-content {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -93,7 +93,7 @@ const reportTypes = [
|
||||
{ text: "个人大数据", value: "personaldata", id: 27 },
|
||||
{ text: '入职风险', value: 'backgroundcheck', id: 1 },
|
||||
{ text: '家政风险', value: 'homeservice', id: 3 },
|
||||
{ text: '婚恋风险', value: 'marriage', id: 4 },
|
||||
// { text: '婚恋风险', value: 'marriage', id: 4 },
|
||||
// { text: '租赁风险', value: 'rentalrisk', id: 6 },
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user