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
0cf3b2be
Commit
0cf3b2be
authored
Oct 07, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.订单详情排号刷新时间修改
2.订单列表加载LOAD显示,查询刷新列表
parent
ceef740d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
electronicTicket.vue
pages/my/order/electronicTicket/electronicTicket.vue
+10
-2
orderList.vue
pages/my/order/orderList/orderList.vue
+11
-3
No files found.
pages/my/order/electronicTicket/electronicTicket.vue
View file @
0cf3b2be
...
@@ -554,6 +554,7 @@ export default {
...
@@ -554,6 +554,7 @@ export default {
imgUrlListType
:
false
,
imgUrlListType
:
false
,
imagePath
:
''
,
//图片接受地址
imagePath
:
''
,
//图片接受地址
imgTypeShow
:
true
,
//是否展示图片
imgTypeShow
:
true
,
//是否展示图片
sortRefreshNew
:
null
,
//当前时间
}
}
},
},
onShow
()
{
onShow
()
{
...
@@ -727,9 +728,16 @@ export default {
...
@@ -727,9 +728,16 @@ export default {
}
}
if
(
this
.
orderInfo
.
isFetch
==
1
){
//isFetch==1需要排队
if
(
this
.
orderInfo
.
isFetch
==
1
){
//isFetch==1需要排队
this
.
getSortInfo
()
this
.
getSortInfo
()
var
sortRefresh
=
new
Date
().
getTime
()
this
.
sortRefreshNew
=
JSON
.
parse
(
JSON
.
stringify
(
sortRefresh
))
this
.
timer2
=
setInterval
(()
=>
{
this
.
timer2
=
setInterval
(()
=>
{
this
.
getSortInfo
()
var
sortRefresh2
=
new
Date
().
getTime
()
},
1000
*
120
)
var
sorNum
=
sortRefresh2
-
this
.
sortRefreshNew
if
(
sorNum
>=
120000
){
this
.
sortRefreshNew
=
JSON
.
parse
(
JSON
.
stringify
(
sortRefresh2
))
this
.
getSortInfo
()
}
},
1000
)
// this.$once('hook:beforeDestroy',()=>{
// this.$once('hook:beforeDestroy',()=>{
// clearInterval(timer)
// clearInterval(timer)
// })
// })
...
...
pages/my/order/orderList/orderList.vue
View file @
0cf3b2be
...
@@ -498,9 +498,10 @@ export default {
...
@@ -498,9 +498,10 @@ export default {
this
.
queryLoad
=
false
this
.
queryLoad
=
false
if
(
res
.
code
==
'00'
){
if
(
res
.
code
==
'00'
){
this
.
phoneQuery
=
false
this
.
phoneQuery
=
false
uni
.
navigateTo
({
// uni.navigateTo({
url
:
'/pages/my/order/productList/productList'
// url: '/pages/my/order/productList/productList'
})
// })
this
.
getData
(
1
)
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
this
.
$refs
.
uToast
.
show
({
title
:
res
.
message
,
title
:
res
.
message
,
...
@@ -512,6 +513,10 @@ export default {
...
@@ -512,6 +513,10 @@ export default {
},
},
getData
(
flag
){
//获取订单列表
getData
(
flag
){
//获取订单列表
this
.
nodataShow
=
false
this
.
nodataShow
=
false
//显示加载框
uni
.
showLoading
({
title
:
'加载中'
})
if
(
this
.
isTrue
){
if
(
this
.
isTrue
){
this
.
isTrue
=
false
this
.
isTrue
=
false
if
(
this
.
orderStatus
==
'2'
){
//点击的待使用
if
(
this
.
orderStatus
==
'2'
){
//点击的待使用
...
@@ -586,6 +591,9 @@ export default {
...
@@ -586,6 +591,9 @@ export default {
}
}
}
}
})
})
//隐藏加载框
uni
.
hideLoading
()
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
this
.
$refs
.
uToast
.
show
({
title
:
'暂无订单信息'
,
title
:
'暂无订单信息'
,
...
...
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