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
a8ece0fc
Commit
a8ece0fc
authored
Apr 17, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单详情 新增短信接口
parent
6e62d5e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
9 deletions
+45
-9
electronicTicket.vue
pages/my/order/electronicTicket/electronicTicket.vue
+45
-9
No files found.
pages/my/order/electronicTicket/electronicTicket.vue
View file @
a8ece0fc
...
...
@@ -405,6 +405,7 @@
},
data
()
{
return
{
orderDataType
:
false
,
openId
:
''
,
//用户信息
id
:
''
,
//订单ID
companyId
:
''
,
//公司ID
...
...
@@ -436,6 +437,7 @@
qrCodeType
:
false
,
//是否是多个二维码
btnRefundType
:
false
,
//是否可退款
ifyukuaiCode
:
''
,
visitorIndex
:
''
,
//短信特殊字段
}
},
onShow
()
{
...
...
@@ -458,11 +460,21 @@
})
},
onLoad
(
option
)
{
this
.
id
=
option
.
orderId
console
.
log
(
option
.
orderId
)
console
.
log
(
"-----------------------"
)
if
(
option
.
orderId
!=
undefined
){
this
.
id
=
option
.
orderId
this
.
orderDataType
=
true
}
else
{
this
.
id
=
option
.
thirdOrderId
this
.
visitorIndex
=
option
.
visitorIndex
this
.
orderDataType
=
false
}
this
.
ifyukuaiCode
=
option
.
ifyukuaiCode
||
''
//this.id = "z00167956572219584dc15634b62cf75"
//
this.openId = uni.getStorageSync("openid") //openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ
this
.
openId
=
"oh2UV1lyYABHMZ1rMlgjhVHyyYDQ"
this
.
openId
=
uni
.
getStorageSync
(
"openid"
)
//openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ
//
this.openId = "oh2UV1lyYABHMZ1rMlgjhVHyyYDQ"
this
.
getDetail
();
},
...
...
@@ -481,11 +493,23 @@
},
methods
:
{
getDetail
(){
//*-----------------加载订单
let
data
=
{
orderId
:
this
.
id
,
//订单ID
userId
:
this
.
openId
,
//用户Id
var
postHttpUrl
=
''
;
let
data
=
{}
if
(
this
.
orderDataType
==
true
){
//为小程序
data
=
{
orderId
:
this
.
id
,
//订单ID
userId
:
this
.
openId
,
//用户Id
}
postHttpUrl
=
'order/userOrder/findOrderDetail'
}
else
{
//为短信
data
=
{
thirdOrderId
:
this
.
id
,
//订单ID
userId
:
this
.
openId
,
//用户Id
}
postHttpUrl
=
'order/userOrder/findOrderDetailByThirdOrderId'
}
this
.
$request
(
'order/userOrder/findOrderDetail'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
postHttpUrl
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
"00"
){
this
.
orderInfo
=
res
.
data
this
.
orderExtendList
=
res
.
data
.
orderExtendList
...
...
@@ -626,10 +650,16 @@
// height: 180,
// text:this.verifyCode
// })
let
verifyCode
=
""
if
(
this
.
visitorIndex
!==
""
){
verifyCode
=
this
.
verifyCode
+
":"
+
this
.
visitorIndex
}
else
{
verifyCode
=
this
.
verifyCode
}
uQRCode
.
make
({
canvasId
:
'qrcode'
,
componentInstance
:
this
,
text
:
this
.
verifyCode
,
text
:
verifyCode
,
size
:
180
,
margin
:
10
,
backgroundColor
:
'#ffffff'
,
...
...
@@ -677,10 +707,16 @@
// height: 180,
// text:this.codeNo
// })
let
verifyCode
=
""
if
(
this
.
visitorIndex
!==
""
){
verifyCode
=
this
.
codeNo
+
":"
+
this
.
visitorIndex
}
else
{
verifyCode
=
this
.
codeNo
}
uQRCode
.
make
({
canvasId
:
'qrcode'
,
componentInstance
:
this
,
text
:
this
.
codeNo
,
text
:
verifyCode
,
size
:
180
,
margin
:
10
,
backgroundColor
:
'#ffffff'
,
...
...
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