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
8e85b477
Commit
8e85b477
authored
May 12, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情页面防止弹出提示的3秒再次点击按钮
parent
cc8f6f40
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
detail.vue
src/pages/order/detail.vue
+7
-2
No files found.
src/pages/order/detail.vue
View file @
8e85b477
...
...
@@ -555,6 +555,7 @@
}
},
handleBtn
()
{
console
.
log
(
'click button'
)
if
(
!
this
.
submitType
){
return
;
}
...
...
@@ -606,7 +607,7 @@
this
.
clicking
=
true
this
.
$u
.
api
[
this
.
submitType
](
data
,
this
.
order
.
orderId
).
then
(
res
=>
{
let
self
=
this
this
.
clicking
=
false
if
((
res
.
data
.
code
!==
undefined
&&
res
.
data
.
code
===
200
)
||
(
res
.
code
!==
undefined
&&
res
.
code
===
200
)
)
{
this
.
$refs
.
uToast
.
show
({
...
...
@@ -618,6 +619,7 @@
// id: this.order.orderId
// }
callback
:
function
(){
this
.
clicking
=
false
uni
.
redirectTo
({
url
:
'pages/order/detail?id='
+
self
.
order
.
orderId
});
...
...
@@ -628,7 +630,10 @@
title
:
res
.
data
.
message
!==
undefined
?
res
.
data
.
message
:
res
.
message
,
// 如果不传此type参数,默认为default,也可以手动写上 type: 'default'
type
:
'warning'
,
callback
:
res
.
data
.
message
===
'抱歉,手快的师傅已经抢到此单!'
?
this
.
isGan
():
''
callback
:
function
()
{
this
.
clicking
=
false
res
.
data
.
message
===
'抱歉,手快的师傅已经抢到此单!'
?
this
.
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