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
94cd8fc7
Commit
94cd8fc7
authored
Aug 18, 2021
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付宝登录传参
parent
265edc7b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
8 deletions
+56
-8
combiChoose.vue
pages/combination/combiChoose/combiChoose.vue
+8
-2
distributionCombiChoose.vue
...ation/distributionCombiChoose/distributionCombiChoose.vue
+8
-2
electronicTicket.vue
pages/my/order/electronicTicket/electronicTicket.vue
+4
-1
ourPayment.vue
pages/ourPayment/ourPayment.vue
+32
-2
paySuccess.vue
pages/paySuccess/paySuccess.vue
+4
-1
No files found.
pages/combination/combiChoose/combiChoose.vue
View file @
94cd8fc7
...
...
@@ -29,8 +29,11 @@
let
groupChannelId
=
this
.
getUrlKey
(
"groupChannelId"
)
let
pageType
=
this
.
getUrlKey
(
"pageType"
)
let
pdOpenid
=
uni
.
getStorageSync
(
"openid"
)
//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let
pdToken
=
uni
.
getStorageSync
(
"token"
)
let
pdCreateUserId
=
uni
.
getStorageSync
(
"createUserId"
)
let
pdUserId
=
uni
.
getStorageSync
(
"userId"
)
if
(
pageType
==
1
){
//组合
this
.
outUrl
=
"https://wx.pangdly.com/#/combiChoose?channelId="
+
channelId
+
"&merchantId="
+
merchantId
+
"&groupId="
+
groupId
+
"&groupChannelId="
+
groupChannelId
+
"&companyId="
+
companyId
+
"&pdOpenid="
+
pdOpenid
this
.
outUrl
=
"https://wx.pangdly.com/#/combiChoose?channelId="
+
channelId
+
"&merchantId="
+
merchantId
+
"&groupId="
+
groupId
+
"&groupChannelId="
+
groupChannelId
+
"&companyId="
+
companyId
+
"&pdOpenid="
+
pdOpenid
+
"&pdToken="
+
pdToken
+
"&pdCreateUserId="
+
pdCreateUserId
+
"&pdUserId="
+
pdUserId
}
else
{
//分销
uni
.
navigateTo
({
...
...
@@ -46,8 +49,11 @@
let
thirdOpenid
=
option
.
thirdOpenid
//第三方openid
let
touristType
=
option
.
touristType
//游客类型
let
pdOpenid
=
uni
.
getStorageSync
(
"openid"
)
//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let
pdToken
=
uni
.
getStorageSync
(
"token"
)
let
pdCreateUserId
=
uni
.
getStorageSync
(
"createUserId"
)
let
pdUserId
=
uni
.
getStorageSync
(
"userId"
)
let
baseUrl
=
"https://wx.pangdly.com/#/combiChoose?thirdOpenid="
+
thirdOpenid
+
"&touristType="
+
touristType
this
.
outUrl
=
baseUrl
+
"&channelId="
+
channelId
+
"&merchantId="
+
merchantId
+
"&groupId="
+
groupId
+
"&groupChannelId="
+
groupChannelId
+
"&companyId="
+
companyId
+
"&pdOpenid="
+
pdOpenid
this
.
outUrl
=
baseUrl
+
"&channelId="
+
channelId
+
"&merchantId="
+
merchantId
+
"&groupId="
+
groupId
+
"&groupChannelId="
+
groupChannelId
+
"&companyId="
+
companyId
+
"&pdOpenid="
+
pdOpenid
+
"&pdToken="
+
pdToken
+
"&pdCreateUserId="
+
pdCreateUserId
+
"&pdUserId="
+
pdUserId
}
},
...
...
pages/combination/distributionCombiChoose/distributionCombiChoose.vue
View file @
94cd8fc7
...
...
@@ -29,12 +29,15 @@
let
groupChannelId
=
this
.
getUrlKey
(
"groupChannelId"
)
let
pageType
=
this
.
getUrlKey
(
"pageType"
)
let
pdOpenid
=
uni
.
getStorageSync
(
"openid"
)
//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let
pdToken
=
uni
.
getStorageSync
(
"token"
)
let
pdCreateUserId
=
uni
.
getStorageSync
(
"createUserId"
)
let
pdUserId
=
uni
.
getStorageSync
(
"userId"
)
if
(
pageType
==
1
){
//组合
uni
.
navigateTo
({
url
:
"../combiChoose/combiChoose?channelId="
+
channelId
+
"&merchantId="
+
merchantId
+
"&groupId="
+
groupId
+
"&groupChannelId="
+
groupChannelId
+
"&companyId="
+
companyId
+
"&pdOpenid="
+
pdOpenid
})
}
else
{
//分销
this
.
outUrl
=
"https://wx.pangdly.com/#/distributionCombiChoose?channelId="
+
channelId
+
"&merchantId="
+
merchantId
+
"&groupId="
+
groupId
+
"&groupChannelId="
+
groupChannelId
+
"&companyId="
+
companyId
+
"&pdOpenid="
+
pdOpenid
this
.
outUrl
=
"https://wx.pangdly.com/#/distributionCombiChoose?channelId="
+
channelId
+
"&merchantId="
+
merchantId
+
"&groupId="
+
groupId
+
"&groupChannelId="
+
groupChannelId
+
"&companyId="
+
companyId
+
"&pdOpenid="
+
pdOpenid
+
"&pdToken="
+
pdToken
+
"&pdCreateUserId="
+
pdCreateUserId
+
"&pdUserId="
+
pdUserId
}
}
else
{
//小程序页面跳转进入
...
...
@@ -46,8 +49,11 @@
let
thirdOpenid
=
option
.
thirdOpenid
//第三方openid
let
touristType
=
option
.
touristType
//游客类型
let
pdOpenid
=
uni
.
getStorageSync
(
"openid"
)
//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let
pdToken
=
uni
.
getStorageSync
(
"token"
)
let
pdCreateUserId
=
uni
.
getStorageSync
(
"createUserId"
)
let
pdUserId
=
uni
.
getStorageSync
(
"userId"
)
let
baseUrl
=
"https://wx.pangdly.com/#/distributionCombiChoose?thirdOpenid="
+
thirdOpenid
+
"&touristType="
+
touristType
this
.
outUrl
=
baseUrl
+
"&channelId="
+
channelId
+
"&merchantId="
+
merchantId
+
"&groupId="
+
groupId
+
"&groupChannelId="
+
groupChannelId
+
"&companyId="
+
companyId
+
"&pdOpenid="
+
pdOpenid
this
.
outUrl
=
baseUrl
+
"&channelId="
+
channelId
+
"&merchantId="
+
merchantId
+
"&groupId="
+
groupId
+
"&groupChannelId="
+
groupChannelId
+
"&companyId="
+
companyId
+
"&pdOpenid="
+
pdOpenid
+
"&pdToken="
+
pdToken
+
"&pdCreateUserId="
+
pdCreateUserId
+
"&pdUserId="
+
pdUserId
}
},
...
...
pages/my/order/electronicTicket/electronicTicket.vue
View file @
94cd8fc7
...
...
@@ -13,7 +13,10 @@
},
onLoad
(
option
)
{
let
pdOpenid
=
uni
.
getStorageSync
(
"openid"
)
//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
this
.
outUrl
=
"https://wx.pangdly.com/#/unusedDetail?id="
+
option
.
orderId
+
"&pdOpenid="
+
pdOpenid
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
},
methods
:
{
...
...
pages/ourPayment/ourPayment.vue
View file @
94cd8fc7
...
...
@@ -216,11 +216,41 @@
_this
.
initTwo
()
}
_this
.
initCoupon
()
//用于获取token等信息
let
userId
=
res
.
data
.
userId
||
""
let
openid
=
res
.
data
.
openid
||
""
let
datas
=
{
openid
,
source
,
userId
}
_this
.
$request
(
"wechatUser/login/findWxUserAndLogin"
,
datas
).
then
((
res
)
=>
{
if
(
res
.
code
==
"00"
){
let
token
=
res
.
data
.
token
||
""
uni
.
setStorageSync
(
'token'
,
token
)
let
createUserId
=
res
.
data
.
personId
||
""
uni
.
setStorageSync
(
'createUserId'
,
createUserId
)
let
userId
=
res
.
data
.
userId
||
""
uni
.
setStorageSync
(
'userId'
,
userId
)
}
else
{
uni
.
removeStorageSync
(
'openid'
)
uni
.
showToast
({
title
:
res
.
message
,
icon
:
"none"
})
}
}).
catch
((
err
)
=>
{
uni
.
showToast
({
title
:
"登录失败"
,
icon
:
"none"
})
})
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
"none"
})
}
}).
catch
((
err
)
=>
{
uni
.
removeStorageSync
(
'openid'
)
uni
.
showToast
({
title
:
"登录失败"
,
icon
:
"none"
})
})
}
}
...
...
pages/paySuccess/paySuccess.vue
View file @
94cd8fc7
...
...
@@ -13,7 +13,10 @@
},
onLoad
(
option
)
{
let
pdOpenid
=
uni
.
getStorageSync
(
"openid"
)
//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
this
.
outUrl
=
"https://wx.pangdly.com/#/paySuccess?orderId="
+
option
.
orderId
+
"&pdOpenid="
+
pdOpenid
let
pdToken
=
uni
.
getStorageSync
(
"token"
)
let
pdCreateUserId
=
uni
.
getStorageSync
(
"createUserId"
)
let
pdUserId
=
uni
.
getStorageSync
(
"userId"
)
this
.
outUrl
=
"https://wx.pangdly.com/#/paySuccess?orderId="
+
option
.
orderId
+
"&pdOpenid="
+
pdOpenid
+
"&pdToken="
+
pdToken
+
"&pdCreateUserId="
+
pdCreateUserId
+
"&pdUserId="
+
pdUserId
},
methods
:
{
...
...
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