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
54dc6df0
Commit
54dc6df0
authored
Dec 14, 2021
by
Lightsnow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扫码后带客流渠道参数处理
parent
baad3538
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
src/pages/index/index.vue
+15
-0
No files found.
src/pages/index/index.vue
View file @
54dc6df0
...
@@ -221,6 +221,9 @@ export default {
...
@@ -221,6 +221,9 @@ export default {
key
:
"openid"
,
key
:
"openid"
,
data
:
res1
.
data
.
data
data
:
res1
.
data
.
data
});
});
console
.
log
(
'判断是否登录过=登陆过直接调用..未登录过需要授权头像昵称信息。'
)
if
(
wx
.
getStorageSync
(
'sessionid'
))
{
console
.
log
(
'已登陆了'
)
indexApi
.
addRecord
(
indexApi
.
addRecord
(
{
{
attractingCustomersChannelId
:
paramsObj
.
attractingCustomerChannelId
,
attractingCustomersChannelId
:
paramsObj
.
attractingCustomerChannelId
,
...
@@ -229,9 +232,21 @@ export default {
...
@@ -229,9 +232,21 @@ export default {
newRegisterFlag
:
0
,
newRegisterFlag
:
0
,
}
}
).
then
(
ele
=>
{
).
then
(
ele
=>
{
if
(
ele
.
data
)
{
//清空引客渠道id
//清空引客渠道id
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
''
);
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
''
);
}
})
})
}
else
{
console
.
log
(
'未登录过需要授权头像昵称信息。'
)
const
url
=
`/pages/login/main?back=
${
encodeURIComponent
(
this
.
page
)}
¶m=
${
encodeURIComponent
(
JSON
.
stringify
(
paramsObj
))
}
`
;
console
.
log
(
url
)
wx
.
navigateTo
({
url
});
}
}
}
})
})
},
},
...
...
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