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
b511068a
Commit
b511068a
authored
Jun 10, 2022
by
weijiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改状态显示
parent
edeacfa5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
18 deletions
+13
-18
components/OrderQrCode/index.vue
+2
-2
orderSubPackage/pages/orderInfo/index.vue
+10
-15
pages/order/order.vue
+1
-1
No files found.
components/OrderQrCode/index.vue
View file @
b511068a
...
@@ -53,14 +53,14 @@ export default {
...
@@ -53,14 +53,14 @@ export default {
// 15 已退款
// 15 已退款
// 50 其他人工干预状态
// 50 其他人工干预状态
showMask
()
{
showMask
()
{
return
[
'2'
,
'3'
].
indexOf
(
this
.
orderInfo
.
state
)
!=
-
1
return
[
'2'
,
'3'
].
indexOf
(
this
.
orderInfo
.
state
)
!=
-
1
;
},
},
orderStatusText
()
{
orderStatusText
()
{
switch
(
this
.
orderInfo
.
state
)
{
switch
(
this
.
orderInfo
.
state
)
{
case
'2'
:
case
'2'
:
return
'已支付'
return
'已支付'
case
'3'
:
case
'3'
:
return
'
等待
中'
return
'
制作
中'
default
:
default
:
return
''
return
''
}
}
...
...
orderSubPackage/pages/orderInfo/index.vue
View file @
b511068a
...
@@ -73,9 +73,6 @@
...
@@ -73,9 +73,6 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"order_describe"
>
<div
class=
"order_describe"
>
<h3>
订单信息
</h3>
<h3>
订单信息
</h3>
<div
class=
"item"
>
<div
class=
"item"
>
...
@@ -90,14 +87,12 @@
...
@@ -90,14 +87,12 @@
<span
class=
"label"
>
订单编号:
</span>
<span
class=
"label"
>
订单编号:
</span>
<span
class=
"value"
>
{{
orderInfo
.
orderNo
}}
</span>
<span
class=
"value"
>
{{
orderInfo
.
orderNo
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"customer_service"
>
<div
class=
"customer_service"
>
<button
class=
"function_item_text"
open-type=
"contact"
bindcontact=
"handleContact"
session-from=
"sessionFrom"
>
<button
class=
"function_item_text"
open-type=
"contact"
bindcontact=
"handleContact"
session-from=
"sessionFrom"
>
<span>
有疑问,联系客服
</span>
<span>
有疑问,联系客服
</span>
<u-icon
name=
"arrow-right"
color=
"#000"
size=
"20"
></u-icon>
<u-icon
name=
"arrow-right"
color=
"#000"
size=
"20"
></u-icon>
</button>
</button>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -114,7 +109,7 @@ export default {
...
@@ -114,7 +109,7 @@ export default {
const
resData
=
uni
.
getStorageSync
(
'orderInfo'
);
const
resData
=
uni
.
getStorageSync
(
'orderInfo'
);
this
.
orderInfo
=
resData
this
.
orderInfo
=
resData
this
.
ewmImg
=
'/static/imgs/noQr.png'
this
.
ewmImg
=
'/static/imgs/noQr.png'
const
isBuild
=
[
'
4'
,
'5'
,
'6'
,
'7
'
].
indexOf
(
this
.
orderInfo
.
state
)
!=
-
1
;
const
isBuild
=
[
'
2'
,
'3'
,
'4'
,
'5
'
].
indexOf
(
this
.
orderInfo
.
state
)
!=
-
1
;
if
(
isBuild
)
{
if
(
isBuild
)
{
new
QRCode
(
'myQrcode'
,
{
new
QRCode
(
'myQrcode'
,
{
...
@@ -188,9 +183,9 @@ export default {
...
@@ -188,9 +183,9 @@ export default {
},
},
},
},
computed
:
{
computed
:
{
qrShow
()
{
qrShow
()
{
return
[
'8'
,
'9'
,
'10'
,
'11'
,
'12'
,
'13'
,
'14'
,
'15'
,
'50'
].
indexOf
(
this
.
orderInfo
.
state
)
==
-
1
console
.
log
(
"order state:"
+
this
.
orderInfo
.
state
);
return
[
'2'
,
'3'
,
'4'
,
'5'
].
indexOf
(
this
.
orderInfo
.
state
)
!=
-
1
},
},
isBuildQrcode
()
{
isBuildQrcode
()
{
return
return
...
@@ -300,7 +295,7 @@ export default {
...
@@ -300,7 +295,7 @@ export default {
.btn_cancel
{
.btn_cancel
{
width
:
160
rpx
;
width
:
160
rpx
;
height
:
52
rpx
;
height
:
52
rpx
;
border
:
1
rpx
solid
#
006ECF
;
border
:
1
rpx
solid
#
CCCCCC
;
border-radius
:
6
rpx
;
border-radius
:
6
rpx
;
display
:
inline-block
;
display
:
inline-block
;
margin
:
20
rpx
;
margin
:
20
rpx
;
...
@@ -485,7 +480,7 @@ export default {
...
@@ -485,7 +480,7 @@ export default {
.discount
{
.discount
{
margin-top
:
24
rpx
;
margin-top
:
24
rpx
;
padding-bottom
:
24
rpx
;
padding-bottom
:
24
rpx
;
border-bottom
:
1
rpx
solid
#
666
;
border-bottom
:
1
rpx
solid
#
CCCCCC
;
.discount_1
{
.discount_1
{
display
:
flex
;
display
:
flex
;
...
@@ -566,7 +561,7 @@ export default {
...
@@ -566,7 +561,7 @@ export default {
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#000000
;
color
:
#000000
;
border-bottom
:
1
rpx
solid
#
666
;
border-bottom
:
1
rpx
solid
#
CCCCCC
;
}
}
.item
{
.item
{
...
...
pages/order/order.vue
View file @
b511068a
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-if=
"item.state ==
4 || item.state == 5 || item.state == 6 || item.state == 7
"
<view
v-if=
"item.state ==
2 || item.state == 3 || item.state == 4 || item.state == 5
"
class=
"qr_code"
>
class=
"qr_code"
>
<image
class=
"qr_code_img"
src=
"/static/imgs/icon-barcode.png"
></image>
<image
class=
"qr_code_img"
src=
"/static/imgs/icon-barcode.png"
></image>
<view
class=
"qr_text"
>
点击二维码取单
</view>
<view
class=
"qr_text"
>
点击二维码取单
</view>
...
...
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