Commit 7f5f467b authored by 王玉鑫's avatar 王玉鑫

feat: 载体解锁功能

parent 90116c81
......@@ -97,4 +97,6 @@ export interface CarrierDetailResp {
}[];
/** 承重(单位:kg/㎡) */
weight: number;
/** 是否已解锁 */
isView: boolean;
}
......@@ -13,7 +13,17 @@
<DetailMainInfo :value="detail.structure" name="建筑结构"></DetailMainInfo>
</DetailMain>
</DetailInfoCell>
<DetailInfoCell title="载体详情">
<DetailInfoCell
title="载体详情"
secret-mode
:infos="carrierInfo"
:example-type="ExampleType.industryPolicy"
:secret-num="detail.limitNum"
:detail-id="detail.id"
:detail-type="DetailType.carrier"
:is-unlocked="detail.isView"
@init-detail="initDetail"
>
<DetailInfo :infos="carrierInfo"></DetailInfo>
</DetailInfoCell>
<DetailInfoCell title="入驻要求">
......@@ -49,7 +59,7 @@ import { useJump } from '@/composable/useJump.ts';
import { RouteName } from '@/router/router.ts';
import { RequestUrl } from '@/types/api.ts';
import type { CarrierDetailResp } from '@/types/api/carrierDetail';
import { DetailType, ParkItemType } from '@/types/enum.ts';
import { DetailType, ExampleType, ParkItemType } from '@/types/enum.ts';
import { computed } from 'vue';
const { detail, initDetail } = useDetail<CarrierDetailResp>(RequestUrl.carrierDetail);
......
......@@ -44,9 +44,7 @@
<DetailInfoCell title="入驻要求">
<DetailInfo :infos="joinRequired"></DetailInfo>
</DetailInfoCell>
<DetailInfoCell title="配套设施" title-center>
<MapView :lat="detail.latitude" :lng="detail.longitude"></MapView>
</DetailInfoCell>
<DetailInfoCell title="配套设施"></DetailInfoCell>
<DetailInfoCell
v-if="industrials.length"
title-center
......@@ -88,7 +86,6 @@
import DetailInfoCell from '@/components/detail/DetailInfoCell.vue';
import DetailInfo, { type Infos } from '@/components/detail/DetailInfo.vue';
import DetailMain from '@/components/detail/DetailMain.vue';
import MapView from '@/components/map/MapView.vue';
import { useDetail } from '@/composable/useDetail.ts';
import { RequestUrl } from '@/types/api.ts';
import type { DevelopZoneDetailResp } from '@/types/api/developZoneDetail.ts';
......
......@@ -32,7 +32,18 @@
>
<DetailInfo :infos="elementCost"></DetailInfo>
</DetailInfoCell>
<DetailInfoCell v-if="industrySupports.length" title="产业支持">
<DetailInfoCell
v-if="industrySupports.length"
title="产业支持"
secret-mode
:infos="elementCost"
:example-type="ExampleType.industryPolicy"
:secret-num="detail.limitNum"
:detail-id="detail.id"
:detail-type="DetailType.industrial"
:is-unlocked="detail.isView"
@init-detail="initDetail"
>
<div class="flex flex-wrap gap-x-2">
<div
v-for="item of industrySupports"
......
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