Browse Source

首页页面调整

dev-v1.0.2
wangmingyong 4 months ago
parent
commit
a20dfe1f71
  1. 14
      zdxt-web-client/zdxt-efcode-enforcement-app/src/components/FooterBar.vue
  2. 3
      zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/components/HistoryActivityList.vue
  3. 2
      zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/enforce/enforcementEvaluateDetail.vue
  4. 17
      zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/home/enforcementHome.vue
  5. 36
      zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/message/messageCenter.vue

14
zdxt-web-client/zdxt-efcode-enforcement-app/src/components/FooterBar.vue

@ -36,17 +36,19 @@ const tabs = [
{ {
key: 'home', label: '首页', route: '/enforcement/enforcementHome', key: 'home', label: '首页', route: '/enforcement/enforcementHome',
path: '<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>' path: '<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>'
}, { },
key: 'program', label: '计划', route: '/enforcement/program', { key: 'query', label: '查询', route: '/enforcement/query',
path: '<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"/>' path: '<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/>' },
}, { // {
// key: 'program', label: '计划', route: '/enforcement/program',
// path: '<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"/>'
// },
{
key: "nos", key: "nos",
label: "非现场", label: "非现场",
route: "/enforcement/nos", route: "/enforcement/nos",
imgSrc: nosIcon imgSrc: nosIcon
}, },
// { key: 'query', label: '查询', route: '/enforcement/query',
// path: '<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/>' },
{ {
key: 'message', label: '消息', route: '/enforcement/message', key: 'message', label: '消息', route: '/enforcement/message',
path: '<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"/>' path: '<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"/>'

3
zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/components/HistoryActivityList.vue

@ -96,7 +96,8 @@ const fetchActivityList = (isLoadMore = false) => {
loading.value = true; loading.value = true;
const params = { const params = {
pageSize: pageSize.value, pageSize: pageSize.value,
pageNum: isLoadMore ? pageNum.value : 1 pageNum: isLoadMore ? pageNum.value : 1,
enterpriseNumber: router.currentRoute.value.query.enterpriseNumber || ''
}; };
// 关键字搜索 // 关键字搜索

2
zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/enforce/enforcementEvaluateDetail.vue

@ -23,7 +23,7 @@
<div class="card-title">执法信息 <span class="union-tag" v-if="detail.hasUnion === 1">联</span></div> <div class="card-title">执法信息 <span class="union-tag" v-if="detail.hasUnion === 1">联</span></div>
<div class="info-row"> <div class="info-row">
<span class="info-label">执法单位</span> <span class="info-label">执法单位</span>
<span class="info-value">{{ detail.lawEnforcement }}</span> <span class="info-value">{{ detail.bureauDeptName }}</span>
</div> </div>
<div class="info-row"> <div class="info-row">
<span class="info-label">执法人员</span> <span class="info-label">执法人员</span>

17
zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/home/enforcementHome.vue

@ -124,7 +124,10 @@ const fetchBannerList = () => {
getCarouselBannerList({}, (res) => { getCarouselBannerList({}, (res) => {
if (res && res.rows) { if (res && res.rows) {
// 接口返回结构为 { total, rows, code, msg } // 接口返回结构为 { total, rows, code, msg }
bannerList.value = res.rows || []; bannerList.value = (res.rows || []).map(item => ({
...item,
imageUrl: baseUrl + item.imageUrl
}));
} }
}, (err) => { }, (err) => {
console.error('获取轮播图失败', err); console.error('获取轮播图失败', err);
@ -200,18 +203,18 @@ onMounted(() => {
overflow: hidden; overflow: hidden;
flex-shrink: 0; flex-shrink: 0;
position: relative; position: relative;
height: 212px; height: 152px;
} }
.header-city-bg { .header-city-bg {
height: 220px; height: 150px;
background: url('@/assets/images/bg_top.jpg') no-repeat center center; background: url('@/assets/images/bg_top.jpg') no-repeat center center;
background-size: 100% 100%; background-size: 100% 100%;
} }
.header-city-info { .header-city-info {
width: 100%; width: 100%;
height: 198px; height: 138px;
background: url('@/assets/images/logo_top.png') no-repeat center center; background: url('@/assets/images/logo_top.png') no-repeat center center;
background-size: 100% 100%; background-size: 100% 100%;
position: absolute; position: absolute;
@ -226,7 +229,7 @@ onMounted(() => {
background: url('@/assets/images/label_zfd.png') no-repeat center center; background: url('@/assets/images/label_zfd.png') no-repeat center center;
background-size: 100% 100%; background-size: 100% 100%;
position: absolute; position: absolute;
bottom: 58px; bottom:38px;
left: 42%; left: 42%;
z-index: 1; z-index: 1;
} }
@ -237,7 +240,7 @@ onMounted(() => {
background: url('@/assets/images/slogan_top.png') no-repeat center center; background: url('@/assets/images/slogan_top.png') no-repeat center center;
background-size: 100% 100%; background-size: 100% 100%;
position: absolute; position: absolute;
bottom: 12px; bottom: 6px;
left: 72px; left: 72px;
z-index: 1; z-index: 1;
} }
@ -357,7 +360,7 @@ onMounted(() => {
.banner-inner { .banner-inner {
width: 100%; width: 100%;
height: 160px; height: 130px;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
} }

36
zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/message/messageCenter.vue

@ -137,27 +137,27 @@ const initMessageList = () => {
{ {
id: 1, id: 1,
title: '普法服务', title: '普法服务',
desc: '普法服务信息', desc: '',
time: '2026-04-15 10:07', time: '',
icon: 'law', icon: 'law',
iconBg: 'icon-blue', iconBg: 'icon-blue',
unreadCount: messageStats.value.pffwCount, unreadCount: messageStats.value.pffwCount,
},{
id: 2,
title: '计划通知',
desc: '计划通知信息',
time: '2026-04-15 10:07',
icon: 'law',
iconBg: 'icon-blue',
unreadCount: messageStats.value.jhtzcount,
},{ },{
id: 3, id: 3,
title: '执法评价', title: '执法评价',
desc: '执法评价信息', desc: '',
time: '2026-04-15 10:07', time: '',
icon: 'law', icon: 'law',
iconBg: 'icon-blue', iconBg: 'icon-blue',
unreadCount: messageStats.value.zfpjcount, unreadCount: messageStats.value.zfpjcount,
},{
id: 2,
title: '计划通知',
desc: '',
time: '',
icon: 'law',
iconBg: 'icon-blue',
unreadCount: messageStats.value.jhtzcount,
}, },
]; ];
}; };
@ -168,8 +168,8 @@ const initTodoList = () => {
{ {
id: 101, id: 101,
title: '执法预告', title: '执法预告',
desc: messageStats.value.zfygCount > 0 ? `您有${messageStats.value.zfygCount}条执法预告,请及时查看` : '暂无执法预告', desc: '',
time: '2026-04-15 09:30', time: '',
icon: 'check', icon: 'check',
iconBg: 'icon-red', iconBg: 'icon-red',
unreadCount: messageStats.value.zfygCount, unreadCount: messageStats.value.zfygCount,
@ -177,8 +177,8 @@ const initTodoList = () => {
{ {
id: 102, id: 102,
title: '执法任务', title: '执法任务',
desc: messageStats.value.zfygCount > 0 ? `您有${messageStats.value.zfygCount}条执法任务,请及时查看` : '暂无执法预告', desc: '',
time: '2026-04-15 09:30', time: '',
icon: 'check', icon: 'check',
iconBg: 'icon-red', iconBg: 'icon-red',
unreadCount: messageStats.value.zfygCount, unreadCount: messageStats.value.zfygCount,
@ -186,8 +186,8 @@ const initTodoList = () => {
{ {
id: 103, id: 103,
title: '执法预约', title: '执法预约',
desc: messageStats.value.zfygCount > 0 ? `您有${messageStats.value.zfygCount}条执法预约,请及时查看` : '暂无执法预告', desc: '',
time: '2026-04-15 09:30', time: '',
icon: 'check', icon: 'check',
iconBg: 'icon-red', iconBg: 'icon-red',
unreadCount: messageStats.value.zfygCount, unreadCount: messageStats.value.zfygCount,

Loading…
Cancel
Save