Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
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
panyongping
uni-pdtravel
Commits
8c28911f
Commit
8c28911f
authored
Jan 15, 2025
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联票bug处理
parent
81a70a06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
119 additions
and
111 deletions
+119
-111
jointElectronicTicket.vue
.../my/order/jointElectronicTicket/jointElectronicTicket.vue
+119
-111
No files found.
pages/my/order/jointElectronicTicket/jointElectronicTicket.vue
View file @
8c28911f
...
...
@@ -438,12 +438,12 @@ export default {
},
data
()
{
return
{
detailTimer
:
null
,
//详情时间函数
codeTimer
:
null
,
//动态二维码时间函数
numberTimer
:
null
,
//获取排号信息时间函数
codeFlag
:
null
,
//动态二维码函数
countFlag
:
null
,
//倒计时时间函数
numberFlag
:
null
,
////获取排号信息时间函数2
detailTimer
:
null
,
//详情时间函数
codeTimer
:
null
,
//动态二维码时间函数
numberTimer1
:
null
,
//获取排号信息时间函数1
numberTimer2
:
null
,
////获取排号信息时间函数2
Brightness
:
''
,
//屏幕亮度
openid
:
uni
.
getStorageSync
(
'openid'
)
||
''
,
//openid
companyId
:
''
,
//公司Id
...
...
@@ -493,14 +493,14 @@ export default {
this
.
codeTimer
=
null
}
//清除排号信息函数
if
(
this
.
numberTimer
)
{
clearTimeout
(
this
.
numberTimer
)
this
.
numberTimer
=
null
if
(
this
.
numberTimer
1
)
{
clearTimeout
(
this
.
numberTimer
1
)
this
.
numberTimer
1
=
null
}
//清除排号信息函数2
if
(
this
.
number
Flag
)
{
clearTimeout
(
this
.
number
Flag
)
this
.
number
Flag
=
null
if
(
this
.
number
Timer2
)
{
clearTimeout
(
this
.
number
Timer2
)
this
.
number
Timer2
=
null
}
//清除倒计时函数
if
(
this
.
countFlag
)
{
...
...
@@ -530,14 +530,14 @@ export default {
this
.
codeTimer
=
null
}
//清除排号信息函数
if
(
this
.
numberTimer
)
{
clearTimeout
(
this
.
numberTimer
)
this
.
numberTimer
=
null
if
(
this
.
numberTimer
1
)
{
clearTimeout
(
this
.
numberTimer
1
)
this
.
numberTimer
1
=
null
}
//清除排号信息函数2
if
(
this
.
number
Flag
)
{
clearTimeout
(
this
.
number
Flag
)
this
.
number
Flag
=
null
if
(
this
.
number
Timer2
)
{
clearTimeout
(
this
.
number
Timer2
)
this
.
number
Timer2
=
null
}
//清除倒计时函数
if
(
this
.
countFlag
)
{
...
...
@@ -561,9 +561,10 @@ export default {
userId
:
this
.
openid
,
//用户Id
}
this
.
$request
(
'order/userOrder/findOrderDetail'
,
data
).
then
((
res
)
=>
{
try
{
if
(
res
.
code
==
'00'
){
//防止代码bug进入catch里面,一直请求接口影响性能
try
{
this
.
orderInfo
=
res
.
data
let
orderInfo
=
res
.
data
this
.
orderInfo
.
childs
.
forEach
(
item
=>
{
...
...
@@ -759,15 +760,16 @@ export default {
}
}
}
}
catch
(
e
){
}
else
{
uni
.
showToast
({
title
:
e
,
title
:
res
.
messag
e
,
icon
:
'none'
})
}
}
else
{
}
catch
(
e
)
{
uni
.
showToast
({
title
:
res
.
messag
e
,
title
:
e
,
icon
:
'none'
})
}
...
...
@@ -832,6 +834,7 @@ export default {
}
clearInterval
(
this
.
codeFlag
)
this
.
$request
(
'distribution/distribution/getAutoCode'
,
data
).
then
((
res
)
=>
{
try
{
if
(
res
.
code
==
'00'
){
item
.
codeList
=
res
.
data
.
codes
if
(
item
.
codeList
.
length
==
0
){
...
...
@@ -850,6 +853,12 @@ export default {
title
:
res
.
message
,
icon
:
'none'
})
}
}
catch
(
e
){
uni
.
showToast
({
title
:
e
,
icon
:
'none'
})
}
}).
catch
((
err
)
=>
{
this
.
codeTimer
=
setTimeout
(()
=>
{
...
...
@@ -923,11 +932,6 @@ export default {
}
})
this
.
$forceUpdate
()
//每两分钟刷新一次
this
.
numberFlag
=
setTimeout
(()
=>
{
this
.
getSortInfo
(
item
)
},
120
*
1000
)
}
}
else
{
uni
.
showToast
({
...
...
@@ -935,6 +939,10 @@ export default {
icon
:
'none'
})
}
//每两分钟刷新一次
this
.
numberTimer2
=
setTimeout
(()
=>
{
this
.
getSortInfo
(
item
)
},
120
*
1000
)
}
catch
(
e
){
uni
.
showToast
({
title
:
e
,
...
...
@@ -942,7 +950,7 @@ export default {
})
}
}).
catch
((
err
)
=>
{
this
.
numberTimer
=
setTimeout
(()
=>
{
this
.
numberTimer
1
=
setTimeout
(()
=>
{
this
.
getSortInfo
(
item
)
},
2000
)
})
...
...
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