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
2638b57e
Commit
2638b57e
authored
Oct 13, 2021
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决普通二维码扫码进入无法领劵BUg
parent
4226b29b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
combiChoose.vue
pages/combination/combiChoose/combiChoose.vue
+3
-2
distributionCombiChoose.vue
...ation/distributionCombiChoose/distributionCombiChoose.vue
+3
-2
index.vue
pages/index/index.vue
+1
-4
No files found.
pages/combination/combiChoose/combiChoose.vue
View file @
2638b57e
...
...
@@ -32,12 +32,13 @@
let
pdToken
=
uni
.
getStorageSync
(
"token"
)
let
pdCreateUserId
=
uni
.
getStorageSync
(
"createUserId"
)
let
pdUserId
=
uni
.
getStorageSync
(
"userId"
)
let
pageCode
=
this
.
getUrlKey
(
"pageCode"
)
//赠送优惠券接口参数
if
(
pageType
==
1
){
//组合
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
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
({
url
:
"../distributionCombiChoose/distributionCombiChoose?channelId="
+
channelId
+
"&merchantId="
+
merchantId
+
"&groupId="
+
groupId
+
"&groupChannelId="
+
groupChannelId
+
"&companyId="
+
companyId
+
"&p
dOpenid="
+
pdOpenid
url
:
"../distributionCombiChoose/distributionCombiChoose?channelId="
+
channelId
+
"&merchantId="
+
merchantId
+
"&groupId="
+
groupId
+
"&groupChannelId="
+
groupChannelId
+
"&companyId="
+
companyId
+
"&p
ageCode"
+
pageCode
})
}
}
else
{
//小程序页面跳转进入
...
...
pages/combination/distributionCombiChoose/distributionCombiChoose.vue
View file @
2638b57e
...
...
@@ -32,12 +32,13 @@
let
pdToken
=
uni
.
getStorageSync
(
"token"
)
let
pdCreateUserId
=
uni
.
getStorageSync
(
"createUserId"
)
let
pdUserId
=
uni
.
getStorageSync
(
"userId"
)
let
pageCode
=
this
.
getUrlKey
(
"pageCode"
)
//赠送优惠券接口参数
if
(
pageType
==
1
){
//组合
uni
.
navigateTo
({
url
:
"../combiChoose/combiChoose?channelId="
+
channelId
+
"&merchantId="
+
merchantId
+
"&groupId="
+
groupId
+
"&groupChannelId="
+
groupChannelId
+
"&companyId="
+
companyId
+
"&pdOpenid="
+
pdOpenid
url
:
"../combiChoose/combiChoose?channelId="
+
channelId
+
"&merchantId="
+
merchantId
+
"&groupId="
+
groupId
+
"&groupChannelId="
+
groupChannelId
+
"&companyId="
+
companyId
})
}
else
{
//分销
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
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
+
"&pageCode"
+
pageCode
}
}
else
{
//小程序页面跳转进入
...
...
pages/index/index.vue
View file @
2638b57e
...
...
@@ -119,10 +119,7 @@
this
.
outUrl
=
"https://wx.pangdly.com/#/home?pdOpenid="
+
pdOpenid
+
"&pdToken="
+
pdToken
+
"&pdCreateUserId="
+
pdCreateUserId
+
"&pdUserId="
+
pdUserId
+
"&companyId="
+
this
.
companyId
}
else
{
this
.
outUrl
=
"https://wx.pangdly.com/#/home?pdOpenid="
+
pdOpenid
+
"&pdToken="
+
pdToken
+
"&pdCreateUserId="
+
pdCreateUserId
+
"&pdUserId="
+
pdUserId
+
"&companyId="
+
this
.
companyId
uni
.
showToast
({
title
:
res
.
message
,
icon
:
"none"
})
}
}).
catch
(()
=>
{
this
.
outUrl
=
"https://wx.pangdly.com/#/home?pdOpenid="
+
pdOpenid
+
"&pdToken="
+
pdToken
+
"&pdCreateUserId="
+
pdCreateUserId
+
"&pdUserId="
+
pdUserId
+
"&companyId="
+
this
.
companyId
...
...
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