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
2e6dd6dc
Commit
2e6dd6dc
authored
Sep 04, 2024
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兑换票增加过期提示
parent
4f4048b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
exchangeChoose.vue
pages/my/exchangeCode/exchangeChoose/exchangeChoose.vue
+18
-2
No files found.
pages/my/exchangeCode/exchangeChoose/exchangeChoose.vue
View file @
2e6dd6dc
...
@@ -49,6 +49,7 @@ export default {
...
@@ -49,6 +49,7 @@ export default {
stringProduct
:
[],
//可兑换产品列表
stringProduct
:
[],
//可兑换产品列表
maskType
:
false
,
maskType
:
false
,
active
:
0
,
active
:
0
,
exchangeEndDate
:
''
,
//结束兑换时间
}
}
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
...
@@ -66,6 +67,7 @@ export default {
...
@@ -66,6 +67,7 @@ export default {
},
},
listNumFun
(
index
){
//当可选产品>1时 选择的产品是
listNumFun
(
index
){
//当可选产品>1时 选择的产品是
this
.
active
=
index
this
.
active
=
index
this
.
exchangeEndDate
=
this
.
stringProduct
[
index
].
exchangeEndDate
},
},
loadMerchantInfo
(){
//景区详情
loadMerchantInfo
(){
//景区详情
var
data
=
{
var
data
=
{
...
@@ -96,7 +98,7 @@ export default {
...
@@ -96,7 +98,7 @@ export default {
var
productNameGroup
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
productName
)).
split
(
'('
)
var
productNameGroup
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
productName
)).
split
(
'('
)
item
.
productNameGroup
=
JSON
.
parse
(
JSON
.
stringify
(
productNameGroup
))
item
.
productNameGroup
=
JSON
.
parse
(
JSON
.
stringify
(
productNameGroup
))
})
})
console
.
log
(
this
.
stringProduct
)
this
.
exchangeEndDate
=
this
.
stringProduct
[
0
].
exchangeEndDate
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
...
@@ -113,6 +115,17 @@ export default {
...
@@ -113,6 +115,17 @@ export default {
}
}
},
},
exchangeCode
(){
//订单查询
exchangeCode
(){
//订单查询
var
today
=
this
.
$commonjs
.
today
()
var
todayNum
=
this
.
$commonjs
.
changeTime
(
today
)
var
playEndDay
=
this
.
$commonjs
.
changeTime
(
this
.
exchangeEndDate
)
if
(
playEndDay
<
todayNum
){
uni
.
showToast
({
title
:
'当前兑换码已过兑换期限。'
,
icon
:
'none'
,
duration
:
5000
,
})
return
false
}
var
data
=
{
var
data
=
{
ticketCode
:
this
.
ticketCode
,
ticketCode
:
this
.
ticketCode
,
//userId : this.userId,//上线之前注销 此为普通票
//userId : this.userId,//上线之前注销 此为普通票
...
@@ -130,7 +143,10 @@ export default {
...
@@ -130,7 +143,10 @@ export default {
this
.
fromOrderId
=
res
.
data
.
list
[
0
].
thirdOrderId
this
.
fromOrderId
=
res
.
data
.
list
[
0
].
thirdOrderId
this
.
pdFromOrderId
=
res
.
data
.
list
[
0
].
id
this
.
pdFromOrderId
=
res
.
data
.
list
[
0
].
id
}
else
{
}
else
{
this
.
$toast
.
fail
(
'未查询到相应订单'
)
uni
.
showToast
({
title
:
'未查询到相应订单'
,
icon
:
'none'
})
}
}
}
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