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
12b47549
Commit
12b47549
authored
Apr 03, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
b5cecb6f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
13 deletions
+41
-13
popStoreList.vue
components/storeList/popStoreList.vue
+31
-10
index.vue
pages/index/index.vue
+2
-2
order.vue
pages/order/order.vue
+8
-1
No files found.
components/storeList/popStoreList.vue
View file @
12b47549
<
template
>
<view
class=
"store-list-content"
>
<scroll-view
class=
"scroll-view"
scroll-y=
"true"
>
<view
class=
"store-list"
>
<view
class=
"flex-col"
v-for=
"(val,i) in list"
:key=
"i"
@
tap
.
stop=
"onNavToHome(val)"
>
<view
class=
"flex-row"
>
...
...
@@ -24,14 +26,15 @@
<view
class=
"flex-between part-title"
>
<view
class=
'cu-tag radius line-pink'
>
距离
{{
Number
(
val
.
distance
).
toFixed
(
2
)
}}
km
</view>
<view
class=
"location"
>
<button
class=
"cu-btn bg-pink"
>
去预定
</button>
<button
class=
"cu-btn bg-pink"
>
去预定
</button>
</view>
</view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
</
template
>
<
script
>
...
...
@@ -52,7 +55,7 @@
return
{
assetsPath
:
config
.
assetsPath
,
list
:
[],
storeTypeEnum
:{},
storeTypeEnum
:
{},
};
},
watch
:
{
...
...
@@ -65,14 +68,14 @@
},
mounted
()
{
let
dicts
=
JSON
.
parse
(
uni
.
getStorageSync
(
'dicts'
))
this
.
storeTypeEnum
=
getDictItem
(
dicts
,
"store_type"
);
this
.
storeTypeEnum
=
getDictItem
(
dicts
,
"store_type"
);
},
methods
:
{
onLoading
()
{
this
.
list
=
this
.
value
;
},
onNavToHome
(
val
){
this
.
$emit
(
"change"
,
val
.
id
)
onNavToHome
(
val
)
{
this
.
$emit
(
"change"
,
val
.
id
)
},
onPreview
(
item
)
{
uni
.
previewImage
({
...
...
@@ -86,7 +89,7 @@
longitude
:
Number
(
val
.
longitude
),
scale
:
18
,
name
:
val
.
address
,
address
:
val
.
address
,
address
:
val
.
address
,
success
:
(
res
)
=>
{
console
.
log
(
res
)
},
...
...
@@ -100,10 +103,24 @@
</
script
>
<
style
lang=
"scss"
scoped
>
.store-list-content
{
width
:
100%
;
height
:
100%
;
}
.scroll-view
{
position
:
relative
;
width
:
100%
;
height
:
100%
;
}
.store-list
{
position
:
absolute
;
top
:
0
;
left
:
2%
;
display
:
flex
;
flex-direction
:
column
;
width
:
100%
;
width
:
96%
;
>.flex-col
{
display
:
flex
;
flex-direction
:
column
;
...
...
@@ -114,6 +131,7 @@
overflow
:
hidden
;
padding
:
12
upx
;
margin
:
12
upx
0
;
.room-img-box
{
display
:
flex
;
width
:
200
upx
;
...
...
@@ -121,6 +139,7 @@
border-radius
:
12
upx
;
overflow
:
hidden
;
margin
:
0
20
upx
0
0
;
image
{
height
:
100%
;
}
...
...
@@ -196,12 +215,14 @@
}
}
}
.nav-icon
{
.nav-icon
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
width
:
80
upx
;
image{
image
{
display
:
block
;
width
:
100%
;
height
:
auto
;
...
...
pages/index/index.vue
View file @
12b47549
...
...
@@ -183,11 +183,11 @@
</view>
</view>
<view
class=
"tip-text"
>
<text
class=
"text-title text-lg"
>
本店当前时段所有包厢已被
占用
,您可以预约本店的其他时段,或者预定凑角附近的其它门店。
</text>
<text
class=
"text-title text-lg"
>
本店当前时段所有包厢已被
预定
,您可以预约本店的其他时段,或者预定凑角附近的其它门店。
</text>
</view>
<!-- 展示所有房间列表 -->
<view
class=
"store-box"
>
<StoreList
v-model=
"popStoreList"
@
change=
"onStoreChage"
></StoreList>
<StoreList
style=
"width: 100%;"
v-model=
"popStoreList"
@
change=
"onStoreChage"
></StoreList>
</view>
</view>
</uni-popup>
...
...
pages/order/order.vue
View file @
12b47549
...
...
@@ -1899,10 +1899,17 @@
font-size
:
32
upx
;
}
.line-black
{
border
:
1px
solid
#e03997
;
color
:
#e03997
;
}
.line-black
::after
{
border-color
:
transparent
;
}
.line-pink
{
display
:
flex
;
align-items
:
center
;
//
border-color
:
#e03997
;
.cuIcon-edit
{
margin-bottom
:
7
upx
;
margin-left
:
12
upx
;
...
...
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