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 @@
<image
:src=
"assetsPath +'/banner2.png'"
mode=
"widthFix"
></image>
</view>
<view
class=
"flex-col list-box"
>
<view
class=
"title titleStyle"
>
<!--
<view
class=
"title titleStyle"
>
<text
class=
"text-title"
>
房间预览
</text>
</view>
</view>
-->
<view
v-for=
"(item,index) in roomVoList"
:key=
"index"
class=
"list-item-box"
@
tap=
"onNavToOrder(item)"
>
<view
class=
"itemRow listStyle"
>
<view
class=
"relative part-top"
>
<image
class=
"room-img"
:src=
"item.images[0]"
mode=
"aspectFill"
@
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
class=
"flex-col part-bottom"
>
<view
class=
"flex-between room-title"
>
...
...
@@ -62,7 +80,9 @@
<text>
{{
item
.
name
}}{{
item
.
roomType
?
'【'
+
roomTypeEnum
[
item
.
roomType
]
+
'】'
:
''
}}
</text>
</view>
<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>
...
...
@@ -78,13 +98,13 @@
:class=
"item.status==0?'line-green':item.status==1?'line-orange':'line-blue'"
>
{{
roomStatusEnum
[
item
.
status
]
}}
</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
class=
"text-sm text-orange text-bold"
>
{{
item
.
recordsTime
}}
结束
</text>
</view>
</view>
-->
<view
class=
"facilitie-box"
>
<view
v-for=
"(val,i) in item.facilities"
:key=
"i"
v-if=
"i
<
=
7
"
class=
'cu-tag radius bg-brown'
>
...
...
@@ -94,24 +114,28 @@
<view
class=
"item-Go"
>
<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
class=
"part-2"
>
<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
class=
"confirm"
>
<button
class=
"cu-btn"
>
预定
</button>
</view>
</view>
</view>
<view
class=
"flex-between confirm-box"
>
<!--
<view
class=
"flex-between confirm-box"
>
<view
class=
"flex-priceBox"
></view>
<view
class=
"confirm"
>
<button
class=
"cu-btn"
>
预定
</button>
</view>
</view>
</view>
-->
</view>
</view>
<view
class=
"flex-row list-point-box"
>
...
...
@@ -529,7 +553,7 @@
<
style
>
page
{
background-color
:
#f
5f5f5
;
background-color
:
#f
9f9f9
;
}
</
style
>
<
style
lang=
"scss"
scoped
>
...
...
@@ -565,12 +589,13 @@
justify-content
:
center
;
width
:
100%
;
min-height
:
280
upx
;
backdrop-filter
:
blur
(
5px
);
background-color
:
#E40583
;
image
{
display
:
block
;
width
:
100%
;
height
:
auto
;
backdrop-filter
:
blur
(
5px
);
}
}
...
...
@@ -753,14 +778,16 @@
//
position
:
relative
;
//
display
:
flex
;
//
flex-direction
:
column
;
width
:
92
%
;
width
:
100
%
;
//
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
;
overflow
:
hidden
;
margin
:
0
0
20
upx
0
;
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
{
position
:
relative
;
...
...
@@ -900,7 +927,6 @@
}
}
//
陈晨增加样式
.titleStyle
{
padding
:
20
rpx
0
;
margin
:
0
!important
;
...
...
@@ -930,13 +956,43 @@
justify-content
:
center
;
align-items
:
center
;
width
:
240
rpx
;
min-height
:
280
upx
;
min-height
:
300
upx
;
border-radius
:
12
upx
;
overflow
:
hidden
;
.room-img
{
width
:
inherit
;
height
:
96%
;
border-radius
:
12
rpx
!important
;
height
:
100%
;
}
.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 @@
align-items
:
center
;
text
{
color
:
#9e9e9e
;
//
color
:
#9e9e9e
;
}
}
...
...
@@ -972,8 +1028,9 @@
min-height
:
88
upx
;
margin-top
:
10
upx
;
.bg-brown
{
color
:
#c98d35
;
background-color
:
#f8eddd
;
color
:
rgba
(
185
,
75
,
112
,
0.9
);
background-color
:
transparent
;
border
:
1
upx
solid
rgba
(
185
,
75
,
112
,
0.9
);
margin
:
4
upx
;
padding
:
0
8
upx
;
height
:
36
upx
;
...
...
@@ -1052,11 +1109,6 @@
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
>.flex-col
{
width
:
100%
;
}
.item
{
display
:
flex
;
flex-direction
:
row
;
...
...
@@ -1118,15 +1170,16 @@
.confirm
{
.cu-btn
{
padding
:
0
10
upx
0
14
upx
;
padding
:
8
upx
20
upx
;
height
:
52
rpx
;
background
:
linear-gradient
(
97deg
,
#E5268B
,
#FD5661
);
color
:
#ffffff
;
letter-spacing
:
8
upx
;
font-size
:
3
2
upx
;
letter-spacing
:
4
upx
;
font-size
:
3
0
upx
;
text-align
:
center
;
opacity
:
0.95
;
border-radius
:
12
rpx
;
margin-right
:
10
upx
;
}
.text-lg
{
...
...
@@ -1142,22 +1195,24 @@
margin-bottom
:
20
upx
;
.bg-pink
{
background-color
:
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
0
3px
rgba
(
0
,
0
,
0
,
0.26
)
inset
;
background-color
:
rgba
(
185
,
75
,
112
,
0.7
);
//
background-color
:
#fad2bb
;
}
//
.bg-gray
{
//
background-color
:
rgba
(
255
,
255
,
255
,
0.9
);
//
}
.bg-gray
{
//
background-color
:
rgba
(
229
,
229
,
229
,
0.9
);
background-color
:
transparent
;
border
:
1px
solid
#e5e5e5
;
}
.flex-col
{
align-items
:
center
;
}
.box
{
margin
:
0
2
upx
6
upx
;
width
:
10px
;
height
:
1
0
px
;
border-radius
:
5px
;
width
:
90%
;
height
:
1
2
px
;
border-radius
:
5
u
px
;
}
.text-sm
{
...
...
pages/order/order.vue
View file @
9d82608f
...
...
@@ -1918,12 +1918,13 @@
display
:
flex
;
width
:
12px
;
height
:
12px
;
border-radius
:
5
0%
;
border-radius
:
5
upx
;
margin-right
:
12
upx
;
}
.pink
{
background-color
:
#e03997
;
//
background-color
:
#fad2bb
;
background-color
:
rgba
(
185
,
75
,
112
,
0.7
);
}
.blank
{
...
...
@@ -1931,7 +1932,8 @@
}
.gray
{
background-color
:
#bfbfbf
;
//
background-color
:
#bfbfbf
;
background-color
:
rgba
(
197
,
197
,
197
,
0.9
);
}
.error
{
...
...
@@ -1946,16 +1948,14 @@
.date-point-item
{
display
:
flex
;
flex
:
1
;
flex-direction
:
column
;
width
:
4.16666%
;
align-items
:
center
;
margin
:
12
upx
0
;
.date-point
{
display
:
flex
;
width
:
10px
;
height
:
1
0
px
;
border-radius
:
5px
;
width
:
90%
;
height
:
1
2
px
;
border-radius
:
5
u
px
;
margin-bottom
:
8
upx
;
}
...
...
@@ -1964,11 +1964,14 @@
}
.used
{
background-color
:
#bfbfbf
;
//
background-color
:
#bfbfbf
;
background-color
:
rgba
(
197
,
197
,
197
,
0.7
);
}
.checked
{
background-color
:
#e03997
;
//
background-color
:
#e03997
;
//
background-color
:
#fad2bb
;
background-color
:
rgba
(
185
,
75
,
112
,
0.7
);
}
.error
{
...
...
pages/orderResult/orderResult.vue
View file @
9d82608f
...
...
@@ -98,7 +98,7 @@
<view
class=
"part"
>
<button
class=
"cu-btn block round bg-pink lg"
:class=
"openDoorStatus?'bg-gray':'bg-pink'"
@
tap=
"onOpenDoor"
>
进店开门
</button>
</view>
<view
class=
"part"
>
<view
class=
"part"
>
<button
class=
"cu-btn block round line-pink lg"
open-type=
"share"
>
分享好友
</button>
</view>
<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