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
d4941371
Commit
d4941371
authored
Sep 11, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联票预售票功能开发
parent
70668ca0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
14 deletions
+39
-14
jointElectronicTicket.vue
.../my/order/jointElectronicTicket/jointElectronicTicket.vue
+39
-14
No files found.
pages/my/order/jointElectronicTicket/jointElectronicTicket.vue
View file @
d4941371
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<!-- 未排号显示排号按钮 -->
<!-- 未排号显示排号按钮 -->
<template
v-if=
"item.showNumberBtn"
>
<template
v-if=
"item.showNumberBtn"
>
<view
style=
"text-align: center;padding-top: 30rpx;"
>
<view
style=
"text-align: center;padding-top: 30rpx;"
>
<text
class=
"btn"
@
click=
"sort
Again
(item)"
>
取号
</text>
<text
class=
"btn"
@
click=
"sort
First
(item)"
>
取号
</text>
</view>
</view>
</
template
>
</
template
>
...
@@ -884,12 +884,13 @@ export default {
...
@@ -884,12 +884,13 @@ export default {
//---获取排号信息
//---获取排号信息
getSortInfo
(
item
){
getSortInfo
(
item
){
let
data
=
{
let
data
=
{
areaCode
:
item
.
areaCode
,
//站点编号
againNumber
:
0
,
//首次排号
orderNum
:
item
.
orderNum
,
//订单数量
userId
:
this
.
openid
,
//openid
userId
:
this
.
openid
,
//openid
orderId
:
item
.
id
,
//订单id
thirdId
:
item
.
thirdOrderId
,
//三方订单id
thirdId
:
item
.
thirdOrderId
,
//三方订单id
againNumber
:
0
//首次排号
areaCode
:
item
.
areaCode
,
//站点编号
merchantCode
:
item
.
merchantCode
,
orderId
:
item
.
id
,
//订单id
orderNum
:
item
.
orderNum
,
//订单数量
}
}
this
.
$request
(
'distribution/distribution/getNewFetchInfo'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'distribution/distribution/getNewFetchInfo'
,
data
).
then
((
res
)
=>
{
//防止代码bug进入catch里面,一直请求接口影响性能
//防止代码bug进入catch里面,一直请求接口影响性能
...
@@ -935,7 +936,7 @@ export default {
...
@@ -935,7 +936,7 @@ export default {
// item.merchantCodeCopy = dataObj.pays[0].companyId
// item.merchantCodeCopy = dataObj.pays[0].companyId
// }
// }
//子产品获取三方Id,用于重排号传参
//子产品获取三方Id,用于重排号传参
item
.
thirdIdCopy
=
dataObj
.
order
.
orderId
//
item.thirdIdCopy=dataObj.order.orderId
//子产品获取站点编码,用于重排号传参
//子产品获取站点编码,用于重排号传参
// if(item.sorts.length>0){
// if(item.sorts.length>0){
// item.areaCodeCopy=item.sorts[0].projectId
// item.areaCodeCopy=item.sorts[0].projectId
...
@@ -965,26 +966,50 @@ export default {
...
@@ -965,26 +966,50 @@ export default {
},
2000
)
},
2000
)
})
})
},
},
//---购票时未排号,第一次排号
sortFirst
(
item
){
let
data
=
{
againNumber
:
0
,
//是否重排
userId
:
this
.
openid
,
thirdId
:
item
.
thirdOrderId
,
//三方订单id
areaCode
:
item
.
areaCode
,
//站点
merchantCode
:
item
.
merchantCode
,
orderId
:
item
.
id
,
//订单id
orderNum
:
item
.
orderNum
,
//订单数量
}
this
.
$request
(
'distribution/distribution/newFetchNumber'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
//隐藏取号按钮
item
.
showNumberBtn
=
false
this
.
getSortInfo
(
item
)
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
}
})
},
//---点击重新取号,显示弹窗
//---点击重新取号,显示弹窗
clickSortAgain
(
item
){
clickSortAgain
(
item
){
this
.
showModal
=
true
this
.
showModal
=
true
this
.
sortAgainData
=
item
this
.
sortAgainData
=
item
},
},
//---重新排
队
//---重新排
号
sortAgain
(
item
){
sortAgain
(
item
){
let
data
=
{
let
data
=
{
againNumber
:
1
,
againNumber
:
1
,
//是否重排
thirdId
:
item
.
thirdIdCopy
,
//三方订单id
userId
:
this
.
openid
,
thirdId
:
item
.
thirdOrderId
,
//三方订单id
areaCode
:
item
.
areaCode
,
//站点
areaCode
:
item
.
areaCode
,
//站点
userId
:
this
.
openid
,
merchantCode
:
item
.
merchantCode
,
merchantCode
:
item
.
merchantCode
,
orderId
:
item
.
id
,
//订单id
orderNum
:
item
.
orderNum
,
//订单数量
}
}
this
.
$request
(
'distribution/distribution/newFetchNumber'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'distribution/distribution/newFetchNumber'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
code
==
'00'
){
//隐藏弹窗
//隐藏弹窗
this
.
showModal
=
false
this
.
showModal
=
false
//隐藏取号按钮
item
.
showNumberBtn
=
false
this
.
getSortInfo
(
item
)
this
.
getSortInfo
(
item
)
}
else
{
}
else
{
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