Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
zhiliang-light-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
66d45eac
authored
2020-03-12 19:43:31 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
ddc356b9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
src/pages/index/index.js
src/pages/index/index.js
View file @
66d45ea
...
...
@@ -35,12 +35,15 @@ Page({
options
:
options
})
this
.
queryConfig
();
// console.log("options:",options);
},
onShow
()
{
this
.
hideMask
();
let
options
=
this
.
data
.
options
;
console
.
log
(
"options:"
,
options
);
console
.
log
(
"q:"
,
q
);
let
q
=
decodeURIComponent
(
options
.
q
);
// 获取会员码
...
...
@@ -74,7 +77,7 @@ Page({
if
(
m
||
c
||
sessionId
)
{
this
.
initData
();
}
console
.
log
(
"onLoad"
);
},
initData
()
{
...
...
@@ -85,6 +88,7 @@ Page({
if
(
memberCode
)
{
app
.
globalData
.
tlMemberCode
=
memberCode
;
}
console
.
log
(
"code:"
,
code
);
// 如果存在扫码参数,则需要拉用户身份(未授权的情况下 要拉授权)
this
.
queryMember
().
then
((
result
)
=>
{
let
{
...
...
@@ -401,6 +405,7 @@ Page({
return
;
}
app
.
router
.
push
({
openType
:
"redirect"
,
path
:
"scanResult"
,
query
:
{
code
:
code
...
...
Please
register
or
sign in
to post a comment