Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cauchy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
cauchy-ui
Commits
291afcd0
Commit
291afcd0
authored
Sep 15, 2021
by
ben.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:秒杀收银台删除我的订单页面
parent
24f035c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
index.vue
src/views/pay/index.vue
+11
-1
No files found.
src/views/pay/index.vue
View file @
291afcd0
...
...
@@ -54,7 +54,9 @@
</cr-button>
</p>
<p
v-if=
"overtime"
class=
"btn"
>
<cr-button
type=
"default"
class=
"btn-default"
@
click=
"goOrderList"
>
我的订单
</cr-button>
<cr-button
v-if=
"isOrder"
type=
"default"
class=
"btn-default"
@
click=
"goOrderList"
>
我的订单
</cr-button
>
<cr-button
type=
"primary"
class=
"btn-primary"
@
click=
"goHome"
>
返回商城
</cr-button>
</p>
<p
class=
"placeholder"
/>
...
...
@@ -145,6 +147,7 @@ export default {
extends
:
goUrlExtends
,
data
()
{
return
{
isOrder
:
true
,
error
:
''
,
random
:
''
,
orderNo
:
''
,
...
...
@@ -216,6 +219,7 @@ export default {
}
},
mounted
()
{
this
.
getQuery
();
this
.
setIsOrder
();
this
.
orderNo
=
this
.
$route
.
query
.
orderNo
||
cookies
.
get
(
'
orderNo
'
)?.
orderNo
;
cookies
.
set
(
'
orderNo
'
,
{
orderNo
:
this
.
orderNo
});
...
...
@@ -233,6 +237,12 @@ export default {
this
.
getCouponList
(
this
.
orderNo
);
},
methods
:
{
getQuery
()
{
this
.
returnUrl
=
cookies
.
get
(
'
returnUrl
'
)
||
''
;
if
(
localStorage
.
get
(
'
hideOrder
'
))
{
this
.
isOrder
=
false
;
}
},
setIsOrder
()
{
const
{
hideOrder
}
=
this
.
$route
.
query
||
{};
if
(
hideOrder
)
{
...
...
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