Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
liyeyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-frontend
liyeyun
Commits
7f5f467b
Commit
7f5f467b
authored
Dec 08, 2023
by
王玉鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 载体解锁功能
parent
90116c81
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
7 deletions
+27
-7
carrierDetail.ts
src/types/api/carrierDetail.ts
+2
-0
CarrierDetail.vue
src/views/carrier/CarrierDetail.vue
+12
-2
DevelopZoneDetail.vue
src/views/develop/DevelopZoneDetail.vue
+1
-4
IndustrialParkDetail.vue
src/views/industrial-park/IndustrialParkDetail.vue
+12
-1
No files found.
src/types/api/carrierDetail.ts
View file @
7f5f467b
...
...
@@ -97,4 +97,6 @@ export interface CarrierDetailResp {
}[];
/** 承重(单位:kg/㎡) */
weight
:
number
;
/** 是否已解锁 */
isView
:
boolean
;
}
src/views/carrier/CarrierDetail.vue
View file @
7f5f467b
...
...
@@ -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
);
...
...
src/views/develop/DevelopZoneDetail.vue
View file @
7f5f467b
...
...
@@ -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'
;
...
...
src/views/industrial-park/IndustrialParkDetail.vue
View file @
7f5f467b
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment