Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
4a62675b
Commit
4a62675b
authored
Feb 27, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时器清除
parent
8f56d232
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
index.vue
take-order/pages/exam/index.vue
+4
-1
pay-ensure.vue
take-order/pages/settle/pay-ensure.vue
+20
-23
No files found.
take-order/pages/exam/index.vue
View file @
4a62675b
...
@@ -294,8 +294,10 @@
...
@@ -294,8 +294,10 @@
if
(
res
.
data
.
data
.
answerList
)
{
if
(
res
.
data
.
data
.
answerList
)
{
that
.
handleData
()
that
.
handleData
()
that
.
currentTime
=
100
that
.
currentTime
=
100
that
.
isSelect
=
false
//重置
that
.
isSelect
=
false
clearTimeout
(
this
.
timer
)
that
.
startCounting
()
that
.
startCounting
()
}
else
{
}
else
{
that
.
isSelect
=
true
that
.
isSelect
=
true
...
@@ -346,6 +348,7 @@
...
@@ -346,6 +348,7 @@
if
(
this
.
currentTime
>
0
)
{
if
(
this
.
currentTime
>
0
)
{
this
.
timer
=
setTimeout
(
this
.
startCounting
,
1000
);
this
.
timer
=
setTimeout
(
this
.
startCounting
,
1000
);
}
else
{
}
else
{
clearTimeout
(
this
.
timer
)
this
.
currentTime
=
100
this
.
currentTime
=
100
this
.
nextClick
()
this
.
nextClick
()
}
}
...
...
take-order/pages/settle/pay-ensure.vue
View file @
4a62675b
...
@@ -130,8 +130,6 @@
...
@@ -130,8 +130,6 @@
title
:
'支付中……'
title
:
'支付中……'
})
})
// 提交支付订单
// 提交支付订单
// wx_lite
// appid:wxd1d6eede324b0465
const
code
=
await
this
.
getCode
()
const
code
=
await
this
.
getCode
()
const
params
=
{
const
params
=
{
oid
:
this
.
settledInfo
.
record
.
id
,
oid
:
this
.
settledInfo
.
record
.
id
,
...
@@ -140,7 +138,6 @@
...
@@ -140,7 +138,6 @@
code
:
code
code
:
code
// appid:'wxd1d6eede324b0465'
// appid:'wxd1d6eede324b0465'
}
}
// const codeApiUrl = globalUrl.codeUrl.apiUrl;
const
response
=
await
this
.
$u
.
api
.
paySettleDeposit
(
params
)
const
response
=
await
this
.
$u
.
api
.
paySettleDeposit
(
params
)
if
(
response
.
status
!==
true
)
{
if
(
response
.
status
!==
true
)
{
uni
.
showToast
({
uni
.
showToast
({
...
@@ -149,6 +146,8 @@
...
@@ -149,6 +146,8 @@
})
})
return
return
}
}
let
timer
=
setTimeout
(
res
=>
{
clearTimeout
(
timer
)
uni
.
showModal
({
uni
.
showModal
({
title
:
'提示'
,
title
:
'提示'
,
content
:
'支付结果'
,
content
:
'支付结果'
,
...
@@ -164,6 +163,8 @@
...
@@ -164,6 +163,8 @@
}
}
}
}
});
});
},
1000
)
const
{
const
{
charge
,
charge
,
oid
oid
...
@@ -180,11 +181,7 @@
...
@@ -180,11 +181,7 @@
})
})
}
else
if
(
result
==
"fail"
)
{
}
else
if
(
result
==
"fail"
)
{
// charge 不正确或者微信公众账号/QQ 公众号/支付宝口碑支付失败时会在此处返回
// charge 不正确或者微信公众账号/QQ 公众号/支付宝口碑支付失败时会在此处返回
console
.
log
(
err
.
msg
)
// console.log(err.msg)
// uni.showToast({
// title: err.msg,
// icon:'none'
// })
}
else
if
(
result
==
"cancel"
)
{
}
else
if
(
result
==
"cancel"
)
{
// 微信公众账号、QQ 公众号、支付宝口碑支付取消支付
// 微信公众账号、QQ 公众号、支付宝口碑支付取消支付
uni
.
showToast
({
uni
.
showToast
({
...
...
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