Commit a8fa6992 authored by 王玉鑫's avatar 王玉鑫

feat: 开发区图片占位名称修改

parent dfc81cfa
......@@ -5,7 +5,7 @@
<img
class="h-[156px] w-[208px] cursor-pointer rounded-sm"
:src="item.imgUrl"
alt="产业园"
:alt="isDevelop ? '开发区' : '产业园'"
/>
</div>
<div class="ml-4 flex-1 py-2">
......@@ -31,8 +31,6 @@
{{ filterAddress(item) }}
</div>
<div class="mt-4">
<!-- <div class="flex min-w-[99px] justify-center">{{ item.levelName }}</div>
<div class="flex min-w-[94px] justify-center">{{ item.planArea }}</div> -->
<ListInfo :infos="infos"></ListInfo>
</div>
<div class="mt-[17px] flex flex-wrap gap-[13px]">
......@@ -51,11 +49,13 @@ import type { IndustrialParkItem } from '@/types/api/industrialParkList.ts';
import { filterAddress } from '@/utils/filters.ts';
import { computed } from 'vue';
import type { DevelopZoneItem } from '@/types/api/developZoneList';
import { ParkItemType } from '@/types/enum.ts';
import ListInfo from './ListInfo.vue';
const props = withDefaults(
defineProps<{
item: Partial<IndustrialParkItem & DevelopZoneItem>;
type: ParkItemType;
}>(),
{},
);
......@@ -69,6 +69,10 @@ const { currentStatusTag, superTag } = useItemStatus(props.item);
/** 最大展示招商方向数量 */
const MAX_DIRECTION_COUNT = 3;
const isDevelop = computed(() => {
return props.type === ParkItemType.develop;
});
const infos = computed(() => {
const { levelName, planArea, type } = props.item || {};
return [levelName, type, planArea ? `${planArea}亩` : ''];
......
......@@ -25,3 +25,13 @@ export enum AuthStatus {
/** 已回退 */
back = 9,
}
/**
* 园区详情类型
*/
export enum ParkItemType {
/** 开发区 */
develop = 'develop',
/** 产业原 */
industrial = 'industrial',
}
......@@ -6,6 +6,7 @@
v-for="item in datas"
:key="item.id"
:item="item"
:type="ParkItemType.develop"
@to-detail="handleDetail(RouteName.developZoneDetail, item)"
></ParkItem>
......@@ -25,6 +26,7 @@ import { RouteName } from '@/router/router.ts';
import ListPagination from '@/components/list/ListPagination.vue';
import { RequestUrl } from '@/types/api.ts';
import type { DevelopZoneItem, DevelopZoneListCondition } from '@/types/api/developZoneList';
import { ParkItemType } from '@/types/enum.ts';
const { pageNum, pageSize, totalCount, datas, handleDetail } = useListView<
DevelopZoneItem,
......
......@@ -7,6 +7,7 @@
v-for="item in datas"
:key="item.id"
:item="item"
:type="ParkItemType.industrial"
@to-detail="handleDetail(RouteName.industrialParkDetail, item)"
></ParkItem>
</div>
......@@ -31,6 +32,7 @@ import type {
IndustrialParkItem,
IndustrialParkListCondition,
} from '@/types/api/industrialParkList.ts';
import { ParkItemType } from '@/types/enum.ts';
const { pageNum, pageSize, totalCount, datas, handleDetail } = useListView<
IndustrialParkItem,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment