Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
b297a824
Commit
b297a824
authored
May 27, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点击接单之后,立即退出,延迟的页面跳转不需要执行跳转
parent
b28e7060
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
detail.vue
src/pages/order/detail.vue
+15
-14
No files found.
src/pages/order/detail.vue
View file @
b297a824
...
@@ -273,7 +273,8 @@
...
@@ -273,7 +273,8 @@
dateItem
:
null
,
dateItem
:
null
,
centerBtnDisabled
:
false
,
centerBtnDisabled
:
false
,
isFromMine
:
false
,
isFromMine
:
false
,
settlementInfo
:
{
formatTime
:
'-'
,
list
:
[],
amount
:
''
}
settlementInfo
:
{
formatTime
:
'-'
,
list
:
[],
amount
:
''
},
unloaded
:
false
}
}
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
...
@@ -295,9 +296,11 @@
...
@@ -295,9 +296,11 @@
}
}
},
},
onHide
()
{
// onHide() {
this
.
closeLocationChange
()
// this.closeLocationChange()
},
onUnload
()
{
// },
onUnload
()
{
this
.
unloaded
=
true
this
.
closeLocationChange
()
this
.
closeLocationChange
()
},
},
computed
:
{
computed
:
{
...
@@ -722,16 +725,14 @@
...
@@ -722,16 +725,14 @@
this
.
$refs
.
uToast
.
show
({
this
.
$refs
.
uToast
.
show
({
title
:
this
.
centerButtonText
+
'操作成功'
,
title
:
this
.
centerButtonText
+
'操作成功'
,
type
:
'success'
,
type
:
'success'
,
// isTab:true,
duration
:
1000
,
// url: 'pages/order/detail',
// params: {
// id: this.order.orderId
// }
callback
:
function
(){
callback
:
function
(){
this
.
clicking
=
false
if
(
self
.
unloaded
===
false
)
{
// 如果用户一秒钟之内没有后退退出该页面才跳转
uni
.
redirectTo
({
self
.
clicking
=
false
url
:
'pages/order/detail?id='
+
self
.
order
.
orderId
uni
.
redirectTo
({
});
url
:
'pages/order/detail?id='
+
self
.
order
.
orderId
});
}
}
}
})
})
}
else
{
}
else
{
...
@@ -741,7 +742,7 @@
...
@@ -741,7 +742,7 @@
// 如果不传此type参数,默认为default,也可以手动写上 type: 'default'
// 如果不传此type参数,默认为default,也可以手动写上 type: 'default'
type
:
'warning'
,
type
:
'warning'
,
callback
:
function
()
{
callback
:
function
()
{
this
.
clicking
=
false
self
.
clicking
=
false
res
.
data
.
message
===
'抱歉,手快的师傅已经抢到此单!'
?
self
.
isGan
():
''
res
.
data
.
message
===
'抱歉,手快的师傅已经抢到此单!'
?
self
.
isGan
():
''
}
}
})
})
...
...
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