Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
5452841b
Commit
5452841b
authored
Mar 19, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加参数
parent
fe44764e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/pages/index/index.vue
+6
-2
No files found.
src/pages/index/index.vue
View file @
5452841b
...
@@ -85,15 +85,15 @@ export default {
...
@@ -85,15 +85,15 @@ export default {
}
}
// 判断当前是否为导购分享
// 判断当前是否为导购分享
const
setGuideEmployeeId
=
wx
.
getStorageSync
(
this
.
$store
.
state
.
mixid
+
'setGuideEmployeeId'
);
const
setGuideEmployeeId
=
wx
.
getStorageSync
(
this
.
$store
.
state
.
mixid
+
'setGuideEmployeeId'
);
if
(
setGuideEmployeeId
)
{
if
(
setGuideEmployeeId
&&
!
this
.
params
.
includes
(
"setGuideEmployeeId"
)
)
{
this
.
params
+=
`&setGuideEmployeeId=
${
setGuideEmployeeId
}
`
;
this
.
params
+=
`&setGuideEmployeeId=
${
setGuideEmployeeId
}
`
;
}
// 导购分享类型
// 导购分享类型
const
guide_QRCodeType
=
wx
.
getStorageSync
(
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
);
const
guide_QRCodeType
=
wx
.
getStorageSync
(
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
);
if
(
guide_QRCodeType
)
{
if
(
guide_QRCodeType
)
{
this
.
params
+=
`&QRCodeType=
${
guide_QRCodeType
}
`
;
this
.
params
+=
`&QRCodeType=
${
guide_QRCodeType
}
`
;
wx
.
removeStorageSync
(
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
);
wx
.
removeStorageSync
(
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
);
}
}
}
console
.
log
(
this
.
link
,
'======='
,
this
.
page
,
'++++++++++++++'
,
this
.
params
,
'************'
)
console
.
log
(
this
.
link
,
'======='
,
this
.
page
,
'++++++++++++++'
,
this
.
params
,
'************'
)
let
pageUrl1
=
(
this
.
page
.
startsWith
(
'http://'
)
||
this
.
page
.
startsWith
(
'https://'
))?
(
this
.
page
+
this
.
params
)
:
this
.
link
+
this
.
page
+
this
.
params
let
pageUrl1
=
(
this
.
page
.
startsWith
(
'http://'
)
||
this
.
page
.
startsWith
(
'https://'
))?
(
this
.
page
+
this
.
params
)
:
this
.
link
+
this
.
page
+
this
.
params
console
.
log
(
pageUrl1
,
'--------pageUrl1--'
)
console
.
log
(
pageUrl1
,
'--------pageUrl1--'
)
...
@@ -354,6 +354,10 @@ export default {
...
@@ -354,6 +354,10 @@ export default {
offlineShopName
:
paramsObj
.
offlineShopName
,
offlineShopName
:
paramsObj
.
offlineShopName
,
});
});
}
}
// 判断是否为导购分享进入
if
(
paramsObj
.
setGuideEmployeeId
)
{
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'setGuideEmployeeId'
,
paramsObj
.
setGuideEmployeeId
);
}
if
(
paramsObj
.
QRCodeType
)
{
if
(
paramsObj
.
QRCodeType
)
{
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
,
paramsObj
.
QRCodeType
);
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
,
paramsObj
.
QRCodeType
);
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'temp_QRCodeType'
,
paramsObj
.
QRCodeType
);
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'temp_QRCodeType'
,
paramsObj
.
QRCodeType
);
...
...
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