Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
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
pseer
gxpt_wechat
Commits
cf669c5a
Commit
cf669c5a
authored
Mar 15, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
b97a02d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
index.vue
pages/index/index.vue
+19
-8
No files found.
pages/index/index.vue
View file @
cf669c5a
...
@@ -76,10 +76,15 @@
...
@@ -76,10 +76,15 @@
<view
v-else
class=
'cu-tag radius'
<view
v-else
class=
'cu-tag radius'
:class=
"item.status==0?'line-green':item.status==1?'line-orange':'line-blue'"
>
:class=
"item.status==0?'line-green':item.status==1?'line-orange':'line-blue'"
>
{{
roomStatusEnum
[
item
.
status
]
}}
</view>
{{
roomStatusEnum
[
item
.
status
]
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-if=
"item.recordsTime"
class=
"flex-between records-time"
>
<text></text>
<text
class=
"text-sm text-orange"
>
{{
item
.
recordsTime
}}
结束
</text>
</view>
<view
class=
"facilitie-box"
>
<view
class=
"facilitie-box"
>
<view
v-for=
"(val,i) in item.facilities"
:key=
"i"
v-if=
"i
<
=
7
"
<view
v-for=
"(val,i) in item.facilities"
:key=
"i"
v-if=
"i
<
=
7
"
class=
'cu-tag radius bg-brown'
>
class=
'cu-tag radius bg-brown'
>
...
@@ -209,9 +214,9 @@
...
@@ -209,9 +214,9 @@
url
:
this
.
assetsPath
+
"/power.png"
url
:
this
.
assetsPath
+
"/power.png"
},
},
],
],
recordsStatusEnum
:{
recordsStatusEnum
:
{
0
:
"待保洁"
,
0
:
"待保洁"
,
1
:
"保洁中"
1
:
"保洁中"
},
},
options
:
[{
options
:
[{
value
:
'4'
,
value
:
'4'
,
...
@@ -367,6 +372,7 @@
...
@@ -367,6 +372,7 @@
that
.
roomVoList
=
res
.
data
.
data
.
map
(
item
=>
{
that
.
roomVoList
=
res
.
data
.
data
.
map
(
item
=>
{
return
{
return
{
...
item
,
...
item
,
recordsTime
:
item
.
recordsTime
?
moment
(
item
.
recordsTime
).
format
(
"HH:mm"
)
:
""
,
facilities
:
item
.
facilities
?
item
.
facilities
.
split
(
","
)
:
[],
facilities
:
item
.
facilities
?
item
.
facilities
.
split
(
","
)
:
[],
images
:
item
.
images
?
item
.
images
.
split
(
","
).
map
(
val
=>
this
.
hostUrl
+
images
:
item
.
images
?
item
.
images
.
split
(
","
).
map
(
val
=>
this
.
hostUrl
+
val
)
:
[],
val
)
:
[],
...
@@ -924,7 +930,7 @@
...
@@ -924,7 +930,7 @@
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
width
:
240
rpx
;
width
:
240
rpx
;
//
height
:
280
upx
;
min-
height
:
280
upx
;
overflow
:
hidden
;
overflow
:
hidden
;
.room-img
{
.room-img
{
...
@@ -964,7 +970,7 @@
...
@@ -964,7 +970,7 @@
padding
:
0
;
padding
:
0
;
align-items
:
center
;
align-items
:
center
;
min-height
:
88
upx
;
min-height
:
88
upx
;
margin-top
:
10
upx
;
.bg-brown
{
.bg-brown
{
color
:
#c98d35
;
color
:
#c98d35
;
background-color
:
#f8eddd
;
background-color
:
#f8eddd
;
...
@@ -974,6 +980,9 @@
...
@@ -974,6 +980,9 @@
}
}
}
}
.records-time
{
margin-top
:
10
upx
;
}
//
价格
//
价格
.flex-priceBox
{
.flex-priceBox
{
padding
:
0
6
rpx
;
padding
:
0
6
rpx
;
...
@@ -1002,7 +1011,7 @@
...
@@ -1002,7 +1011,7 @@
.item-Go
{
.item-Go
{
display
:
flex
;
display
:
flex
;
width
:
100%
;
width
:
100%
;
display
:
flex
;
flex
:
1
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
...
@@ -1131,10 +1140,12 @@
...
@@ -1131,10 +1140,12 @@
.list-point-box
{
.list-point-box
{
width
:
100%
;
width
:
100%
;
margin-bottom
:
20
upx
;
margin-bottom
:
20
upx
;
.bg-pink{
.bg-pink
{
background-color
:
rgba
(
0
,
0
,
0
,
0.2
);
background-color
:
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
0
3px
rgba
(
0
,
0
,
0
,
0.26
)
inset
;
box-shadow
:
0
0
3px
rgba
(
0
,
0
,
0
,
0.26
)
inset
;
}
}
//
.bg-gray
{
//
.bg-gray
{
//
background-color
:
rgba
(
255
,
255
,
255
,
0.9
);
//
background-color
:
rgba
(
255
,
255
,
255
,
0.9
);
//
}
//
}
...
...
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