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
d677557b
Commit
d677557b
authored
Jun 30, 2022
by
weijiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化UI
parent
d8236526
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
58 additions
and
57 deletions
+58
-57
components/OrderQrCode/index.vue
+1
-1
components/menuAssembly/index.vue
+1
-1
components/shopCar/shopCar.vue
+1
-1
menuSubPackage/pages/areaSelect/areaSelect.vue
+16
-10
menuSubPackage/pages/goodsDetail/goodsDetail.vue
+23
-21
orderSubPackage/pages/orderInfo/index.vue
+3
-3
orderSubPackage/pages/settlement/index.vue
+6
-17
pages/menu/menu.vue
+7
-3
No files found.
components/OrderQrCode/index.vue
View file @
d677557b
...
...
@@ -234,7 +234,7 @@ export default {
font-weight
:
500
;
color
:
#333333
;
padding-bottom
:
24
rpx
;
border-bottom
:
2
rpx
solid
#ECECEC
;
border-bottom
:
0.1
rpx
solid
#F4F4F4
;
letter-spacing
:
1
rpx
;
}
.text
{
...
...
components/menuAssembly/index.vue
View file @
d677557b
...
...
@@ -356,7 +356,7 @@ export default {
font-size
:
20
rpx
;
color
:
#999999
;
font-family
:
Futura-Medium
,
Futura
;
line-height
:
1
3
rpx
;
line-height
:
1
5
rpx
;
.num
{
text-decoration
:
line-through
;
...
...
components/shopCar/shopCar.vue
View file @
d677557b
...
...
@@ -278,7 +278,7 @@ export default {
.header
{
padding
:
24.87
rpx
31.78
rpx
22.3
rpx
31.54
rpx
;
display
:
flex
;
border-bottom
:
1
rpx
solid
#ECECEC
;
border-bottom
:
0.1px
solid
#F4F4F4
;
.left
{
flex
:
1
;
...
...
menuSubPackage/pages/areaSelect/areaSelect.vue
View file @
d677557b
...
...
@@ -14,14 +14,14 @@
<div
class=
"header"
>
<view
class=
"name"
>
{{
item
.
name
}}
</view>
<view
class=
"adressBox"
>
<view>
<u-icon
class=
"map"
name=
"map"
color=
"#999999"
size=
"14
"
></u-icon>
<view
class=
"map"
>
<u-icon
name=
"map"
color=
"#999999"
size=
"12
"
></u-icon>
</view>
<view
class=
"address"
>
{{
item
.
address
}}
</view>
</view>
<view
class=
"timeBox"
>
<view>
<u-icon
name=
"clock"
color=
"#999999"
size=
"1
4
"
></u-icon>
<view
class=
"clock"
>
<u-icon
name=
"clock"
color=
"#999999"
size=
"1
0
"
></u-icon>
</view>
<view
class=
"time"
>
{{
item
.
startTime
}}
-
{{
item
.
endTime
}}
</view>
</view>
...
...
@@ -115,12 +115,15 @@ export default {
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
color
:
#333333
;
}
.adressBox
{
.adressBox
{
width
:
348
rpx
;
margin-top
:
16
rpx
;
display
:
flex
;
justify-content
:
flex-start
;
.address{
.map
{
margin-top
:
4
rpx
;
}
.address
{
margin-left
:
12
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
...
...
@@ -129,12 +132,15 @@ export default {
margin-top
:
-5
rpx
;
}
}
.timeBox
{
.timeBox
{
margin-top
:
16
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-start
;
.time{
.clock
{
margin-top
:
-6
rpx
;
}
.time
{
margin-left
:
12
rpx
;
font-size
:
24
rpx
;
font-family
:
ArialMT
;
...
...
@@ -146,7 +152,7 @@ export default {
.line
{
height
:
146
rpx
;
width
:
2
rpx
;
border
:
1
rpx
solid
#ECECEC
;
border
:
0.1px
solid
#F4F4F4
;
}
.dec
{
margin-left
:
43
rpx
;
...
...
@@ -177,7 +183,7 @@ export default {
font-weight
:
400
;
color
:
#999999
;
text-align
:
center
;
line-height
:
40
rpx
;
line-height
:
56
rpx
;
}
}
...
...
menuSubPackage/pages/goodsDetail/goodsDetail.vue
View file @
d677557b
...
...
@@ -17,11 +17,11 @@
</swiper>
</view>
<view
class=
"good spec-info-left"
>
<
text
class=
"good-name"
>
{{
goodInfo
.
name
}}
</text
>
<
view
class=
"good-name"
>
{{
goodInfo
.
name
}}
</view
>
<view
class=
"specs"
>
<!-- 规格 -->
<view
v-for=
"specItem in goodInfo.specs"
:key=
"specItem.specId"
>
<
view
class=
"good-spec-name"
>
{{
specItem
.
specName
}}
</view
>
<
div
class=
"good-spec-name"
>
{{
specItem
.
specName
}}
</div
>
<view
class=
"good-spec-rule"
>
<div
v-for=
"specItemRule in specItem.rules"
class=
"div_item"
:key=
"specItemRule.ruleId"
@
click=
"selectRoles(specItemRule, specItem)"
>
<div
v-if=
"specItemRule.isRecommend=='1'"
:class=
"[UseIt(specItemRule.ruleId)?'disabledStyle':'']"
class=
"default"
></div>
...
...
@@ -48,7 +48,7 @@
<view
class=
"good-select-height"
></view>
</view>
<view
class=
"good-select
good-select-height"
:style=
"
{'padding-bottom':BottomSafeHeight
+'px'}">
<view
class=
"good-select
"
:style=
"
{'padding-bottom':BottomSafeHeight+'px; height:'+(getPx(268)-BottomSafeHeight)
+'px'}">
<view
class=
"good-select-price"
>
<div
class=
"price"
>
<view
class=
"good-select-price-normal"
><text
class=
"moneyLog"
>
¥
</text>
{{
Utils
.
isInteger
(
priceTotal
.
discount
)
}}
</view>
...
...
@@ -59,8 +59,6 @@
<view
class=
"subtract"
@
click=
"reduceGood"
></view>
<span>
{{
size
}}
</span>
<view
class=
"add"
@
click=
"addGood"
></view>
<!--
<u-icon
name=
"minus-circle"
@
click=
"reduceGood"
color=
"#2979ff"
size=
"22"
></u-icon>
-->
<!--
<u-icon
name=
"plus-circle-fill"
color=
"#2979ff"
@
click=
"addGood"
size=
"22"
></u-icon>
-->
</div>
</view>
<view
v-if=
"size > 0"
class=
"good-select-cont"
>
...
...
@@ -148,6 +146,9 @@ export default {
// }
// },
methods
:
{
getPx
(
rpx
)
{
return
rpx
*
(
wx
.
getSystemInfoSync
().
windowWidth
/
750
);
},
initInfo
(
goodsInfo
){
this
.
available
=
[]
this
.
selected
=
[]
...
...
@@ -399,6 +400,7 @@ export default {
.swiper_img
{
width
:
100%
;
height
:
100%
!important
;
vertical-align
:
bottom
;
}
.spec-content
{
...
...
@@ -411,9 +413,6 @@ export default {
}
.specs
{
margin-top
:
30
rpx
;
}
.good
{
display
:
block
;
...
...
@@ -426,25 +425,30 @@ export default {
font-weight
:
500
;
color
:
#333333
;
line-height
:
40
rpx
;
margin-top
:
24
rpx
;
padding-bottom
:
22
rpx
;
//
background-color
:
#000000
;
}
.specs
{
//
margin-top
:
30
rpx
;
}
.good-spec-name
{
margin
-top
:
30
rpx
;
padding
-top
:
30
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
color
:
#999999
;
font-weight
:
400
;
font-size
:
24
rpx
;
text-align
:
left
;
line-height
:
34
rpx
;
//
background-color
:
blue
;
}
.good-spec-rule
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
flex-start
;
margin-top
:
26
.02
rpx
;
margin-top
:
26
rpx
;
flex-wrap
:
wrap
;
border-radius
:
0
rpx
;
...
...
@@ -456,7 +460,6 @@ export default {
min-width
:
120
rpx
;
z-index
:
999999
;
.default
{
width
:
45
rpx
;
height
:
48
rpx
;
...
...
@@ -464,12 +467,10 @@ export default {
background-size
:
100%
;
position
:
absolute
;
right
:
-17
rpx
;
top
:
-
15
rpx
;
top
:
-
30
rpx
;
z-index
:
9
;
}
}
}
}
...
...
@@ -553,20 +554,21 @@ button[disabled]:not([type]) {
position
:
fixed
;
bottom
:
0
rpx
;
text-align
:
center
;
height
:
268
rpx
;
//
height
:
268
rpx
;
background-color
:
#fff
;
height
:
auto
;
padding-bottom
:
20
rpx
;
box-shadow
:
0px
-2px
8px
0px
rgba
(
214
,
214
,
214
,
0.5
);
}
.good-select-price
{
display
:
flex
;
align-items
:
center
;
height
:
68
rpx
;
//
height
:
68
rpx
;
background
:
#FFFFFF
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
2
2
rpx
32
rpx
;
padding
:
2
4
rpx
32
rpx
24
rpx
32
rpx
;
.price{
display
:
flex
;
align-items
:
flex-end
;
...
...
@@ -574,13 +576,13 @@ button[disabled]:not([type]) {
.good-select-price-normal
{
font-family
:
Futura-Medium
,
Futura
;
letter-spacing
:
1px
;
font-size
:
3
2
rpx
;
font-size
:
3
6
rpx
;
color
:
#333333
;
margin-right
:
12
rpx
;
font-weight
:
500
;
line-height
:
38
rpx
;
.moneyLog
{
font-size
:
28
rpx
;
font-size
:
32
rpx
;
}
}
...
...
@@ -621,7 +623,7 @@ button[disabled]:not([type]) {
.good-select-btn2
{
width
:
328
rpx
;
height
:
10
4
rpx
;
height
:
10
6
rpx
;
border-radius
:
2px
;
font-size
:
28
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
...
...
orderSubPackage/pages/orderInfo/index.vue
View file @
d677557b
...
...
@@ -512,7 +512,7 @@ export default {
}
.address
{
border-bottom
:
1
rpx
solid
#ECECEC
;
border-bottom
:
0.1px
solid
#F4F4F4
;
padding-bottom
:
25
rpx
;
.address_1
{
...
...
@@ -603,7 +603,7 @@ export default {
.discount
{
margin-top
:
24
rpx
;
padding-bottom
:
24
rpx
;
border-bottom
:
1
rpx
solid
#ECECEC
;
border-bottom
:
0.1px
solid
#F4F4F4
;
.discount_1
{
display
:
flex
;
...
...
@@ -694,7 +694,7 @@ export default {
color
:
#333333
;
line-height
:
40
rpx
;
height
:
40
rpx
;
border-bottom
:
1
rpx
solid
#ECECEC
;
border-bottom
:
0.1px
solid
#F4F4F4
;
padding-bottom
:
24
rpx
;
}
...
...
orderSubPackage/pages/settlement/index.vue
View file @
d677557b
...
...
@@ -10,16 +10,15 @@
<div
class=
"take_order"
></div>
<div>
<div
class=
"title"
>
取单时间
</div>
<div
class=
"time"
>
现在下单,预计
<span
class=
"min"
>
{{
duration
}}
</span>
分钟后取餐
</div>
<div
class=
"time"
>
现在下单,预计
<span
class=
"min"
>
{{
duration
}}
</span>
分钟后取餐
</div>
</div>
</div>
<div
class=
"goods_info"
>
<h3>
商品详细
</h3>
<div
class=
"goods"
v-for=
"item in goods"
:key=
"item.goodsId"
>
<div
class=
"goods_item"
>
<image
mode=
"aspectFit"
v-if=
"item.pics.thumbnailApplet"
class=
"goods_img"
:src=
"item.pics.thumbnailApplet"
></image>
<image
v-else
class=
"goods_img"
:src=
"item.pics.thumbnail"
></image>
<image
v-if=
"item.pics.thumbnailApplet"
class=
"goods_img"
:src=
"item.pics.thumbnailApplet"
/>
<image
v-else
class=
"goods_img"
:src=
"item.pics.thumbnail"
/>
<div
class=
"goods_text"
>
<div
class=
"goods_name"
>
...
...
@@ -37,16 +36,6 @@
</div>
</div>
</div>
<!--
<div
class=
"discount"
>
<div
class=
"discount_1"
>
<div
class=
"name"
>
优惠免减
</div>
<div
class=
"price"
>
- ¥
{{
itemReduction
(
item
.
sku
.
discount
,
item
.
sku
.
price
,
item
.
num
)
}}
</div>
</div>
<div
class=
"concessional_rate"
>
<div
class=
"name"
>
特惠价
</div>
<div
class=
"price"
>
¥
{{
setPrice
(
item
.
sku
.
discount
*
item
.
num
)
}}
</div>
</div>
</div>
-->
</div>
<div
class=
"total"
>
...
...
@@ -305,7 +294,7 @@ export default {
.take_order
{
margin-top
:
25
rpx
;
padding-top
:
23.83
rpx
;
border-top
:
2
rpx
solid
#ECECEC
;
border-top
:
0.1px
solid
#F4F4F4
;
height
:
2
rpx
;
}
.title
{
...
...
@@ -325,7 +314,7 @@ export default {
color
:
#0050F6
;
font-size
:
32
rpx
;
font-family
:
Futura-Medium
,
Futura
;
font-weight
:
700
;
font-weight
:
normal
;
margin
:
0
8
rpx
;
display
:
inline-block
;
}
...
...
@@ -350,7 +339,7 @@ export default {
.goods
{
margin-top
:
24.95
rpx
;
border-bottom
:
1px
solid
#ECECEC
;
border-bottom
:
0.1px
solid
#F4F4F4
;
padding-bottom
:
32
rpx
;
.goods_item
{
...
...
pages/menu/menu.vue
View file @
d677557b
...
...
@@ -34,7 +34,7 @@
<view
class=
"order-banner"
v-if=
"buied"
@
click=
"openQrcode"
>
<view
class=
"info"
>
<view
class=
"first"
>
取单码:
<text
class=
"first-code"
>
{{
orderInfo
.
orderNum
}}
</text></view>
<view
class=
"second"
v-if=
"orderInfo.state =='4'"
>
订单已制作完成,请尽快取餐~
</view>
<view
class=
"second
1
"
v-if=
"orderInfo.state =='4'"
>
订单已制作完成,请尽快取餐~
</view>
<view
class=
"second"
v-else
>
请您耐心等候,剩余等候时间
<text
class=
"time"
>
{{
orderInfo
.
waitTime
}}
</text>
分钟
</view>
</view>
<view
class=
"line"
></view>
...
...
@@ -442,7 +442,7 @@ export default {
width
:
718
rpx
;
height
:
179
rpx
;
background
:
#FFFFFF
;
box-shadow
:
-2px
-
4
px
8px
0px
rgba
(
102
,
102
,
102
,
0.1
),
4px
4px
8px
0px
rgba
(
102
,
102
,
102
,
0.1
);
box-shadow
:
-2px
-
2
px
8px
0px
rgba
(
102
,
102
,
102
,
0.1
),
4px
4px
8px
0px
rgba
(
102
,
102
,
102
,
0.1
);
box-sizing
:
border-box
;
position
:
relative
;
left
:
16
rpx
;
...
...
@@ -469,6 +469,7 @@ export default {
}
}
.second1
,
.second
{
margin-top
:
12
rpx
;
width
:
400
rpx
;
...
...
@@ -488,6 +489,9 @@ export default {
margin
:
0
16
rpx
;
}
}
.second1
{
margin-top
:
20
rpx
;
}
}
.line
{
...
...
@@ -523,7 +527,7 @@ export default {
.barCode-dis
{
text-align
:
center
;
margin-top
:
1
4
rpx
;
margin-top
:
1
2
rpx
;
font-size
:
16
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
...
...
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