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
4fe4c2d3
Commit
4fe4c2d3
authored
Apr 13, 2023
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录参数增加
parent
84fca4f3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
3 deletions
+44
-3
pages.json
pages.json
+8
-1
login.vue
pages/login/login.vue
+2
-1
exchangeIndex.vue
pages/my/exchangeCode/exchangeIndex/exchangeIndex.vue
+31
-0
orderPayment.vue
pages/payment/orderPayment/orderPayment.vue
+2
-1
ourPayment.vue
pages/payment/ourPayment/ourPayment.vue
+1
-0
No files found.
pages.json
View file @
4fe4c2d3
...
...
@@ -272,7 +272,14 @@
"navigationBarTitleText"
:
"湖广会馆"
,
"enablePullDownRefresh"
:
false
}
}
},
{
"path"
:
"pages/my/exchangeCode/exchangeIndex/exchangeIndex"
,
"style"
:
{
"navigationBarTitleText"
:
"兑换"
,
"enablePullDownRefresh"
:
false
}
}
],
"globalStyle"
:
{
"navigationBarTextStyle"
:
"white"
,
...
...
pages/login/login.vue
View file @
4fe4c2d3
...
...
@@ -39,7 +39,8 @@ export default {
}
let
data
=
{
code
:
res
.
code
,
source
//微信小程序3,支付宝小程序4
source
,
//微信小程序3,支付宝小程序4
companyId
:
uni
.
getStorageSync
(
'enterOptions'
).
query
.
companyId
}
_this
.
$request
(
'wechat/wx/getUserInfoByCode'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
)
{
...
...
pages/my/exchangeCode/exchangeIndex/exchangeIndex.vue
0 → 100644
View file @
4fe4c2d3
<
template
>
<view>
<web-view
:src=
"outUrl"
></web-view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
outUrl
:
""
,
//跳出页面路由
}
},
onLoad
(
option
)
{
let
merchantId
=
option
.
merchantId
||
''
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/#/exchangeIndex?merchantId="
+
merchantId
this
.
outUrl
=
baseUrl
+
"&pdOpenid="
+
pdOpenid
+
"&pdToken="
+
pdToken
+
"&pdCreateUserId="
+
pdCreateUserId
+
"&pdUserId="
+
pdUserId
},
methods
:
{
}
}
</
script
>
<
style
>
</
style
>
pages/payment/orderPayment/orderPayment.vue
View file @
4fe4c2d3
...
...
@@ -139,7 +139,8 @@ export default {
}
let
data
=
{
code
:
res
.
code
,
source
//微信小程序3,支付宝小程序4
source
,
//微信小程序3,支付宝小程序4
companyId
:
uni
.
getStorageSync
(
'enterOptions'
).
query
.
companyId
}
_this
.
$request
(
'wechat/wx/getUserInfoByCode'
,
data
)
.
then
(
res
=>
{
...
...
pages/payment/ourPayment/ourPayment.vue
View file @
4fe4c2d3
...
...
@@ -217,6 +217,7 @@
let
data
=
{
code
:
res
.
code
,
source
,
//微信小程序3,支付宝小程序4
companyId
:
uni
.
getStorageSync
(
'enterOptions'
).
query
.
companyId
}
_this
.
$request
(
'wechat/wx/getUserInfoByCode'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
){
...
...
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