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
440f9022
Commit
440f9022
authored
Jul 09, 2024
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调用修改
parent
9e790e93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
16 deletions
+24
-16
electronicTicket.vue
pages/my/order/electronicTicket/electronicTicket.vue
+23
-15
orderList.vue
pages/my/order/orderList/orderList.vue
+1
-1
No files found.
pages/my/order/electronicTicket/electronicTicket.vue
View file @
440f9022
...
@@ -90,6 +90,7 @@
...
@@ -90,6 +90,7 @@
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<!--sceneSortStatus 是否上下架 1是上架-->
<view
class=
"order-queueUp order-allType order-positionTop"
v-if=
"orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==4||orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==2||orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==5||orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==7"
>
<view
class=
"order-queueUp order-allType order-positionTop"
v-if=
"orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==4||orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==2||orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==5||orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==7"
>
<view
class=
"alltype-title"
>
<view
class=
"alltype-title"
>
<!-- <view class="title-line">
<!-- <view class="title-line">
...
@@ -660,7 +661,7 @@ export default {
...
@@ -660,7 +661,7 @@ export default {
this
.
ifyukuaiCode
=
option
.
ifyukuaiCode
||
''
this
.
ifyukuaiCode
=
option
.
ifyukuaiCode
||
''
//this.id = "z00167956572219584dc15634b62cf75"
//this.id = "z00167956572219584dc15634b62cf75"
this
.
openId
=
uni
.
getStorageSync
(
'openid'
)
//openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ
this
.
openId
=
uni
.
getStorageSync
(
'openid'
)
//openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ
//this.openId = 'o
h2UV1lyYABHMZ1rMlgjhVHyyYDQ
'//'oh2UV1lyYABHMZ1rMlgjhVHyyYDQ' oroHZ5FaUQ_SOOC_uQQP92fJpBRE
//this.openId = 'o
roHZ5FaUQ_SOOC_uQQP92fJpBRE
'//'oh2UV1lyYABHMZ1rMlgjhVHyyYDQ' oroHZ5FaUQ_SOOC_uQQP92fJpBRE
this
.
getDetail
()
this
.
getDetail
()
},
},
onUnload
()
{
onUnload
()
{
...
@@ -793,8 +794,11 @@ export default {
...
@@ -793,8 +794,11 @@ export default {
if
(
this
.
orderInfo
.
subOrderType
!=
4
&&
this
.
orderInfo
.
subOrderType
!=
5
){
if
(
this
.
orderInfo
.
subOrderType
!=
4
&&
this
.
orderInfo
.
subOrderType
!=
5
){
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
this
.
orderInfo
.
playDate
.
substr
(
0
,
10
)
==
this
.
$commonjs
.
today
()
&&
this
.
orderInfo
.
exchangeMode
==
4
||
this
.
orderInfo
.
playDate
.
substr
(
0
,
10
)
==
this
.
$commonjs
.
today
()
&&
this
.
orderInfo
.
exchangeMode
==
5
){
if
(
this
.
orderInfo
.
playDate
.
substr
(
0
,
10
)
==
this
.
$commonjs
.
today
()
&&
this
.
orderInfo
.
exchangeMode
==
4
||
this
.
orderInfo
.
playDate
.
substr
(
0
,
10
)
==
this
.
$commonjs
.
today
()
&&
this
.
orderInfo
.
exchangeMode
==
5
){
this
.
dynamicCode
()
if
(
this
.
orderInfo
.
orderStatus
==
2
||
this
.
orderInfo
.
orderStatus
==
4
||
this
.
orderInfo
.
orderStatus
==
5
||
this
.
orderInfo
.
orderStatus
==
7
){
//订单状态==2 4 5 7才调用动态二维码
this
.
qrCodeType
=
true
this
.
dynamicCode
()
this
.
qrCodeType
=
true
}
}
else
if
(
this
.
orderInfo
.
exchangeMode
==
1
){
}
else
if
(
this
.
orderInfo
.
exchangeMode
==
1
){
this
.
qecode
()
this
.
qecode
()
this
.
qrCodeType
=
false
this
.
qrCodeType
=
false
...
@@ -803,18 +807,22 @@ export default {
...
@@ -803,18 +807,22 @@ export default {
}
}
}
}
}
}
if
(
this
.
orderInfo
.
isFetch
==
1
){
//isFetch==1需要排队
if
(
this
.
orderInfo
.
isFetch
==
1
){
//isFetch==1需要排队
this
.
getSortInfo
()
if
(
this
.
orderInfo
.
orderStatus
==
2
||
this
.
orderInfo
.
orderStatus
==
4
||
this
.
orderInfo
.
orderStatus
==
5
||
this
.
orderInfo
.
orderStatus
==
7
){
//订单状态==2 4 5 7才可以调用排号接口
var
sortRefresh
=
new
Date
().
getTime
()
console
.
log
(
this
.
orderInfo
.
orderStatus
)
this
.
sortRefreshNew
=
JSON
.
parse
(
JSON
.
stringify
(
sortRefresh
))
this
.
getSortInfo
()
this
.
timer2
=
setInterval
(()
=>
{
var
sortRefresh
=
new
Date
().
getTime
()
var
sortRefresh2
=
new
Date
().
getTime
()
this
.
sortRefreshNew
=
JSON
.
parse
(
JSON
.
stringify
(
sortRefresh
))
var
sorNum
=
sortRefresh2
-
this
.
sortRefreshNew
this
.
timer2
=
setInterval
(()
=>
{
if
(
sorNum
>=
120000
){
var
sortRefresh2
=
new
Date
().
getTime
()
this
.
sortRefreshNew
=
JSON
.
parse
(
JSON
.
stringify
(
sortRefresh2
))
var
sorNum
=
sortRefresh2
-
this
.
sortRefreshNew
this
.
getSortInfo
()
if
(
sorNum
>=
120000
){
}
this
.
sortRefreshNew
=
JSON
.
parse
(
JSON
.
stringify
(
sortRefresh2
))
},
1000
)
this
.
getSortInfo
()
}
},
1000
)
}
// this.$once('hook:beforeDestroy',()=>{
// this.$once('hook:beforeDestroy',()=>{
// clearInterval(timer)
// clearInterval(timer)
// })
// })
...
...
pages/my/order/orderList/orderList.vue
View file @
440f9022
...
@@ -444,7 +444,7 @@ export default {
...
@@ -444,7 +444,7 @@ export default {
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
openId
=
uni
.
getStorageSync
(
'openid'
)
this
.
openId
=
uni
.
getStorageSync
(
'openid'
)
//this.openId = 'o
h2UV1lyYABHMZ1rMlgjhVHyyYDQ
'//oh2UV1lyYABHMZ1rMlgjhVHyyYDQ oroHZ5FaUQ_SOOC_uQQP92fJpBRE
//this.openId = 'o
roHZ5FaUQ_SOOC_uQQP92fJpBRE
'//oh2UV1lyYABHMZ1rMlgjhVHyyYDQ oroHZ5FaUQ_SOOC_uQQP92fJpBRE
this
.
orderStatus
=
option
.
orderStatus
||
''
this
.
orderStatus
=
option
.
orderStatus
||
''
this
.
ifyukuaiCode
=
option
.
ifyukuaiCode
||
''
this
.
ifyukuaiCode
=
option
.
ifyukuaiCode
||
''
this
.
getData
(
1
)
this
.
getData
(
1
)
...
...
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