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
6cb7a43a
Commit
6cb7a43a
authored
Jan 27, 2022
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
渝快码中转页面开发
parent
b5108999
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
3 deletions
+45
-3
pages.json
pages.json
+9
-0
backMiniProgram.vue
pages/configure/backMiniProgram/backMiniProgram.vue
+2
-0
electronicTicket.vue
pages/my/order/electronicTicket/electronicTicket.vue
+2
-1
orderList.vue
pages/my/order/orderList/orderList.vue
+28
-0
orderPayment.vue
pages/payment/orderPayment/orderPayment.vue
+4
-2
No files found.
pages.json
View file @
6cb7a43a
...
...
@@ -302,6 +302,15 @@
}
}
,{
"path"
:
"pages/my/order/orderList/orderList"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
}
],
"globalStyle"
:
{
"navigationBarTextStyle"
:
"white"
,
...
...
pages/configure/backMiniProgram/backMiniProgram.vue
View file @
6cb7a43a
...
...
@@ -38,6 +38,7 @@
//#ifdef MP-WEIXIN
wx
.
navigateBackMiniProgram
({
extraData
:
{
cqQRCode
:
1
},
fail
(
res
){
uni
.
showToast
({
...
...
@@ -52,6 +53,7 @@
//#ifdef MP-ALIPAY
my
.
navigateBackMiniProgram
({
extraData
:{
cqQRCode
:
1
},
fail
:
(
res
)
=>
{
uni
.
showToast
({
...
...
pages/my/order/electronicTicket/electronicTicket.vue
View file @
6cb7a43a
...
...
@@ -36,7 +36,8 @@
let
pdToken
=
uni
.
getStorageSync
(
"token"
)
let
pdCreateUserId
=
uni
.
getStorageSync
(
"createUserId"
)
let
pdUserId
=
uni
.
getStorageSync
(
"userId"
)
this
.
outUrl
=
"https://wx.pangdly.com/#/unusedDetail?id="
+
option
.
orderId
+
"&pdOpenid="
+
pdOpenid
+
"&pdToken="
+
pdToken
+
"&pdCreateUserId="
+
pdCreateUserId
+
"&pdUserId="
+
pdUserId
let
ifyukuaiCode
=
option
.
ifyukuaiCode
//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程
this
.
outUrl
=
"https://wx.pangdly.com/#/unusedDetail?id="
+
option
.
orderId
+
"&pdOpenid="
+
pdOpenid
+
"&pdToken="
+
pdToken
+
"&pdCreateUserId="
+
pdCreateUserId
+
"&pdUserId="
+
pdUserId
+
"&ifyukuaiCode="
+
ifyukuaiCode
},
methods
:
{
...
...
pages/my/order/orderList/orderList.vue
0 → 100644
View file @
6cb7a43a
<
template
>
<view>
<web-view
:src=
"outUrl"
></web-view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
outUrl
:
""
,
//跳出地址
}
},
onLoad
()
{
let
pdOpenid
=
uni
.
getStorageSync
(
"openid"
)
//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let
pdToken
=
uni
.
getStorageSync
(
"token"
)
let
pdCreateUserId
=
uni
.
getStorageSync
(
"createUserId"
)
let
pdUserId
=
uni
.
getStorageSync
(
"userId"
)
let
ifyukuaiCode
=
option
.
ifyukuaiCode
//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程
this
.
outUrl
=
"https://wx.pangdly.com/#/ordersList1?pdOpenid="
+
pdOpenid
+
"&pdToken="
+
pdToken
+
"&pdCreateUserId="
+
pdCreateUserId
+
"&pdUserId="
+
pdUserId
+
"&ifyukuaiCode="
+
ifyukuaiCode
},
methods
:
{
}
}
</
script
>
<
style
>
pages/payment/orderPayment/orderPayment.vue
View file @
6cb7a43a
...
...
@@ -117,10 +117,12 @@
orderId
:
""
,
//订单Id
openid
:
""
,
//用户Id
afterBuyUrl
:
""
,
//支付成功后地址跳转
ifyukuaiCode
:
""
,
//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程
}
},
onLoad
(
option
){
this
.
orderId
=
option
.
orderId
this
.
ifyukuaiCode
=
option
.
ifyukuaiCode
this
.
afterBuyUrl
=
option
.
afterBuyUrl
||
"/pages/my/order/orderList/orderList"
this
.
openid
=
uni
.
getStorageSync
(
"openid"
)
||
""
if
(
this
.
openid
){
...
...
@@ -195,7 +197,7 @@
this
.
pdOrderMoney
=
res
.
data
.
pdOrderMoney
if
(
this
.
pdOrderMoney
==
0
&&
res
.
data
.
subOrderType
==
-
1
){
//0元购直接跳电子门票页面
uni
.
navigateTo
({
url
:
"/pages/my/order/electronicTicket/electronicTicket?orderId="
+
this
.
orderId
url
:
"/pages/my/order/electronicTicket/electronicTicket?orderId="
+
this
.
orderId
+
"&ifyukuaiCode="
+
this
.
ifyukuaiCode
})
}
this
.
errorMessage
=
res
.
data
.
errorMessage
...
...
@@ -247,7 +249,7 @@
// uni.removeStorageSync('checkList')
// uni.removeStorageSync('sortImglist')
uni
.
navigateTo
({
url
:
_this
.
afterBuyUrl
+
"?orderId="
+
_this
.
orderId
url
:
_this
.
afterBuyUrl
+
"?orderId="
+
_this
.
orderId
+
"&ifyukuaiCode="
+
_this
.
ifyukuaiCode
})
},
fail
:
function
(
err
)
{
...
...
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