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
ac6f7b42
Commit
ac6f7b42
authored
Jun 21, 2022
by
宋冰琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 订单详情 页面部分内容
parent
d589b72d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
139 additions
and
140 deletions
+139
-140
mineSubPackage/pages/msg/index.vue
+23
-19
orderSubPackage/pages/orderInfo/index.vue
+115
-120
pages/menu/menu.vue
+1
-1
static/imgs/erweimazhedang.png
+0
-0
static/imgs/saomaliucheng.png
+0
-0
No files found.
mineSubPackage/pages/msg/index.vue
View file @
ac6f7b42
<
template
>
<scroll-view
class=
"msg"
scroll-y
>
<view
class=
"empty"
v-show=
"empty == true"
>
<image
class=
"empty_icon"
src=
"/static/imgs/none_content.png"
></image>
<view
class=
"empty_text"
>
---暂无消息,去品尝杯咖啡吧---
</view>
<button
class=
"empty_button"
@
click=
"goHome"
>
去品尝
</button>
<view
:style=
"
{'text-align':'center'}">
<image
class=
"empty_icon"
src=
"/static/imgs/none_content.png"
></image>
</view>
<view
class=
"empty_text"
>
——暂无消息,去品尝杯咖啡吧——
</view>
<button
class=
"empty_button"
@
click=
"goHome"
></button>
</view>
<view
class=
"msg_item"
v-for=
"item in list"
@
click=
"toRead(item)"
:key=
"item.id"
>
<view
class=
"msg_item_title_time"
>
...
...
@@ -14,6 +16,7 @@
<view
class=
"msg_content"
>
{{
item
.
message
}}
</view>
</view>
</scroll-view>
<show-toast
ref=
"toast"
/>
</
template
>
<
script
>
...
...
@@ -63,30 +66,31 @@ export default {
/* 兼容老版本的方法 */
-webkit-transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
margin-top
:
200
rpx
;
margin-top
:
311
rpx
;
.empty_icon
{
width
:
325
rpx
;
height
:
2
9
6
rpx
;
width
:
280
rpx
;
height
:
2
6
6
rpx
;
}
.empty_text
{
font-size
:
20
rpx
;
margin-top
:
10
rpx
;
font-family
:
ArialMT
;
color
:
#666666
;
margin-top
:
44
rpx
;
width
:
414
rpx
;
text-align
:
center
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
}
.empty_button
{
width
:
128
rpx
;
height
:
46
rpx
;
margin-top
:
10
rpx
;
background
:
#006ECF
;
border-radius
:
10
rpx
;
text-align
:
center
;
font-size
:
20
rpx
;
line-height
:
46
rpx
;
color
:
#fff
;
margin-top
:
35
rpx
;
width
:
167
rpx
;
height
:
64
rpx
;
border-radius
:
2
rpx
;
background
:
url('@/static/imgs/qupinchang.png')
center
center
no-repeat
;
}
.empty_button
::after
{
border-radius
:
2
rpx
;
}
}
...
...
orderSubPackage/pages/orderInfo/index.vue
View file @
ac6f7b42
...
...
@@ -2,25 +2,36 @@
<div
class=
"pages"
>
<div
class=
"order_status"
>
<view
class=
"status_text"
>
{{
orderStatusText
}}
</view>
<view
class=
"tips"
>
<view
v-if=
"orderInfo.state == 7"
>
为保持口感,请尽快引用哦~
</view>
<view
v-if=
"orderInfo.state == 4"
>
订单已制作完成,请尽快取餐~
</view>
</view>
<div
class=
"btns"
>
<a
type=
"primary"
@
click=
"cancelOrder"
v-if=
"orderInfo.state == 1"
class=
"btn_cancel"
>
取消订单
</a>
<a
type=
"primary"
@
click=
"PayNow"
v-if=
"orderInfo.state == 1"
class=
"btn"
>
立即支付
</a>
<a
type=
"primary"
@
click=
"toRefund"
v-if=
"orderInfo.state == 2"
class=
"btn"
>
申请退款
</a>
<a
type=
"primary"
@
click=
"toRefund"
v-if=
"orderInfo.state == 2"
class=
"btn
_cancel
"
>
申请退款
</a>
<a
type=
"primary"
@
click=
"oneMoreOrder(orderInfo)"
v-if=
"orderInfo.state != 1"
class=
"btn"
>
再来一单
</a>
</div>
</div>
<div
class=
"order_flow"
>
<div
v-if=
"qrShow"
class=
"code"
>
取单码
{{
orderInfo
.
orderNum
}}
</div>
<div
v-if=
"qrShow"
class=
"qr_code"
>
<image
mode=
"aspectFit"
:src=
"ewmImg"
class=
"qr"
></image>
<view
class=
"status_text"
>
{{
qrText
}}
</view>
<div
class=
"realQrcodeBox"
v-if=
"qrShow&&isBuild"
>
<image
mode=
"aspectFit"
:src=
"ewmImg"
class=
"qr_real"
></image>
</div>
<div
v-if=
"qrShow&&!isBuild"
class=
"qr_code"
>
<image
mode=
"aspectFit"
:src=
"'/static/imgs/erweimazhedang.png'"
class=
"qr"
></image>
<view
class=
"status_text"
>
——制作完成后才能扫哦——
</view>
</div>
<canvas
v-if=
"qrShow"
class=
"canvas-code"
canvas-id=
"myQrcode"
style=
"background:#fff;width: 200px;height: 200px; display:block; left:-800rpx;position:absolute;"
/>
<div
v-if=
"qrShow"
class=
"flow_describe"
>
<h3>
扫码流程
</h3>
<image
:mode=
"'aspectFit'"
class=
"flow_img"
src=
"/static/imgs/order_flow.png"
></image>
<image
:mode=
"'aspectFit'"
class=
"flow_img"
src=
"/static/imgs/saomaliucheng.png"
></image>
</div>
</div>
<div
class=
"shop_info"
>
<div
class=
"address"
>
<div
class=
"address_1"
>
{{
orderInfo
.
shop
.
name
}}
</div>
...
...
@@ -36,7 +47,7 @@
<div
class=
"goods_text"
>
<div
class=
"goods_name"
>
<div
class=
"name"
>
{{
item
.
goodsName
}}
</div>
<div
class=
"price"
>
¥
{{
Utils
.
isInteger
(
setPrice
(
item
.
realAmount
)
)
}}
</div>
<div
class=
"price"
>
¥
{{
Utils
.
isInteger
(
item
.
realAmount
)
}}
</div>
</div>
<div
class=
"goods_psce"
>
<div
class=
"psce_name"
>
...
...
@@ -65,32 +76,10 @@
<div
class=
"size"
>
共
{{
totalNum
}}
件商品
</div>
<div>
<span
class=
"paid_in"
>
实付
</span>
<span
class=
"money"
>
¥
{{
Utils
.
isInteger
(
setPrice
(
orderInfo
.
amount
)
)
}}
</span>
<span
class=
"money"
>
¥
{{
Utils
.
isInteger
(
orderInfo
.
amount
)
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"order_describe"
>
<h3>
订单信息
</h3>
<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"
>
<span>
有疑问,联系客服
</span>
<u-icon
name=
"arrow-right"
color=
"#000"
size=
"20"
></u-icon>
</button>
</div>
</div>
</
template
>
...
...
@@ -106,9 +95,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
:
this
.
orderInfo
.
pickCode
,
text
:
'http://www.baidu.com'
,
width
:
141
,
//canvas 画布的宽
height
:
141
,
//canvas 画布的高
padding
:
0
,
// 生成二维码四周自动留边宽度,不传入默认为0
...
...
@@ -117,15 +106,15 @@ export default {
this
.
ewmImg
=
res
.
path
}
})
}
else
{
this
.
ewmImg
=
'/static/imgs/noQr.png'
}
this
.
isBuild
=
isBuild
},
data
()
{
return
{
orderInfo
:
{},
ewmImg
:
''
,
Utils
Utils
,
isBuild
:
true
}
},
methods
:
{
...
...
@@ -182,13 +171,14 @@ export default {
computed
:
{
totalNum
()
{
let
totalNum
=
0
;
this
.
orderInfo
.
orderDetails
.
forEach
(
item
=>
{
const
{
orderDetails
}
=
this
.
orderInfo
orderDetails
.
forEach
(
item
=>
{
totalNum
+=
parseInt
(
item
.
num
);
})
return
totalNum
;
},
qrShow
()
{
console
.
log
(
this
.
orderInfo
.
orderDetails
);
return
[
'2'
,
'3'
,
'4'
,
'5'
].
indexOf
(
this
.
orderInfo
.
state
)
>=
0
;
},
// 1 未支付
...
...
@@ -260,110 +250,117 @@ export default {
}
.order_status
{
width
:
590
rpx
;
//
max-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-family
:
PingFangSC-
Medium
,
PingFang
SC
;
font-weight
:
5
00
;
color
:
#
333333
;
text-align
:
center
;
}
.tips
{
text-align
:
center
;
margin-top
:
19
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
}
.btns
{
margin-top
:
26
rpx
;
text-align
:
center
;
width
:
428
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
margin
:
0
auto
;
justify-content
:
space-around
;
a
{
line-height
:
64
rpx
;
}
}
.btn
{
width
:
160
rpx
;
height
:
52
rpx
;
background
:
#006ECF
;
border-radius
:
6
rpx
;
display
:
inline-block
;
margin
:
0
rpx
20
rpx
;
margin-top
:
20
rpx
;
padding
:
0
;
line-height
:
52
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#FFFFFF
;
font-size
:
20
rpx
;
text-align
:
center
;
width
:
167
rpx
;
height
:
64
rpx
;
background
:
#003AE9
;
border-radius
:
2
rpx
;
}
.btn_cancel
{
width
:
160
rpx
;
height
:
52
rpx
;
border
:
1
rpx
solid
#EEEEEE
;
border-radius
:
6
rpx
;
display
:
inline-block
;
margin
:
0
rpx
20
rpx
;
margin-top
:
20
rpx
;
padding
:
0
;
line-height
:
52
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#006ECF
;
font-size
:
20
rpx
;
text-align
:
center
;
box-sizing
:
border-box
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#003AE9
;
width
:
167
rpx
;
height
:
64
rpx
;
border-radius
:
2
rpx
;
border
:
2
rpx
solid
#003AE9
;
}
}
.order_flow
{
background
:
#FFFFFF
;
border-radius
:
10
rpx
;
margin-top
:
32
rpx
;
margin
:
32
rpx
;
padding-top
:
55
rpx
;
.code
{
font-size
:
36
rpx
;
text-align
:
center
;
font-size
:
32
rpx
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
font-weight
:
600
;
color
:
#000000
;
text-align
:
center
;
padding-top
:
30
rpx
;
color
:
#333333
;
}
.qr_code
{
width
:
508
rpx
;
height
:
510
rpx
;
height
:
314
rpx
;
display
:
block
;
margin
:
25
rpx
auto
;
background-color
:
#ccc
;
margin
:
92
rpx
auto
;
position
:
relative
;
.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%
);
margin-top
:
40
rpx
;
text-align
:
center
;
font-size
:
28
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#666666
;
line-height
:
40
rpx
;
letter-spacing
:
1
rpx
;
}
.qr
{
width
:
100%
;
height
:
100%
;
}
}
.realQrcodeBox
{
margin
:
20
rpx
auto
;
width
:
510
rpx
;
height
:
510
rpx
;
image{
width
:
100%
;
height
:
100%
;
}
}
.flow_describe
{
width
:
590
rpx
;
width
:
100%
;
height
:
300
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
;
padding
:
30
rpx
;
margin-bottom
:
10
rpx
;
padding-top
:
50
rpx
;
padding-bottom
:
60
rpx
;
h3
{
font-size
:
28
rpx
;
...
...
@@ -373,20 +370,17 @@ export default {
}
.flow_img
{
width
:
590
rpx
;
height
:
211
rpx
;
width
:
100%
;
height
:
100%
;
display
:
block
;
}
}
}
.shop_info
{
width
:
686
rpx
;
margin
:
32
rpx
;
background
:
#FFFFFF
;
border-radius
:
10
rpx
;
margin
:
0
auto
;
padding
:
0
rpx
32
rpx
;
box-sizing
:
border-box
;
padding
:
40
rpx
30
rpx
;
h3
{
font-size
:
28
rpx
;
...
...
@@ -396,23 +390,24 @@ export default {
}
.address
{
padding-top
:
20
rpx
;
border-bottom
:
1
rpx
solid
#EEEEEE
;
padding-bottom
:
20
rpx
;
border-bottom
:
1
rpx
solid
#ECECEC
;
padding-bottom
:
25
rpx
;
.address_1
{
font-size
:
28
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
40
rpx
;
}
.address_2
{
margin-top
:
5
rpx
;
font-size
:
2
0
rpx
;
margin-top
:
18
rpx
;
font-size
:
2
4
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
34
rpx
;
}
}
...
...
@@ -426,8 +421,8 @@ export default {
}
.goods_img
{
height
:
80
rpx
;
width
:
80
rpx
;
height
:
112
rpx
;
width
:
112
rpx
;
background-color
:
#eee
;
margin-right
:
30
rpx
;
}
...
...
@@ -442,24 +437,24 @@ export default {
align-items
:
center
;
.name
{
font-size
:
2
4
rpx
;
font-family
:
PingFangSC-
Semibold
,
PingFang
SC
;
font-weight
:
6
00
;
color
:
#
333333
;
font-size
:
2
8
rpx
;
font-family
:
PingFangSC-
Regular
,
PingFang
SC
;
font-weight
:
4
00
;
color
:
#
666666
;
}
.price
{
font-size
:
28
rpx
;
font-family
:
Arial-BoldMT
,
Arial
;
font-weight
:
normal
;
color
:
#
000000
;
font-family
:
Futura-Medium
,
Futura
;
font-weight
:
500
;
color
:
#
333333
;
}
.psce_name
{
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#
666666
;
color
:
#
999999
;
}
.size
{
...
...
pages/menu/menu.vue
View file @
ac6f7b42
...
...
@@ -18,7 +18,7 @@
<view
class=
"user-name"
v-if=
"userms"
>
HI!
{{
userInfo
.
customerName
||
'我是谁'
}}
</view>
<view
class=
"user-name"
v-else
>
未登录
</view>
<view
class=
"dialog"
>
<view
class=
"content"
v-if=
"userms"
>
如果以后再也见不到你,那就祝你早安
,午安,晚安...
</view>
<view
class=
"content"
v-if=
"userms"
>
如果以后再也见不到你,那就祝你早安
</view>
<view
class=
"content"
v-if=
"!userms"
>
请您尽快登录
</view>
</view>
</view>
...
...
static/imgs/erweimazhedang.png
0 → 100644
View file @
ac6f7b42
51.7 KB
static/imgs/saomaliucheng.png
0 → 100644
View file @
ac6f7b42
56.2 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