Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 640286d8
authored
Sep 08, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
tijiao
1 parent
4d1884bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
9 deletions
app.js
project.private.config.json
app.js
View file @
640286d
...
@@ -22,7 +22,6 @@ App({
...
@@ -22,7 +22,6 @@ App({
util
.
setStorageSync
(
'srcm_shopmall_system_info'
,
res
)
util
.
setStorageSync
(
'srcm_shopmall_system_info'
,
res
)
}
}
})
})
console
.
log
(
options
)
if
(
options
.
path
!=
'pages/tab/index/index'
)
{
if
(
options
.
path
!=
'pages/tab/index/index'
)
{
this
.
login
()
this
.
login
()
}
}
...
@@ -39,16 +38,13 @@ App({
...
@@ -39,16 +38,13 @@ App({
code
,
code
,
appId
:
_this
.
globalData
.
appId
appId
:
_this
.
globalData
.
appId
}).
then
(
res
=>
{
}).
then
(
res
=>
{
console
.
log
(
res
)
wx
.
$authStatus
=
res
.
code
!=
0
wx
.
$authStatus
=
res
.
code
!=
0
util
.
setSessionId
(
res
.
data
.
sessionId
)
util
.
setSessionId
(
res
.
data
.
sessionId
)
const
openId
=
res
.
data
.
openId
const
openId
=
res
.
data
.
openId
ssoApi
.
getUserInfo
({
ssoApi
.
getUserInfo
({
openId
openId
}).
then
(
result
=>
{
}).
then
(
result
=>
{
console
.
log
(
result
)
if
(
returnResponse
)
{
if
(
returnResponse
)
{
console
.
log
(
result
,
' ===='
)
resolve
(
result
)
resolve
(
result
)
}
else
{
}
else
{
if
(
result
.
code
!=
-
1
)
{
if
(
result
.
code
!=
-
1
)
{
...
@@ -68,10 +64,8 @@ App({
...
@@ -68,10 +64,8 @@ App({
wx
.
$authStatus
=
true
wx
.
$authStatus
=
true
reject
()
reject
()
})
})
console
.
log
(
wx
.
$trackData
.
scene
,
'--------'
)
if
(
wx
.
$trackData
.
scene
)
{
if
(
wx
.
$trackData
.
scene
)
{
_this
.
getScene
(
wx
.
$trackData
.
scene
).
then
(
res
=>
{
_this
.
getScene
(
wx
.
$trackData
.
scene
).
then
(
res
=>
{
console
.
log
(
res
)
wx
.
$trackData
.
merchant
=
res
.
merchantId
wx
.
$trackData
.
merchant
=
res
.
merchantId
})
})
wx
.
$Track
.
sendTrack
(
trackData
.
COMPANY
)
wx
.
$Track
.
sendTrack
(
trackData
.
COMPANY
)
...
@@ -90,9 +84,7 @@ App({
...
@@ -90,9 +84,7 @@ App({
const
[
key
,
val
]
=
item
.
split
(
"="
)
const
[
key
,
val
]
=
item
.
split
(
"="
)
op
[
key
]
=
val
op
[
key
]
=
val
})
})
console
.
log
(
op
)
resolve
(
op
)
resolve
(
op
)
// wx.$trackData.merchant = op.merchantId
})
})
})
})
},
},
...
...
project.private.config.json
View file @
640286d
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
{
{
"name"
:
""
,
"name"
:
""
,
"pathName"
:
"pages/tab/index/index"
,
"pathName"
:
"pages/tab/index/index"
,
"query"
:
"scene=sceneId%3D563"
,
"query"
:
"scene=sceneId%3D563
&cardId=1
"
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment