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
34c2268d
Commit
34c2268d
authored
Jun 21, 2022
by
songbingqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 首页取单码 样式
parent
ac6f7b42
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
141 additions
and
78 deletions
+141
-78
components/OrderQrCode/index.vue
+74
-48
mineSubPackage/pages/msg/index.vue
+1
-1
orderSubPackage/pages/orderInfo/index.vue
+66
-29
No files found.
components/OrderQrCode/index.vue
View file @
34c2268d
<
template
>
<div>
<u-popup
:show=
"show"
:round=
"10"
closeable
mode=
"bottom"
@
close=
"close"
>
<div
class=
"order_flow"
>
<u-popup
:show=
"show"
:round=
"10"
mode=
"bottom"
@
close=
"close"
:safeAreaInsetBottom=
"false"
>
<view
class=
"bigBox"
:style=
"
{'height':'1380rpx'}">
<div
class=
"order_flow"
>
<div
class=
"code"
>
取单码
{{
orderInfo
.
orderNum
}}
</div>
<!--
<image
mode=
"scaleToFill"
:src=
"qrCode"
class=
"qr_code"
></image>
-->
<div
class=
"qr_code
"
>
<div
class=
"qr_code_readly"
v-if=
"!showMask
"
>
<image
mode=
"scaleToFill"
:src=
"qrCode"
class=
"qr"
></image>
<view
class=
"status_text"
>
{{
orderStatusText
}}
</view>
</div>
<div
class=
"flow_describe"
>
<h3>
扫码流程
</h3
>
<image
:mode=
"'aspectFit'"
class=
"flow_img"
src=
"/static/imgs/order_flow.png"
></image
>
<div
class=
"qr_code"
v-else
>
<image
mode=
"aspectFit"
:src=
"'/static/imgs/erweimazhedang.png'"
class=
"qr"
></image
>
<view
class=
"status_text"
>
——制作完成后才能扫哦——
</view
>
</div>
<div
class=
"flow_describe"
>
<h3>
注意事项
</h3>
<image
:mode=
"'aspectFit'"
class=
"flow_img"
src=
"/static/imgs/saomaliucheng.png"
></image>
</div>
</div>
<div
class=
"flow_describe_tips"
>
<view
class=
"title"
>
注意事项
</view>
<view
class=
"text"
>
<view>
*热饮温度高,推荐使用纸吸管,纸吸管体验更佳。拿到后请小心饮用,吸入时请注意烫口喔
</view>
<view>
*冷饮如选择冰块分装,冰块分装后饮品将不满杯,敬请谅解。
</view>
<view>
*冷饮去冰如选择椰椰雪糕,默认分装椰椰雪糕,敬请谅解
</view>
<view>
1.冷饮拍完照记得搅拌哦~搅拌3圈风味更佳
</view>
<view>
2.吸管请到两边窗口自取
</view>
<view>
3.热饮小心烫嘴!
</view>
<view>
4.二维码被抱住的时候不能扫哦
</view>
<view>
5.有问题或对出品任何不满意请联系客服
</view>
</view>
</div>
</
div>
</
view>
</u-popup>
</div>
</
template
>
...
...
@@ -106,18 +113,15 @@ export default {
}
.order_status
{
width
:
686
rpx
;
height
:
174
rpx
;
background
:
#FFFFFF
;
border-radius
:
10
rpx
;
margin
:
32
rpx
auto
0
;
padding
:
14px
;
margin
:
32
rpx
32
rpx
;
padding
:
24
rpx
0
rpx
30
rpx
0
rpx
;
.status_text
{
font-size
:
32
rpx
;
font-family
:
PingFangSC-
Semibold
,
PingFang
SC
;
font-weight
:
6
00
;
color
:
#
000000
;
font-size
:
28
rpx
;
font-family
:
PingFangSC-
Medium
,
PingFang
SC
;
font-weight
:
5
00
;
color
:
#
333333
;
text-align
:
center
;
}
...
...
@@ -144,11 +148,16 @@ export default {
text-align
:
center
;
}
}
.bigBox
{
background
:
#F7F7F7
;
border-radius
:
10px
10px
0px
0px
;
overflow
:
auto
;
}
.order_flow
{
background
:
#FFFFFF
;
border-radius
:
10
rpx
;
padding-top
:
25
rpx
;
margin
:
32
rpx
;
padding-top
:
40
rpx
;
padding-bottom
:
25
rpx
;
.code
{
...
...
@@ -158,25 +167,25 @@ export default {
color
:
#000000
;
text-align
:
center
;
}
.qr_code
{
width
:
5
08
rpx
;
.qr_code_readly
{
margin
:
20
rpx
auto
;
width
:
5
10
rpx
;
height
:
510
rpx
;
}
.qr_code
{
height
:
314
rpx
;
display
:
block
;
margin
:
25
rpx
auto
;
background-color
:
#ccc
;
margin
:
70
rpx
auto
;
position
:
relative
;
padding-bottom
:
30
rpx
;
.status_text
{
font-size
:
48
rpx
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
font-weight
:
600
;
color
:
#FFFFFF
;
line-height
:
66
rpx
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
font-size
:
28
rpx
;
margin-top
:
39
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#333333
;
text-align
:
center
;
}
.qr
{
...
...
@@ -186,13 +195,9 @@ export default {
}
.flow_describe
{
width
:
590
rpx
;
background
:
#FFFFFF
;
box-shadow
:
0
rpx
4
rpx
8
rpx
0
rpx
rgba
(
166
,
166
,
166
,
0.5
);
border-radius
:
10
rpx
;
margin
:
0
auto
;
margin-top
:
20
rpx
;
padding
:
30
rpx
;
width
:
100%
;
height
:
300
rpx
;
padding-top
:
48
rpx
;
h3
{
font-size
:
28
rpx
;
...
...
@@ -202,14 +207,35 @@ export default {
}
.flow_img
{
width
:
590
rpx
;
height
:
211
rpx
;
width
:
100%
;
height
:
100%
;
display
:
block
;
margin
:
24
rpx
auto
;
}
}
}
}
.flow_describe_tips
{
margin-top
:
100
rpx
;
background
:
#FFFFFF
;
margin
:
32
rpx
;
padding
:
25
rpx
31
rpx
;
.title{
font-size
:
28
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#333333
;
padding-bottom
:
24
rpx
;
border-bottom
:
1px
solid
#ECECEC
;
}
.text
{
margin-top
:
18
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
line-height
:
48
rpx
;
}
}
.customer_service
{
height
:
90
rpx
;
line-height
:
90
rpx
;
...
...
mineSubPackage/pages/msg/index.vue
View file @
34c2268d
...
...
@@ -15,8 +15,8 @@
</view>
<view
class=
"msg_content"
>
{{
item
.
message
}}
</view>
</view>
</scroll-view>
<show-toast
ref=
"toast"
/>
</scroll-view>
</
template
>
<
script
>
...
...
orderSubPackage/pages/orderInfo/index.vue
View file @
34c2268d
...
...
@@ -13,8 +13,7 @@
<a
type=
"primary"
@
click=
"oneMoreOrder(orderInfo)"
v-if=
"orderInfo.state != 1"
class=
"btn"
>
再来一单
</a>
</div>
</div>
<div
class=
"order_flow"
>
<div
class=
"order_flow"
v-if=
"qrShow"
>
<div
v-if=
"qrShow"
class=
"code"
>
取单码
{{
orderInfo
.
orderNum
}}
</div>
<div
class=
"realQrcodeBox"
v-if=
"qrShow&&isBuild"
>
<image
mode=
"aspectFit"
:src=
"ewmImg"
class=
"qr_real"
></image>
...
...
@@ -80,6 +79,34 @@
</div>
</div>
</div>
<div
class=
"order_describe"
>
<view
class=
"title"
>
订单信息
</view>
<div
class=
"item"
>
<span
class=
"label"
>
下单时间:
</span>
<span
class=
"value"
>
{{
orderInfo
.
createdAt
}}
</span>
</div>
<div
class=
"item"
>
<span
class=
"label"
>
取单码号:
</span>
<span
class=
"value"
>
{{
orderInfo
.
orderNum
}}
</span>
</div>
<div
class=
"item"
>
<span
class=
"label"
>
订单编号:
</span>
<span
class=
"value"
>
{{
orderInfo
.
orderNo
}}
</span>
</div>
</div>
<div
class=
"customer_service"
>
<button
class=
"function_item_text"
open-type=
"contact"
bindcontact=
"handleContact"
session-from=
"sessionFrom"
>
<view
class=
"serverBox"
>
<u-icon
name=
"server-fill"
color=
"#000000"
size=
"16"
></u-icon>
<span
:style=
"
{'margin-left':'16rpx'}">有疑问,联系客服
</span>
</view>
<view
class=
"icno-arrow"
>
<image
:style=
"
{'height':'100%','width':'100%'}" :src="'../../../static/imgs/jiantouhei.png'" />
</view>
</button>
</div>
</div>
</
template
>
...
...
@@ -95,9 +122,9 @@ export default {
const
resData
=
uni
.
getStorageSync
(
'orderInfo'
);
this
.
orderInfo
=
resData
const
isBuild
=
[
'4'
,
'5'
].
indexOf
(
this
.
orderInfo
.
state
)
>=
0
;
if
(
!
isBuild
)
{
if
(
isBuild
)
{
new
QRCode
(
'myQrcode'
,
{
text
:
'http://www.baidu.com'
,
text
:
this
.
orderInfo
.
pickCode
,
width
:
141
,
//canvas 画布的宽
height
:
141
,
//canvas 画布的高
padding
:
0
,
// 生成二维码四周自动留边宽度,不传入默认为0
...
...
@@ -451,6 +478,7 @@ export default {
}
.psce_name
{
margin-top
:
18
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
...
...
@@ -459,6 +487,7 @@ export default {
.size
{
font-size
:
24
rpx
;
margin-top
:
18
rpx
;
font-family
:
ArialMT
;
color
:
#666666
;
}
...
...
@@ -473,7 +502,7 @@ export default {
.discount
{
margin-top
:
24
rpx
;
padding-bottom
:
24
rpx
;
border-bottom
:
1
rpx
solid
#E
EEEEE
;
border-bottom
:
1
rpx
solid
#E
CECEC
;
.discount_1
{
display
:
flex
;
...
...
@@ -515,48 +544,47 @@ export default {
align-items
:
center
;
display
:
flex
;
justify-content
:
space-between
;
margin-top
:
52
rpx
;
margin-top
:
30
rpx
;
border-top
:
1
rpx
solid
#EEEEEE
;
padding-bottom
:
20
rpx
;
padding-top
:
20
rpx
;
padding-top
:
30
rpx
;
.size
{
font-size
:
2
4
rpx
;
font-size
:
2
8
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#666666
;
}
.paid_in
{
font-size
:
2
4
rpx
;
font-size
:
2
8
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
6
00
;
color
:
#
000000
;
font-weight
:
4
00
;
color
:
#
333333
;
}
.money
{
font-weight
:
600
;
font-size
:
32
rpx
;
color
:
#000000
;
vertical-align
:
middle
;
vertical-align
:
top
;
font-size
:
36
rpx
;
font-family
:
Futura-Medium
,
Futura
;
font-weight
:
500
;
color
:
#333333
;
}
}
}
.order_describe
{
background
:
#fff
;
border-radius
:
10
rpx
;
padding
:
0
62
rpx
24
rpx
;
margin-top
:
32
rpx
;
padding
:
26
rpx
31
rpx
;
margin
:
32
rpx
;
h3
{
padding
:
24
rpx
0
;
.title
{
font-size
:
28
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
6
00
;
color
:
#
000000
;
border-bottom
:
1
rpx
solid
#EEEEEE
;
font-weight
:
5
00
;
color
:
#
333333
;
line-height
:
40
rpx
;
}
.item
{
...
...
@@ -566,13 +594,13 @@ export default {
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#
666666
;
color
:
#
999999
;
}
.value
{
font-size
:
24
rpx
;
font-family
:
ArialMT
;
color
:
#
333333
;
color
:
#
666666
;
}
}
}
...
...
@@ -581,11 +609,10 @@ export default {
height
:
90
rpx
;
line-height
:
90
rpx
;
background
:
#FFFFFF
;
border-radius
:
10
rpx
;
font-weight
:
500
;
color
:
#000000
;
padding
:
0
64
rpx
;
margin
:
32
rpx
0
;
padding
:
0
rpx
31
rpx
;
margin
:
32
rpx
;
.function_item_text
{
width
:
100%
;
margin
:
0
;
...
...
@@ -596,6 +623,16 @@ export default {
border-radius
:
0px
;
display
:
flex
;
justify-content
:
space-between
;
.serverBox{
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
}
.icno-arrow
{
width
:
9
rpx
;
height
:
21
rpx
;
}
}
.function_item_text
::after
{
border
:
unset
;
...
...
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