Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
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
hooloo
mp
user
Commits
53ad1e95
Commit
53ad1e95
authored
Jun 21, 2022
by
songbingqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 店铺选择 页面
parent
181d417f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
123 additions
and
54 deletions
+123
-54
menuSubPackage/pages/areaSelect/areaSelect.vue
+111
-53
pages.json
+1
-1
pages/menu/menu.vue
+7
-0
pages/mine/mine.vue
+4
-0
static/imgs/qupinchang.png
+0
-0
No files found.
menuSubPackage/pages/areaSelect/areaSelect.vue
View file @
53ad1e95
<
template
>
<view
ew
class=
"product-list"
>
<view
class=
"provice_city"
>
<view
class=
"text"
>
<text>
{{
areaName
.
proviceName
}}
-
</text>
<text
v-show=
"areaName.proviceName!=areaName.cityName"
>
{{
areaName
.
cityName
}}
-
</text>
<text>
{{
areaName
.
disName
}}
</text>
</view>
<view
class=
"icon"
>
<image
:style=
"
{'height':'100%','width':'100%'}" :src="'../../../static/imgs/jiantouhei.png'" />
</view>
</view>
<div
v-for=
"item in list"
:key=
"item.id"
@
click=
"selectedShop(item)"
class=
"shop_item"
>
<div
class=
"header"
>
<h3>
{{
item
.
name
}}
</h3>
<span
v-if=
"item.distance && item.distance!=-1"
>
距离
{{
item
.
distance
}}
</span>
<view
class=
"adressBox"
>
<view>
<u-icon
class=
"map"
name=
"map"
color=
"#999999"
size=
"14"
></u-icon>
</view>
<view
class=
"address"
>
{{
item
.
address
}}
</view>
</view>
<view
class=
"timeBox"
>
<view>
<u-icon
name=
"clock"
color=
"#999999"
size=
"14"
></u-icon>
</view>
<view
class=
"time"
>
{{
item
.
startTime
}}
-
{{
item
.
endTime
}}
</view>
</view>
</div>
<view
class=
"line"
></view>
<div
class=
"dec"
>
<div
class=
"address"
>
{{
item
.
address
}}
</div>
<a
class=
"xaidan"
>
去下单
</a>
</div>
<div
class=
"time"
>
<u-icon
name=
"clock"
color=
"#2979ff"
size=
"16"
></u-icon>
<div>
营业时间:
{{
item
.
startTime
}}
-
{{
item
.
endTime
}}
</div>
<view
:style=
"
{'height':'34rpx'}" v-show="item.distance
&&
item.distance!=-1">
</view>
<view
class=
"goshop"
></view>
<view
:style=
"
{'height':'34rpx'}" class="distance" v-show="item.distance
&&
item.distance!=-1">距离
{{
item
.
distance
}}
</view>
</div>
</div>
</view>
...
...
@@ -25,11 +44,13 @@ export default {
return
{
show
:
true
,
columns
:
[],
list
:
[]
list
:
[],
areaName
:{}
}
},
onShow
()
{
this
.
list
=
uni
.
getStorageSync
(
'shops'
);
this
.
areaName
=
uni
.
getStorageSync
(
'areaName'
)
},
methods
:
{
selectedShop
(
item
)
{
...
...
@@ -42,72 +63,108 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.product-list
{
background
:
#F2F2F2
;
height
:
100vh
;
overflow
:
auto
;
}
.provice_city
{
height
:
62
rpx
;
background
:
#FFFFFF
;
display
:
flex
;
justify-content
:
flex-start
;
padding
:
12
rpx
32
rpx
;
align-items
:
center
;
.text{
font-size
:
26
rpx
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
font-weight
:
600
;
color
:
#000000
;
line-height
:
36
rpx
;
}
.icon
{
width
:
22
rpx
;
margin-left
:
16
rpx
;
height
:
24
rpx
;
display
:
flex
;
align-items
:
center
;
}
}
.shop_item
{
width
:
90%
;
height
:
264
rpx
;
min-
height
:
264
rpx
;
background
:
#FFFFFF
;
border-radius
:
10
rpx
;
border
:
2
rpx
solid
#006ECF
;
padding
:
32
rpx
;
border
:
1px
solid
#003AE9
;
padding
:
25
rpx
32
rpx
;
box-sizing
:
border-box
;
margin
:
30
rpx
auto
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
.header
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-right
:
30
rpx
;
h3
{
font-size
:
28
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#
000000
;
color
:
#
333333
;
}
span
{
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#666666
;
.adressBox
{
width
:
348
rpx
;
margin-top
:
14
rpx
;
display
:
flex
;
justify-content
:
flex-start
;
.address{
margin-left
:
12
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
}
}
.timeBox
{
margin-top
:
11
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-start
;
.time{
margin-left
:
12
rpx
;
font-size
:
24
rpx
;
font-family
:
ArialMT
;
color
:
#999999
;
}
}
}
.line
{
height
:
146
rpx
;
border
:
1
rpx
solid
#979797
;
}
.dec
{
margin-left
:
43
rpx
;
display
:
flex
;
justify-content
:
space-between
;
margin-top
:
22
rpx
;
.address
{
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
flex-direction
:
column
;
height
:
146
rpx
;
justify-content
:
space-around
;
view{
vertical-align
:
baseline
;
}
.goshop
{
width
:
167
rpx
;
height
:
64
rpx
;
background
:
url('@/static/imgs/qupinchang.png')
center
center
no-repeat
;
}
.
xaidan
{
.
distance
{
font-size
:
24
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#FFFFFF
;
width
:
150
rpx
;
min-width
:
150
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
text-align
:
center
;
height
:
40
rpx
;
line-height
:
40
rpx
;
background
:
#006ECF
;
border-radius
:
6px
;
display
:
block
;
margin-left
:
20
rpx
;
line-height
:
50
rpx
;
}
}
.time
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
font-size
:
20
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
margin-top
:
30
rpx
;
}
}
</
style
>
\ No newline at end of file
pages.json
View file @
53ad1e95
...
...
@@ -42,7 +42,7 @@
{
"path"
:
"pages/areaSelect/areaSelect"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"navigationBarTitleText"
:
"
选择门店
"
,
"enablePullDownRefresh"
:
false
}
}
...
...
pages/menu/menu.vue
View file @
53ad1e95
...
...
@@ -188,10 +188,17 @@ export default {
changeHandler
()
{
},
confirm
(
res
)
{
const
{
value
}
=
res
;
console
.
log
(
value
)
const
areaName
=
{
proviceName
:
value
[
0
]
&&
value
[
0
].
name
,
cityName
:
value
[
1
]
&&
value
[
1
].
name
,
disName
:
value
[
2
]
&&
value
[
2
].
name
}
const
shops
=
value
[
2
].
shops
;
this
.
show
=
false
;
// console.log(shops);
uni
.
setStorageSync
(
'shops'
,
shops
);
uni
.
setStorageSync
(
'areaName'
,
areaName
);
uni
.
navigateTo
({
url
:
'/menuSubPackage/pages/areaSelect/areaSelect'
})
},
// 手机号授权登录
...
...
pages/mine/mine.vue
View file @
53ad1e95
...
...
@@ -167,6 +167,7 @@ button::after {
}
.mod11
{
border-radius
:
0
rpx
;
box-sizing
:
border-box
;
padding
:
32
rpx
;
width
:
686
rpx
;
...
...
@@ -195,6 +196,9 @@ button::after {
border-radius
:
50%
;
}
}
.mod11
::after
{
border-radius
:
0
rpx
;
}
.contents
{
display
:
flex
;
...
...
static/imgs/qupinchang.png
0 → 100644
View file @
53ad1e95
1.29 KB
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