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
baad3538
Commit
baad3538
authored
Dec 13, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取openid
parent
ad9ecfd0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
src/pages/index/index.vue
+12
-4
No files found.
src/pages/index/index.vue
View file @
baad3538
...
@@ -213,13 +213,18 @@ export default {
...
@@ -213,13 +213,18 @@ export default {
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'storeId'
,
paramsObj
.
storeId
);
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'storeId'
,
paramsObj
.
storeId
);
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'sellerId'
,
paramsObj
.
sellerId
);
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'sellerId'
,
paramsObj
.
sellerId
);
console
.
log
(
res
.
data
.
data
)
console
.
log
(
res
.
data
.
data
)
console
.
log
(
wx
.
getStorageSync
(
"openid"
))
wx
.
login
({
console
.
log
(
333333
)
success
:
res
=>
{
if
(
wx
.
getStorageSync
(
"openid"
))
{
login
.
get_open_id_by_code
({
code
:
res
.
code
}).
then
(
res1
=>
{
if
(
res1
.
data
.
code
==
200
)
{
wx
.
setStorage
({
key
:
"openid"
,
data
:
res1
.
data
.
data
});
indexApi
.
addRecord
(
indexApi
.
addRecord
(
{
{
attractingCustomersChannelId
:
paramsObj
.
attractingCustomerChannelId
,
attractingCustomersChannelId
:
paramsObj
.
attractingCustomerChannelId
,
miniOpenId
:
wx
.
getStorageSync
(
"openid"
)
,
miniOpenId
:
res1
.
data
.
data
,
registerFlag
:
1
,
registerFlag
:
1
,
newRegisterFlag
:
0
,
newRegisterFlag
:
0
,
}
}
...
@@ -228,6 +233,9 @@ export default {
...
@@ -228,6 +233,9 @@ export default {
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
''
);
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
''
);
})
})
}
}
})
},
})
let
params
=
''
;
let
params
=
''
;
for
(
let
i
in
paramsObj
){
for
(
let
i
in
paramsObj
){
params
+=
"&"
+
i
+
'='
+
paramsObj
[
i
]
params
+=
"&"
+
i
+
'='
+
paramsObj
[
i
]
...
...
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