Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
east-nanjing-new
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
郭铭瑶
east-nanjing-new
Commits
178b5138
Commit
178b5138
authored
Aug 16, 2022
by
zhangrui123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加来福士的专题屏
parent
2c6bf28d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
13 deletions
+32
-13
state.ts
src/store/state.ts
+1
-0
site-selector.vue
src/view/community/site-selector.vue
+16
-10
index.vue
src/view/raffles/index.vue
+15
-3
No files found.
src/store/state.ts
View file @
178b5138
...
@@ -27,6 +27,7 @@ export default {
...
@@ -27,6 +27,7 @@ export default {
{
name
:
'第一工作站'
,
type
:
'work1'
,
id
:
'01001'
},
{
name
:
'第一工作站'
,
type
:
'work1'
,
id
:
'01001'
},
{
name
:
'第二工作站'
,
type
:
'work2'
,
id
:
'01002'
},
{
name
:
'第二工作站'
,
type
:
'work2'
,
id
:
'01002'
},
{
name
:
'第三工作站'
,
type
:
'work3'
,
id
:
'01003'
},
{
name
:
'第三工作站'
,
type
:
'work3'
,
id
:
'01003'
},
{
name
:
'来福士专题屏'
,
type
:
'lfs'
},
// {name: "振兴小区", type: url: "/community?id=527635870583459840"}
// {name: "振兴小区", type: url: "/community?id=527635870583459840"}
// {name: "威海路62弄", type: url: "/community?id=527635870583459841"}
// {name: "威海路62弄", type: url: "/community?id=527635870583459841"}
],
],
...
...
src/view/community/site-selector.vue
View file @
178b5138
...
@@ -3,7 +3,11 @@
...
@@ -3,7 +3,11 @@
id=
"site-selector"
id=
"site-selector"
class=
"site-selector"
class=
"site-selector"
:style=
"`left:$
{
:style=
"`left:$
{
isNaN(+curViewType) ? 'calc(20vw + .1rem)' : 'calc(16vw + .1rem)'
isNaN(+curViewType)
&&
curViewType != 'lfs'
? 'calc(20vw + .1rem)'
: isNaN(+curViewType)
&&
curViewType == 'lfs'
? 'calc(32vw + .1rem)'
: 'calc(16vw + .1rem)'
}`"
}`"
>
>
<a-select
<a-select
...
@@ -44,11 +48,15 @@ export default defineComponent({
...
@@ -44,11 +48,15 @@ export default defineComponent({
if
(
store
.
state
.
curView
.
id
)
{
if
(
store
.
state
.
curView
.
id
)
{
store
.
dispatch
(
'initStationData'
,
store
.
state
.
curView
.
id
)
store
.
dispatch
(
'initStationData'
,
store
.
state
.
curView
.
id
)
}
}
if
(
isNaN
(
+
type
))
{
if
(
isNaN
(
+
type
)
&&
type
!=
'lfs'
)
{
// 小区以外的屏
// 小区以外的屏
router
.
push
({
router
.
push
({
name
:
'main'
,
name
:
'main'
,
})
})
}
else
if
(
isNaN
(
+
type
)
&&
type
==
'lfs'
)
{
router
.
push
({
name
:
'raffles'
,
})
}
else
{
}
else
{
router
.
push
({
router
.
push
({
name
:
'community'
,
name
:
'community'
,
...
@@ -67,20 +75,18 @@ export default defineComponent({
...
@@ -67,20 +75,18 @@ export default defineComponent({
<
style
lang=
"stylus"
>
<
style
lang=
"stylus"
>
@import '../../components/MyComponent/main.styl'
@import '../../components/MyComponent/main.styl'
$bg = rgba(13, 39, 76, 0.7)
$bg = rgba(13, 39, 76, .7)
$size = 0.1rem
$size = .1rem
$height = 0.26rem
$height = .26rem
#site-selector.site-selector
#site-selector.site-selector
position fixed
position fixed
top .45rem
top
0
.45rem
z-index 99
z-index 99
.ant-select
.ant-select
background $bg
background $bg
min-width .9rem
min-width
0
.9rem
.ant-select-selector
.ant-select-selector
min-width .9rem
min-width
0
.9rem
border-top none
border-top none
border-left none
border-left none
border-right none
border-right none
...
...
src/view/raffles/index.vue
View file @
178b5138
...
@@ -10,19 +10,32 @@
...
@@ -10,19 +10,32 @@
<m-animate
enter=
"fadeInLeft"
leave=
"fadeOutLeft"
>
<m-animate
enter=
"fadeInLeft"
leave=
"fadeOutLeft"
>
<LeftSection
:info=
"rafflesDetail"
area=
"left"
/>
<LeftSection
:info=
"rafflesDetail"
area=
"left"
/>
</m-animate>
</m-animate>
<SiteSelector
/>
<m-animate
enter=
"fadeInRight"
leave=
"fadeOutRight"
>
<m-animate
enter=
"fadeInRight"
leave=
"fadeOutRight"
>
<RightSection
:info=
"rafflesDetail"
area=
"right"
/>
<RightSection
:info=
"rafflesDetail"
area=
"right"
/>
</m-animate>
</m-animate>
</m-grid>
</m-grid>
</
template
>
</
template
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
>
import
Title
from
'./title.vue'
import
Title
from
'./title.vue'
import
LeftSection
from
'./left.vue'
import
LeftSection
from
'./left.vue'
import
RightSection
from
'./right.vue'
import
RightSection
from
'./right.vue'
import
{
ajax
,
api
}
from
'@/ajax'
import
{
ajax
,
api
}
from
'@/ajax'
import
{
ref
}
from
'vue'
import
{
ref
,
defineComponent
}
from
'vue'
import
SiteSelector
from
'@/view/community/site-selector.vue'
export
default
defineComponent
({
name
:
'Raffles'
,
components
:
{
SiteSelector
,
},
setup
()
{
return
{}
},
})
</
script
>
<
script
lang=
"ts"
setup
>
const
rafflesDetail
=
ref
<
any
>
({})
const
rafflesDetail
=
ref
<
any
>
({})
ajax
ajax
.
get
({
.
get
({
...
@@ -32,5 +45,4 @@ ajax
...
@@ -32,5 +45,4 @@ ajax
rafflesDetail
.
value
=
res
?.
data
?.
content
?.[
0
]
||
{}
rafflesDetail
.
value
=
res
?.
data
?.
content
?.[
0
]
||
{}
})
})
</
script
>
</
script
>
<
style
lang=
"stylus"
scoped
></
style
>
<
style
lang=
"stylus"
scoped
></
style
>
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