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
bd6f7e59
Commit
bd6f7e59
authored
Jun 30, 2022
by
weijiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化UI
parent
d677557b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
74 additions
and
53 deletions
+74
-53
components/menuAssembly/index.vue
+2
-1
menuSubPackage/pages/areaSelect/areaSelect.vue
+54
-39
menuSubPackage/pages/goodsDetail/goodsDetail.vue
+5
-2
orderSubPackage/pages/orderInfo/index.vue
+5
-3
pages/menu/menu.vue
+4
-4
pages/mine/mine.vue
+2
-2
pages/order/order.vue
+1
-1
request/order/index.js
+1
-1
No files found.
components/menuAssembly/index.vue
View file @
bd6f7e59
...
@@ -366,7 +366,8 @@ export default {
...
@@ -366,7 +366,8 @@ export default {
.addbox
{
.addbox
{
//
line-height
:
26
rpx
;
//
line-height
:
26
rpx
;
//
margin-top
:
20
rpx
;
//
margin-top
:
20
rpx
;
.add{
.add
{
margin-right
:
-1
rpx
;
width
:
40
rpx
;
width
:
40
rpx
;
height
:
40
rpx
;
height
:
40
rpx
;
margin-top
:
1
rpx
;
margin-top
:
1
rpx
;
...
...
menuSubPackage/pages/areaSelect/areaSelect.vue
View file @
bd6f7e59
...
@@ -7,30 +7,26 @@
...
@@ -7,30 +7,26 @@
<text>
{{
areaName
.
disName
}}
</text>
<text>
{{
areaName
.
disName
}}
</text>
</view>
</view>
<view
class=
"icon"
>
<view
class=
"icon"
>
<image
:style=
"
{'height':'100%','width':'100%'}" :src="'../../../static/imgs/jiantouhei.png'" />
<image
:style=
"
{'height':'100%','width':'100%'}" :src="'../../../static/imgs/jiantouhei
2
.png'" />
</view>
</view>
</view>
</view>
<div
v-for=
"item in list"
:key=
"item.id"
@
click=
"selectedShop(item)"
class=
"shop_item"
>
<div
v-for=
"item in list"
:key=
"item.id"
@
click=
"selectedShop(item)"
class=
"shop_item"
:class=
"shopId==item.id?'active':''"
>
<div
class=
"header"
>
<div
class=
"header"
>
<view
class=
"name"
>
{{
item
.
name
}}
</view>
<view
class=
"name"
>
{{
item
.
name
}}
</view>
<view
class=
"adressBox"
>
<view
class=
"adressBox"
>
<view
class=
"map"
>
<view
class=
"map"
><u-icon
name=
"map"
color=
"#999999"
size=
"12"
></u-icon></view>
<u-icon
name=
"map"
color=
"#999999"
size=
"12"
></u-icon>
</view>
<view
class=
"address"
>
{{
item
.
address
}}
</view>
<view
class=
"address"
>
{{
item
.
address
}}
</view>
</view>
</view>
<view
class=
"timeBox"
>
<view
class=
"timeBox"
>
<view
class=
"clock"
>
<view
class=
"clock"
><u-icon
name=
"clock"
color=
"#999999"
size=
"10"
></u-icon></view>
<u-icon
name=
"clock"
color=
"#999999"
size=
"10"
></u-icon>
</view>
<view
class=
"time"
>
{{
item
.
startTime
}}
-
{{
item
.
endTime
}}
</view>
<view
class=
"time"
>
{{
item
.
startTime
}}
-
{{
item
.
endTime
}}
</view>
</view>
</view>
</div>
</div>
<view
class=
"line"
></view
>
<view
class=
"line"
/
>
<div
class=
"dec"
>
<div
class=
"dec"
>
<view
:style=
"
{'height':'34rpx'}" v-show="item.distance
&&
item.distance!=-1">
</view>
<view
:style=
"
{'height':'34rpx'}"
class="distance1"
v-show="item.distance
&&
item.distance!=-1">
</view>
<view
class=
"goshop"
>
去品尝
</view>
<view
class=
"goshop"
>
去品尝
</view>
<view
:style=
"
{'height':'3
0rpx'}" class="distance" v-show="item.distance
&&
item.distance!=-1">距离
{{
item
.
distance
}}
</view>
<view
:style=
"
{'height':'3
4rpx'}" class="distance" v-show="item.distance
&&
item.distance!=-1">距离
{{
item
.
distance
}}
</view>
</div>
</div>
</div>
</div>
</view>
</view>
...
@@ -45,10 +41,14 @@ export default {
...
@@ -45,10 +41,14 @@ export default {
show
:
true
,
show
:
true
,
columns
:
[],
columns
:
[],
list
:
[],
list
:
[],
areaName
:{}
areaName
:{},
shopId
:
0
}
}
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'shopData'
))
{
this
.
shopId
=
uni
.
getStorageSync
(
'shopData'
).
id
;
}
this
.
list
=
uni
.
getStorageSync
(
'shops'
);
this
.
list
=
uni
.
getStorageSync
(
'shops'
);
this
.
areaName
=
uni
.
getStorageSync
(
'areaName'
)
this
.
areaName
=
uni
.
getStorageSync
(
'areaName'
)
},
},
...
@@ -84,52 +84,58 @@ export default {
...
@@ -84,52 +84,58 @@ export default {
line-height
:
36
rpx
;
line-height
:
36
rpx
;
}
}
.icon
{
.icon
{
width
:
1
6
rpx
;
width
:
1
4
rpx
;
margin-left
:
16
rpx
;
margin-left
:
16
rpx
;
height
:
24
rpx
;
margin-top
:
2
rpx
;
height
:
22
rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
}
}
}
}
.active
{
border
:
0.5px
solid
#003AE9
;
}
.shop_item
{
.shop_item
{
width
:
90%
;
width
:
686
rpx
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
border
:
1px
solid
#003AE9
;
padding
:
40
rpx
30
rpx
40
rpx
32
rpx
;
padding
:
44
rpx
30
rpx
44
rpx
32
rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
margin
:
3
0
rpx
auto
;
margin
:
3
2
rpx
30
rpx
32
rpx
34
rpx
;
display
:
flex
;
display
:
flex
;
justify-content
:
flex-start
;
justify-content
:
30
rpx
30
rpx
flex-start
;
align-items
:
center
;
align-items
:
center
;
.header
{
.header
{
margin-right
:
3
0
rpx
;
margin-right
:
3
2
rpx
;
//
border-right
:
2
rpx
solid
red
;
//
border-right
:
2
rpx
solid
red
;
.name
{
.name
{
font-size
:
28
rpx
;
font-size
:
28
rpx
;
height
:
42
rpx
;
height
:
42
rpx
;
line-height
:
40
rpx
;
line-height
:
40
rpx
;
width
:
3
4
8
rpx
;
width
:
3
7
8
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
font-weight
:
500
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
color
:
#333333
;
color
:
#333333
;
}
}
.adressBox
{
.adressBox
{
width
:
3
4
8
rpx
;
width
:
3
7
8
rpx
;
margin-top
:
16
rpx
;
margin-top
:
16
rpx
;
display
:
flex
;
display
:
flex
;
justify-content
:
flex-start
;
justify-content
:
flex-start
;
.map
{
.map
{
margin-top
:
4
rpx
;
//
width
:
24
rpx
;
//
height
:
30
rpx
;
//
background-color
:
#000000
;
margin-top
:
6
rpx
;
}
}
.address
{
.address
{
margin-left
:
12
rpx
;
//
background-color
:
#000000
;
margin-left
:
10
rpx
;
font-size
:
24
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#999999
;
color
:
#999999
;
margin-top
:
-5
rpx
;
line-height
:
36
rpx
;
}
}
}
}
.timeBox
{
.timeBox
{
...
@@ -138,37 +144,40 @@ export default {
...
@@ -138,37 +144,40 @@ export default {
align-items
:
center
;
align-items
:
center
;
justify-content
:
flex-start
;
justify-content
:
flex-start
;
.clock
{
.clock
{
//
width
:
24
rpx
;
//
height
:
27
rpx
;
//
background-color
:
#000000
;
margin-top
:
-6
rpx
;
margin-top
:
-6
rpx
;
}
}
.time
{
.time
{
margin-left
:
12
rpx
;
padding-left
:
4
rpx
;
//
background-color
:
#000000
;
margin-left
:
10
rpx
;
height
:
34
rpx
;
font-size
:
24
rpx
;
font-size
:
24
rpx
;
font-family
:
ArialMT
;
font-family
:
ArialMT
;
color
:
#999999
;
color
:
#999999
;
margin-top
:
-2
rpx
;
line-height
:
28
rpx
;
}
}
}
}
}
}
.line
{
.line
{
height
:
1
46
rpx
;
height
:
1
72
rpx
;
width
:
2
r
px
;
width
:
1
px
;
border
:
0.
1px
solid
#F4F4F4
;
border
-right
:
1px
solid
#F4F4F4
;
}
}
.dec
{
.dec
{
margin-left
:
4
3
rpx
;
margin-left
:
4
4
rpx
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
height
:
146
rpx
;
//
height
:
146
rpx
;
justify-content
:
space-around
;
view
{
border-radius
:
2px
;
view{
vertical-align
:
baseline
;
vertical-align
:
baseline
;
}
}
.goshop
{
.goshop
{
width
:
167
rpx
;
width
:
167
rpx
;
height
:
64
rpx
;
height
:
64
rpx
;
background
:
#0050F6
;
background
:
#0050F6
;
border-radius
:
2
rpx
;
font-size
:
24
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
font-weight
:
400
;
...
@@ -177,14 +186,20 @@ export default {
...
@@ -177,14 +186,20 @@ export default {
line-height
:
64
rpx
;
line-height
:
64
rpx
;
}
}
.distance1
,
.distance
{
.distance
{
padding-top
:
16
rpx
;
font-size
:
24
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#999999
;
color
:
#999999
;
text-align
:
center
;
text-align
:
center
;
line-height
:
56
rpx
;
line-height
:
34
rpx
;
}
}
.distance1
{
padding-top
:
0
rpx
;
padding-bottom
:
16
rpx
;
}
}
}
}
}
...
...
menuSubPackage/pages/goodsDetail/goodsDetail.vue
View file @
bd6f7e59
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<view
class=
"good-select-price"
>
<view
class=
"good-select-price"
>
<div
class=
"price"
>
<div
class=
"price"
>
<view
class=
"good-select-price-normal"
><text
class=
"moneyLog"
>
¥
</text>
{{
Utils
.
isInteger
(
priceTotal
.
discount
)
}}
</view>
<view
class=
"good-select-price-normal"
><text
class=
"moneyLog"
>
¥
</text>
{{
Utils
.
isInteger
(
priceTotal
.
discount
)
}}
</view>
<view
class=
"good-select-price-small"
v-show=
"priceTotal.price!=priceTotal.discount"
>
¥
{{
Utils
.
isInteger
(
priceTotal
.
price
)
}}
</view>
<view
class=
"good-select-price-small"
v-show=
"priceTotal.price!=priceTotal.discount"
>
¥
<text
class=
"num"
>
{{
Utils
.
isInteger
(
priceTotal
.
price
)
}}
</text>
</view>
</div>
</div>
<div
v-if=
"!size > 0"
style=
"color: orangered"
>
已售罄
</div>
<div
v-if=
"!size > 0"
style=
"color: orangered"
>
已售罄
</div>
<div
v-else
class=
"set_size"
>
<div
v-else
class=
"set_size"
>
...
@@ -583,15 +583,18 @@ button[disabled]:not([type]) {
...
@@ -583,15 +583,18 @@ button[disabled]:not([type]) {
line-height
:
38
rpx
;
line-height
:
38
rpx
;
.moneyLog
{
.moneyLog
{
font-size
:
32
rpx
;
font-size
:
32
rpx
;
font-weight
:
900
;
}
}
}
}
.good-select-price-small
{
.good-select-price-small
{
font-size
:
20
rpx
;
font-size
:
20
rpx
;
text-decoration
:
line-through
;
font-family
:
ArialMT
;
font-family
:
ArialMT
;
line-height
:
32
rpx
;
line-height
:
32
rpx
;
color
:
#999999
;
color
:
#999999
;
.num
{
text-decoration
:
line-through
;
}
}
}
}
}
}
}
...
...
orderSubPackage/pages/orderInfo/index.vue
View file @
bd6f7e59
...
@@ -7,8 +7,9 @@
...
@@ -7,8 +7,9 @@
<div
class=
"order_status"
:style=
"
{'margin-top':(statusBarHeight+navigationBarHeight+getPx(32))+'px'}">
<div
class=
"order_status"
:style=
"
{'margin-top':(statusBarHeight+navigationBarHeight+getPx(32))+'px'}">
<view
class=
"status_text"
>
订单状态:
{{
orderStatusText
}}
</view>
<view
class=
"status_text"
>
订单状态:
{{
orderStatusText
}}
</view>
<view
class=
"tips"
>
<view
class=
"tips"
>
<view
v-if=
"orderInfo.state == 7"
>
为保持口感,请尽快
引
用哦~
</view>
<view
v-if=
"orderInfo.state == 7"
>
为保持口感,请尽快
饮
用哦~
</view>
<view
v-if=
"orderInfo.state == 4"
>
订单已制作完成,请尽快取餐~
</view>
<view
v-if=
"orderInfo.state == 4"
>
订单已制作完成,请尽快取餐~
</view>
<view
v-if=
"orderInfo.state == 8 || orderInfo.state == 9 || orderInfo.state == 10 || orderInfo.state == 11"
>
非常抱歉,有疑问请点击下方联系客服~
</view>
<view
v-if=
"orderInfo.state == 2 || orderInfo.state == 3"
>
请您耐心等候,预计
<text
class=
"time"
>
{{
waitTime
}}
</text>
分钟后可取
</view>
<view
v-if=
"orderInfo.state == 2 || orderInfo.state == 3"
>
请您耐心等候,预计
<text
class=
"time"
>
{{
waitTime
}}
</text>
分钟后可取
</view>
</view>
</view>
<div
class=
"btns"
>
<div
class=
"btns"
>
...
@@ -103,7 +104,7 @@
...
@@ -103,7 +104,7 @@
<u-icon
name=
"server-fill"
color=
"#000000"
size=
"16"
></u-icon>
<u-icon
name=
"server-fill"
color=
"#000000"
size=
"16"
></u-icon>
<span
:style=
"
{'margin-left':'16rpx'}">联系客服
</span>
<span
:style=
"
{'margin-left':'16rpx'}">联系客服
</span>
</view>
</view>
<view
>
<view>
<image
class=
"icno-arrow"
:src=
"'../../../static/imgs/jiantouhei.png'"
/>
<image
class=
"icno-arrow"
:src=
"'../../../static/imgs/jiantouhei.png'"
/>
</view>
</view>
</button>
</button>
...
@@ -760,7 +761,8 @@ export default {
...
@@ -760,7 +761,8 @@ export default {
color
:
#333333
;
color
:
#333333
;
}
}
}
}
.icno-arrow
{
.icno-arrow
{
margin-top
:
2
rpx
;
width
:
15.27
rpx
;
width
:
15.27
rpx
;
height
:
21.68
rpx
;
height
:
21.68
rpx
;
}
}
...
...
pages/menu/menu.vue
View file @
bd6f7e59
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<view>
<view>
<image
class=
"arrow-right-select"
v-if=
"userms"
:src=
"'../../static/imgs/jiantouhei.png'"
/>
<image
class=
"arrow-right-select"
v-if=
"userms"
:src=
"'../../static/imgs/jiantouhei.png'"
/>
<button
class=
"login-btn"
v-if=
"!userms"
open-type=
"getPhoneNumber"
<button
class=
"login-btn"
v-if=
"!userms"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
立
刻
登录
@
getphonenumber=
"getPhoneNumber"
>
立
即
登录
</button>
</button>
</view>
</view>
</view>
</view>
...
@@ -364,12 +364,12 @@ export default {
...
@@ -364,12 +364,12 @@ export default {
display
:
flex
;
display
:
flex
;
width
:
686
rpx
;
width
:
686
rpx
;
height
:
104
rpx
;
height
:
104
rpx
;
padding
:
16
rpx
32
rpx
16
rpx
34
rpx
;
padding
:
16
rpx
32
rpx
16
rpx
32
rpx
;
background
:
#ffffff
;
background
:
#ffffff
;
position
:
absolute
;
position
:
absolute
;
z-index
:
1
;
z-index
:
1
;
bottom
:
-2
rpx
;
bottom
:
-2
rpx
;
left
:
3
2
rpx
;
left
:
3
3
rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
box-shadow
:
0px
2px
8px
0px
rgba
(
102
,
102
,
102
,
0.1
);
box-shadow
:
0px
2px
8px
0px
rgba
(
102
,
102
,
102
,
0.1
);
backdrop-filter
:
blur
(
0px
);
backdrop-filter
:
blur
(
0px
);
...
@@ -423,6 +423,7 @@ export default {
...
@@ -423,6 +423,7 @@ export default {
.login-btn
{
.login-btn
{
//
width
:
114
rpx
;
//
width
:
114
rpx
;
margin-right
:
-5
rpx
;
width
:
167
rpx
;
width
:
167
rpx
;
height
:
64
rpx
;
height
:
64
rpx
;
background
:
#0050F6
;
background
:
#0050F6
;
...
@@ -434,7 +435,6 @@ export default {
...
@@ -434,7 +435,6 @@ export default {
color
:
#FFFFFF
;
color
:
#FFFFFF
;
line-height
:
64
rpx
;
line-height
:
64
rpx
;
}
}
}
}
}
}
...
...
pages/mine/mine.vue
View file @
bd6f7e59
...
@@ -22,12 +22,12 @@
...
@@ -22,12 +22,12 @@
</view>
</view>
<view>
<view>
<button
class=
"login-btn"
v-if=
"!userms"
open-type=
"getPhoneNumber"
<button
class=
"login-btn"
v-if=
"!userms"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
立
刻
登录
@
getphonenumber=
"getPhoneNumber"
>
立
即
登录
</button>
</button>
</view>
</view>
</view>
</view>
</view>
</view>
<!--
<button
class=
"mod11 flex-col"
v-else
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
立
刻
登录
</button>
-->
<!--
<button
class=
"mod11 flex-col"
v-else
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
立
即
登录
</button>
-->
<view
class=
"contents"
v-if=
"userms"
>
<view
class=
"contents"
v-if=
"userms"
>
<view
class=
"myOrder"
@
click=
"goToPage('order')"
>
<view
class=
"myOrder"
@
click=
"goToPage('order')"
>
<view
class=
"text"
>
我的订单
</view>
<view
class=
"text"
>
我的订单
</view>
...
...
pages/order/order.vue
View file @
bd6f7e59
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<view
class=
"total"
>
<view
class=
"total"
>
共
{{
orderDetailsSize
(
item
.
orderDetails
)
}}
件商品 实付
<text
class=
"price"
>
¥
{{
Utils
.
isInteger
(
item
.
amount
)
}}
</text>
共
{{
orderDetailsSize
(
item
.
orderDetails
)
}}
件商品 实付
<text
class=
"price"
>
¥
{{
Utils
.
isInteger
(
item
.
amount
)
}}
</text>
</view>
</view>
<a
class=
"btn"
@
click
.
stop=
"PayNow(item)"
v-if=
"item.state == 1"
type=
"primary"
>
立
刻
支付
</a>
<a
class=
"btn"
@
click
.
stop=
"PayNow(item)"
v-if=
"item.state == 1"
type=
"primary"
>
立
即
支付
</a>
<a
class=
"btn"
v-else
@
click
.
stop=
"oneMoreOrder(item)"
type=
"primary"
>
再来一单
</a>
<a
class=
"btn"
v-else
@
click
.
stop=
"oneMoreOrder(item)"
type=
"primary"
>
再来一单
</a>
</view>
</view>
</view>
</view>
...
...
request/order/index.js
View file @
bd6f7e59
...
@@ -53,7 +53,7 @@ export default {
...
@@ -53,7 +53,7 @@ export default {
console
.
log
(
'服务器错误'
);
console
.
log
(
'服务器错误'
);
});
});
},
},
// 立
刻
支付
// 立
即
支付
payOrder
(
params
)
{
payOrder
(
params
)
{
return
uni
.
$u
.
http
return
uni
.
$u
.
http
.
get
(
'order/payOrder'
,
{
.
get
(
'order/payOrder'
,
{
...
...
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