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
18ff15a7
Commit
18ff15a7
authored
Sep 15, 2021
by
ben.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:秒杀去掉我的订单
parent
0fccd4a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
extends.js
src/views/pay/extends.js
+1
-6
index.vue
src/views/pay/index.vue
+3
-1
No files found.
src/views/pay/extends.js
View file @
18ff15a7
import
cookies
from
'
@/service/cookieStorage.service
'
;
import
localStorage
from
'
@/service/localStorage.service
'
;
export
const
goUrlExtends
=
{
methods
:
{
goHome
(
payStatus
)
{
...
...
@@ -27,12 +26,8 @@ export const goUrlExtends = {
});
}
const
returnUrl
=
this
.
getReturnUrl
();
let
isOrder
=
true
;
if
(
localStorage
.
get
(
'
hideOrder
'
))
{
isOrder
=
false
;
}
setTimeout
(()
=>
{
if
(
returnUrl
&&
isOrder
)
{
if
(
returnUrl
)
{
window
.
location
.
replace
(
`
${
returnUrl
}
/orderList`
);
return
;
}
...
...
src/views/pay/index.vue
View file @
18ff15a7
...
...
@@ -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"
/>
...
...
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