Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
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
viitto
pptist
Commits
9090f719
Commit
9090f719
authored
Jul 11, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
868204dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
62 deletions
+62
-62
Order.vue
src/views/UserCenter/Order.vue
+1
-0
OrderDetail.vue
src/views/UserCenter/OrderDetail.vue
+61
-62
No files found.
src/views/UserCenter/Order.vue
View file @
9090f719
...
...
@@ -113,6 +113,7 @@
</div>
</
template
>
<!-- 历史发票列表 -->
<
template
v-if=
"activeName=='invoiceHistory'&&orders && orders.length>0 && !loading"
>
<div
v-loading=
"CancelLoading"
>
<div
class=
"order-body order-InvoiceC"
v-for=
"x in orders"
:key=
"x.orderid"
>
...
...
src/views/UserCenter/OrderDetail.vue
View file @
9090f719
<
template
>
<div
class=
"row items-center"
>
<IconLeft
:size=
"18"
class=
"q-mr-md cursor-pointer"
@
click=
"forwardOrder"
></IconLeft>
<div
class=
"text-weight-bold cursor-pointer"
@
click=
"forwardOrder"
>
订单/发票
</div>
</div>
<div
v-loading=
"CancelLoading"
>
<template
v-if=
"order && !loading"
>
<div
class=
"q-mt-xl q-pa-xl rounded bg-info"
>
<el-steps
style=
"max-width: 100%;margin: 0 auto;"
:active=
"active"
align-center
>
<el-step
title=
"选择商品"
description=
""
/>
<el-step
title=
"确认下单"
description=
""
/>
<el-step
title=
"待支付"
description=
""
/>
<el-step
:title=
"order.status==3?'交易取消':'交易完成'"
description=
""
/>
</el-steps>
<div
class=
"q-mt-xl text-center text-weight-bold"
style=
"font-size: 18px;"
>
订单状态:
{{
order
.
statusname
}}
</div>
<div
v-if=
"order.status==1"
class=
"q-mt-md row items-center flex-center"
style=
"font-size: 13px;"
>
<span>
请在
</span>
<el-countdown
title=
""
format=
"DD [天] HH:mm:ss"
:value=
"countValue"
value-style=
"font-size:13px;color:#f89c53;"
class=
"q-mx-md inline"
/>
<span>
内完成转账,超时订单自动取消
</span>
</div>
<div
class=
"row items-center flex-center q-mt-xl"
v-if=
"order.status==1"
>
<el-button
size=
"large"
@
click=
"goControls(2)"
>
取消订单
</el-button>
<el-button
type=
"primary"
size=
"large"
@
click=
"goControls(1)"
>
去支付
</el-button>
</div>
</div>
<div
class=
"order-bar rounded row q-mt-xl"
>
<div
class=
"item"
style=
"width: 280px !important; min-width: 280px; text-align: left;"
>
商品信息
</div>
<div
class=
"item col"
>
时长
</div>
<div
class=
"item col"
>
单价
</div>
<div
class=
"item col"
>
数量
</div>
<div
class=
"item none-width"
>
<div
style=
"background-color: rgba(0,0,0,.08);width:1px"
>
</div>
<div
v-loading=
"CancelLoading"
>
<template
v-if=
"order && !loading"
>
<div
class=
"q-mt-xl q-pa-xl rounded bg-info"
>
<el-steps
style=
"max-width: 100%;margin: 0 auto;"
:active=
"active"
align-center
>
<el-step
title=
"选择商品"
description=
""
/>
<el-step
title=
"确认下单"
description=
""
/>
<el-step
title=
"待支付"
description=
""
/>
<el-step
:title=
"order.status==3?'交易取消':'交易完成'"
description=
""
/>
</el-steps>
<div
class=
"q-mt-xl text-center text-weight-bold"
style=
"font-size: 18px;"
>
订单状态:
{{
order
.
statusname
}}
</div>
<div
v-if=
"order.status==1"
class=
"q-mt-md row items-center flex-center"
style=
"font-size: 13px;"
>
<span>
请在
</span>
<el-countdown
title=
""
format=
"DD [天] HH:mm:ss"
:value=
"countValue"
value-style=
"font-size:13px;color:#f89c53;"
class=
"q-mx-md inline"
/>
<span>
内完成转账,超时订单自动取消
</span>
</div>
<div
class=
"row items-center flex-center q-mt-xl"
v-if=
"order.status==1"
>
<el-button
size=
"large"
@
click=
"goControls(2)"
>
取消订单
</el-button>
<el-button
type=
"primary"
size=
"large"
@
click=
"goControls(1)"
>
去支付
</el-button>
</div>
</div>
<div
class=
"
item col"
>
小计
</div
>
</div>
<div
class=
"order-body q-mt-lg"
>
<div
class=
"order-item rounded"
>
<div
class=
"
title"
>
<span>
{{
order
.
create
}}
</span
>
<
span
class=
"q-ml-md"
>
{{
order
.
ordernum
}}
</span
>
<div
class=
"
order-bar rounded row q-mt-xl"
>
<div
class=
"item"
style=
"width: 280px !important; min-width: 280px; text-align: left;"
>
商品信息
</div>
<div
class=
"item col"
>
时长
</div
>
<div
class=
"item col"
>
单价
</div
>
<div
class=
"
item col"
>
数量
</div
>
<div
class=
"item none-width"
>
<
div
style=
"background-color: rgba(0,0,0,.08);width:1px"
>
</div
>
</div>
<div
class=
"bg-white rounded row items-center"
>
<div
class=
"item row items-center"
style=
"width: 280px !important; min-width: 280px; text-align: left;padding:24px;"
>
<img
:src=
"order.cover"
style=
"width:72px;"
class=
"rounded"
>
<div
class=
"q-ml-lg"
>
{{
order
.
pricetypename
}}
_
{{
order
.
vipname
}}
</div>
</div>
<div
class=
"item col"
>
{{
order
.
productname
}}
</div>
<div
class=
"item col"
>
¥
{{
order
.
price
.
toFixed
(
2
)
}}
</div>
<div
class=
"item col"
>
{{
order
.
use
}}
席位
</div>
<div
class=
"item none-width"
>
<div
style=
"background-color: rgba(0,0,0,.08);width:1px;height:72px;"
>
</div>
<div
class=
"item col"
>
小计
</div>
</div>
<div
class=
"order-body q-mt-lg"
>
<div
class=
"order-item rounded"
>
<div
class=
"title"
>
<span>
{{
order
.
create
}}
</span>
<span
class=
"q-ml-md"
>
{{
order
.
ordernum
}}
</span>
</div>
<div
class=
"item col"
>
<div
class=
"text-weight-bold q-mb-sm"
style=
"font-size: 16px"
>
¥
{{
order
.
price
.
toFixed
(
2
)
}}
</div>
<div
class=
"bg-white rounded row items-center"
>
<div
class=
"item row items-center"
style=
"width: 280px !important; min-width: 280px; text-align: left;padding:24px;"
>
<img
:src=
"order.cover"
style=
"width:72px;"
class=
"rounded"
>
<div
class=
"q-ml-lg"
>
{{
order
.
pricetypename
}}
_
{{
order
.
vipname
}}
</div>
</div>
<div
class=
"item col"
>
{{
order
.
productname
}}
</div>
<div
class=
"item col"
>
¥
{{
order
.
price
.
toFixed
(
2
)
}}
</div>
<div
class=
"item col"
>
{{
order
.
use
}}
席位
</div>
<div
class=
"item none-width"
>
<div
style=
"background-color: rgba(0,0,0,.08);width:1px;height:72px;"
>
</div>
</div>
<div
class=
"item col"
>
<div
class=
"text-weight-bold q-mb-sm"
style=
"font-size: 16px"
>
¥
{{
order
.
price
.
toFixed
(
2
)
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"q-mt-lg text-right"
>
<span
style=
"font-size: 14px;"
>
订单总金额:¥
</span>
<span
style=
"font-size: 18px"
class=
"text-weight-bold text-dark"
>
{{
order
.
price
.
toFixed
(
2
)
}}
</span>
</div>
<div
class=
"q-mt-lg text-right"
v-if=
"order.status==2"
>
<span
style=
"font-size: 14px;"
>
实付总金额:¥
</span>
<span
style=
"font-size: 18px"
class=
"text-weight-bold text-dark text-negative"
>
{{
order
.
price
.
toFixed
(
2
)
}}
</span>
</div>
</
template
>
<div
v-if=
"loading"
style=
"height: 200px;margin-top: 100px;"
v-loading=
"loading"
></div>
<div
v-if=
"!order && !loading"
>
<el-empty
class=
"q-ma-xl"
description=
"暂无数据"
/>
</div>
<div
class=
"q-mt-lg text-right"
>
<span
style=
"font-size: 14px;"
>
订单总金额:¥
</span>
<span
style=
"font-size: 18px"
class=
"text-weight-bold text-dark"
>
{{
order
.
price
.
toFixed
(
2
)
}}
</span>
</div>
<div
class=
"q-mt-lg text-right"
v-if=
"order.status==2"
>
<span
style=
"font-size: 14px;"
>
实付总金额:¥
</span>
<span
style=
"font-size: 18px"
class=
"text-weight-bold text-dark text-negative"
>
{{
order
.
price
.
toFixed
(
2
)
}}
</span>
</div>
</
template
>
<div
v-if=
"loading"
style=
"height: 200px;margin-top: 100px;"
v-loading=
"loading"
></div>
<div
v-if=
"!order && !loading"
>
<el-empty
class=
"q-ma-xl"
description=
"暂无数据"
/>
</div>
</div>
<WePay
v-if=
"showPay"
:orderid=
"order.orderid"
@
close=
"showPay=false"
@
success=
"showPay=false,getOrder()"
></WePay>
</template>
...
...
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