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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
11 deletions
+26
-11
src/pages/index/index.vue
+26
-11
No files found.
src/pages/index/index.vue
View file @
54dc6df0
...
...
@@ -221,17 +221,32 @@ export default {
key
:
"openid"
,
data
:
res1
.
data
.
data
});
indexApi
.
addRecord
(
{
attractingCustomersChannelId
:
paramsObj
.
attractingCustomerChannelId
,
miniOpenId
:
res1
.
data
.
data
,
registerFlag
:
1
,
newRegisterFlag
:
0
,
}
).
then
(
ele
=>
{
//清空引客渠道id
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
''
);
})
console
.
log
(
'判断是否登录过=登陆过直接调用..未登录过需要授权头像昵称信息。'
)
if
(
wx
.
getStorageSync
(
'sessionid'
))
{
console
.
log
(
'已登陆了'
)
indexApi
.
addRecord
(
{
attractingCustomersChannelId
:
paramsObj
.
attractingCustomerChannelId
,
miniOpenId
:
res1
.
data
.
data
,
registerFlag
:
1
,
newRegisterFlag
:
0
,
}
).
then
(
ele
=>
{
if
(
ele
.
data
)
{
//清空引客渠道id
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