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
9d82608f
Commit
9d82608f
authored
Mar 21, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
界面优化
parent
f16af687
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
109 additions
and
51 deletions
+109
-51
index.vue
pages/index/index.vue
+94
-39
order.vue
pages/order/order.vue
+14
-11
orderResult.vue
pages/orderResult/orderResult.vue
+1
-1
No files found.
pages/index/index.vue
View file @
9d82608f
...
@@ -46,15 +46,33 @@
...
@@ -46,15 +46,33 @@
<image
:src=
"assetsPath +'/banner2.png'"
mode=
"widthFix"
></image>
<image
:src=
"assetsPath +'/banner2.png'"
mode=
"widthFix"
></image>
</view>
</view>
<view
class=
"flex-col list-box"
>
<view
class=
"flex-col list-box"
>
<view
class=
"title titleStyle"
>
<!--
<view
class=
"title titleStyle"
>
<text
class=
"text-title"
>
房间预览
</text>
<text
class=
"text-title"
>
房间预览
</text>
</view>
</view>
-->
<view
v-for=
"(item,index) in roomVoList"
:key=
"index"
class=
"list-item-box"
<view
v-for=
"(item,index) in roomVoList"
:key=
"index"
class=
"list-item-box"
@
tap=
"onNavToOrder(item)"
>
@
tap=
"onNavToOrder(item)"
>
<view
class=
"itemRow listStyle"
>
<view
class=
"itemRow listStyle"
>
<view
class=
"relative part-top"
>
<view
class=
"relative part-top"
>
<image
class=
"room-img"
:src=
"item.images[0]"
mode=
"aspectFill"
<image
class=
"room-img"
:src=
"item.images[0]"
mode=
"aspectFill"
@
tap
.
stop=
"onPreview(item.images)"
></image>
@
tap
.
stop=
"onPreview(item.images)"
></image>
<view
class=
"absolute"
>
<view
class=
'status-bg bg-gray'
v-if=
"item.roomStat >= 3"
>
维护
</view>
<view
class=
'status-bg bg-red'
v-else-if=
"item.isDirtyRoom >= 1"
>
未保洁
</view>
<view
v-else-if=
"item.recordsStatus>=0"
class=
"status-bg bg-red"
>
{{
recordsStatusEnum
[
item
.
recordsStatus
]
}}
</view>
<view
v-else
class=
'status-bg'
:class=
"item.status==0?'bg-green':item.status==1?'bg-pink':'bg-blue'"
>
{{
roomStatusEnum
[
item
.
status
]
}}
{{
item
.
recordsTime
?
'('
+
item
.
recordsTime
+
'结束)'
:
''
}}
</view>
</view>
</view>
</view>
<view
class=
"flex-col part-bottom"
>
<view
class=
"flex-col part-bottom"
>
<view
class=
"flex-between room-title"
>
<view
class=
"flex-between room-title"
>
...
@@ -62,7 +80,9 @@
...
@@ -62,7 +80,9 @@
<text>
{{
item
.
name
}}{{
item
.
roomType
?
'【'
+
roomTypeEnum
[
item
.
roomType
]
+
'】'
:
''
}}
</text>
<text>
{{
item
.
name
}}{{
item
.
roomType
?
'【'
+
roomTypeEnum
[
item
.
roomType
]
+
'】'
:
''
}}
</text>
</view>
</view>
<view
class=
"price"
>
<view
class=
"price"
>
<view
class=
""
>
<!--
<text
v-if=
"item.recordsTime"
class=
"text-sm text-orange text-bold"
>
{{
item
.
recordsTime
}}
结束
</text>
-->
<!--
<view
class=
""
>
<view
class=
'cu-tag radius line-orange'
v-if=
"item.roomStat >= 3"
>
<view
class=
'cu-tag radius line-orange'
v-if=
"item.roomStat >= 3"
>
维护
维护
</view>
</view>
...
@@ -78,13 +98,13 @@
...
@@ -78,13 +98,13 @@
: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
]
}}
{{
roomStatusEnum
[
item
.
status
]
}}
</view>
</view>
</view>
</view>
-->
</view>
</view>
</view>
</view>
<view
v-if=
"item.recordsTime"
class=
"flex-between records-time"
>
<
!--
<
view
v-if=
"item.recordsTime"
class=
"flex-between records-time"
>
<text></text>
<text></text>
<text
class=
"text-sm text-orange text-bold"
>
{{
item
.
recordsTime
}}
结束
</text>
<text
class=
"text-sm text-orange text-bold"
>
{{
item
.
recordsTime
}}
结束
</text>
</view>
</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'
>
...
@@ -94,24 +114,28 @@
...
@@ -94,24 +114,28 @@
<view
class=
"item-Go"
>
<view
class=
"item-Go"
>
<view
class=
"flex-row room-type"
>
<view
class=
"flex-row room-type"
>
<view
class=
"flex-col"
>
<view
class=
"flex-col
flex-1
"
>
<view
v-for=
"(val,i) in item.packList"
:key=
"i"
v-if=
"i
<2
"
class=
"item"
>
<view
v-for=
"(val,i) in item.packList"
:key=
"i"
v-if=
"i
<2
"
class=
"item"
>
<view
class=
"part-2"
>
<view
class=
"part-2"
>
<text
class=
"text-sm"
>
{{
val
.
duration
}}
小时套餐:
</text>
<text
class=
"text-sm"
>
{{
val
.
duration
}}
小时套餐:
</text>
<text
class=
"text-red text-bold text-xl"
>
{{
val
.
price
}}
元
</text>
<text
class=
"text-red text-sm margin-left-sm"
>
¥
</text>
<text
class=
"text-red text-bold text-xl"
>
{{
val
.
price
}}
</text>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"confirm"
>
<button
class=
"cu-btn"
>
预定
</button>
</view>
</view>
</view>
</view>
</view>
<view
class=
"flex-between confirm-box"
>
<!--
<view
class=
"flex-between confirm-box"
>
<view
class=
"flex-priceBox"
></view>
<view
class=
"flex-priceBox"
></view>
<view
class=
"confirm"
>
<view
class=
"confirm"
>
<button
class=
"cu-btn"
>
预定
</button>
<button
class=
"cu-btn"
>
预定
</button>
</view>
</view>
</view>
</view>
-->
</view>
</view>
</view>
</view>
<view
class=
"flex-row list-point-box"
>
<view
class=
"flex-row list-point-box"
>
...
@@ -529,7 +553,7 @@
...
@@ -529,7 +553,7 @@
<
style
>
<
style
>
page
{
page
{
background-color
:
#f
5f5f5
;
background-color
:
#f
9f9f9
;
}
}
</
style
>
</
style
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
@@ -565,12 +589,13 @@
...
@@ -565,12 +589,13 @@
justify-content
:
center
;
justify-content
:
center
;
width
:
100%
;
width
:
100%
;
min-height
:
280
upx
;
min-height
:
280
upx
;
backdrop-filter
:
blur
(
5px
);
background-color
:
#E40583
;
background-color
:
#E40583
;
image
{
image
{
display
:
block
;
display
:
block
;
width
:
100%
;
width
:
100%
;
height
:
auto
;
height
:
auto
;
backdrop-filter
:
blur
(
5px
);
}
}
}
}
...
@@ -753,14 +778,16 @@
...
@@ -753,14 +778,16 @@
//
position
:
relative
;
//
position
:
relative
;
//
display
:
flex
;
//
display
:
flex
;
//
flex-direction
:
column
;
//
flex-direction
:
column
;
width
:
92
%
;
width
:
100
%
;
//
min-height
:
314
upx
;
//
min-height
:
314
upx
;
background-color
:
#FBF6EE
;
//
background-color
:
#FBF6EE
;
background
:
linear-gradient
(
to
bottom
,
rgba
(
229
,
38
,
139
,
0.08
),
#ffffff
);
border-radius
:
14
upx
;
border-radius
:
14
upx
;
overflow
:
hidden
;
overflow
:
hidden
;
margin
:
0
0
20
upx
0
;
margin
:
0
0
20
upx
0
;
padding
:
0
12
upx
;
padding
:
0
12
upx
;
border
:
2
upx
solid
#DBA556
;
box-shadow
:
0
0
6
upx
rgba
(
0
,
0
,
0
,
0.12
);
//
border
:
2
upx
solid
#DBA556
;
.part-top
{
.part-top
{
position
:
relative
;
position
:
relative
;
...
@@ -900,7 +927,6 @@
...
@@ -900,7 +927,6 @@
}
}
}
}
//
陈晨增加样式
.titleStyle
{
.titleStyle
{
padding
:
20
rpx
0
;
padding
:
20
rpx
0
;
margin
:
0
!important
;
margin
:
0
!important
;
...
@@ -930,13 +956,43 @@
...
@@ -930,13 +956,43 @@
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
width
:
240
rpx
;
width
:
240
rpx
;
min-height
:
280
upx
;
min-height
:
300
upx
;
border-radius
:
12
upx
;
overflow
:
hidden
;
overflow
:
hidden
;
.room-img
{
.room-img
{
width
:
inherit
;
height
:
100%
;
height
:
96%
;
}
border-radius
:
12
rpx
!important
;
.absolute
{
position
:
absolute
;
top
:
auto
;
left
:
0
;
bottom
:
0
;
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
height
:
60
upx
;
.status-bg{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
width
:
100%
;
height
:
100%
;
}
.bg-gray
{
background
:
rgba
(
136
,
136
,
136
,
0.96
);
color
:
#ffffff
;
}
.bg-pink
{
background
:
rgba
(
230
,
58
,
159
,
0.8
);
}
.bg-green
{
background
:
rgba
(
57
,
181
,
74
,
0.8
);
}
.bg-red
{
background
:
rgba
(
229
,
77
,
66
,
0.8
);
}
}
}
}
}
...
@@ -959,7 +1015,7 @@
...
@@ -959,7 +1015,7 @@
align-items
:
center
;
align-items
:
center
;
text
{
text
{
color
:
#9e9e9e
;
//
color
:
#9e9e9e
;
}
}
}
}
...
@@ -972,8 +1028,9 @@
...
@@ -972,8 +1028,9 @@
min-height
:
88
upx
;
min-height
:
88
upx
;
margin-top
:
10
upx
;
margin-top
:
10
upx
;
.bg-brown
{
.bg-brown
{
color
:
#c98d35
;
color
:
rgba
(
185
,
75
,
112
,
0.9
);
background-color
:
#f8eddd
;
background-color
:
transparent
;
border
:
1
upx
solid
rgba
(
185
,
75
,
112
,
0.9
);
margin
:
4
upx
;
margin
:
4
upx
;
padding
:
0
8
upx
;
padding
:
0
8
upx
;
height
:
36
upx
;
height
:
36
upx
;
...
@@ -1052,11 +1109,6 @@
...
@@ -1052,11 +1109,6 @@
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
>.flex-col
{
width
:
100%
;
}
.item
{
.item
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
...
@@ -1118,15 +1170,16 @@
...
@@ -1118,15 +1170,16 @@
.confirm
{
.confirm
{
.cu-btn
{
.cu-btn
{
padding
:
0
10
upx
0
14
upx
;
padding
:
8
upx
20
upx
;
height
:
52
rpx
;
height
:
52
rpx
;
background
:
linear-gradient
(
97deg
,
#E5268B
,
#FD5661
);
background
:
linear-gradient
(
97deg
,
#E5268B
,
#FD5661
);
color
:
#ffffff
;
color
:
#ffffff
;
letter-spacing
:
8
upx
;
letter-spacing
:
4
upx
;
font-size
:
3
2
upx
;
font-size
:
3
0
upx
;
text-align
:
center
;
text-align
:
center
;
opacity
:
0.95
;
opacity
:
0.95
;
border-radius
:
12
rpx
;
border-radius
:
12
rpx
;
margin-right
:
10
upx
;
}
}
.text-lg
{
.text-lg
{
...
@@ -1142,22 +1195,24 @@
...
@@ -1142,22 +1195,24 @@
margin-bottom
:
20
upx
;
margin-bottom
:
20
upx
;
.bg-pink
{
.bg-pink
{
background-color
:
rgba
(
0
,
0
,
0
,
0.2
);
background-color
:
rgba
(
185
,
75
,
112
,
0.7
);
box-shadow
:
0
0
3px
rgba
(
0
,
0
,
0
,
0.26
)
inset
;
//
background-color
:
#fad2bb
;
}
}
//
.bg-gray
{
.bg-gray
{
//
background-color
:
rgba
(
255
,
255
,
255
,
0.9
);
//
background-color
:
rgba
(
229
,
229
,
229
,
0.9
);
//
}
background-color
:
transparent
;
border
:
1px
solid
#e5e5e5
;
}
.flex-col
{
.flex-col
{
align-items
:
center
;
align-items
:
center
;
}
}
.box
{
.box
{
margin
:
0
2
upx
6
upx
;
margin
:
0
2
upx
6
upx
;
width
:
10px
;
width
:
90%
;
height
:
1
0
px
;
height
:
1
2
px
;
border-radius
:
5px
;
border-radius
:
5
u
px
;
}
}
.text-sm
{
.text-sm
{
...
...
pages/order/order.vue
View file @
9d82608f
...
@@ -1918,12 +1918,13 @@
...
@@ -1918,12 +1918,13 @@
display
:
flex
;
display
:
flex
;
width
:
12px
;
width
:
12px
;
height
:
12px
;
height
:
12px
;
border-radius
:
5
0%
;
border-radius
:
5
upx
;
margin-right
:
12
upx
;
margin-right
:
12
upx
;
}
}
.pink
{
.pink
{
background-color
:
#e03997
;
//
background-color
:
#fad2bb
;
background-color
:
rgba
(
185
,
75
,
112
,
0.7
);
}
}
.blank
{
.blank
{
...
@@ -1931,7 +1932,8 @@
...
@@ -1931,7 +1932,8 @@
}
}
.gray
{
.gray
{
background-color
:
#bfbfbf
;
//
background-color
:
#bfbfbf
;
background-color
:
rgba
(
197
,
197
,
197
,
0.9
);
}
}
.error
{
.error
{
...
@@ -1946,16 +1948,14 @@
...
@@ -1946,16 +1948,14 @@
.date-point-item
{
.date-point-item
{
display
:
flex
;
display
:
flex
;
flex
:
1
;
flex-direction
:
column
;
flex-direction
:
column
;
width
:
4.16666%
;
align-items
:
center
;
align-items
:
center
;
margin
:
12
upx
0
;
.date-point
{
.date-point
{
display
:
flex
;
display
:
flex
;
width
:
10px
;
width
:
90%
;
height
:
1
0
px
;
height
:
1
2
px
;
border-radius
:
5px
;
border-radius
:
5
u
px
;
margin-bottom
:
8
upx
;
margin-bottom
:
8
upx
;
}
}
...
@@ -1964,11 +1964,14 @@
...
@@ -1964,11 +1964,14 @@
}
}
.used
{
.used
{
background-color
:
#bfbfbf
;
//
background-color
:
#bfbfbf
;
background-color
:
rgba
(
197
,
197
,
197
,
0.7
);
}
}
.checked
{
.checked
{
background-color
:
#e03997
;
//
background-color
:
#e03997
;
//
background-color
:
#fad2bb
;
background-color
:
rgba
(
185
,
75
,
112
,
0.7
);
}
}
.error
{
.error
{
...
...
pages/orderResult/orderResult.vue
View file @
9d82608f
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
<view
class=
"part"
>
<view
class=
"part"
>
<button
class=
"cu-btn block round bg-pink lg"
:class=
"openDoorStatus?'bg-gray':'bg-pink'"
@
tap=
"onOpenDoor"
>
进店开门
</button>
<button
class=
"cu-btn block round bg-pink lg"
:class=
"openDoorStatus?'bg-gray':'bg-pink'"
@
tap=
"onOpenDoor"
>
进店开门
</button>
</view>
</view>
<view
class=
"part"
>
<view
class=
"part"
>
<button
class=
"cu-btn block round line-pink lg"
open-type=
"share"
>
分享好友
</button>
<button
class=
"cu-btn block round line-pink lg"
open-type=
"share"
>
分享好友
</button>
</view>
</view>
<view
v-if=
"orderInfo.status === 1 && userInfo.id == orderInfo.consumerId"
class=
"part"
>
<view
v-if=
"orderInfo.status === 1 && userInfo.id == orderInfo.consumerId"
class=
"part"
>
...
...
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