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
76f23ffe
Commit
76f23ffe
authored
Sep 15, 2020
by
张卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口错误
parent
68ea55f1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
src/api/index.js
+0
-2
src/pages/index/index.vue
+4
-4
No files found.
src/api/index.js
View file @
76f23ffe
...
...
@@ -8,8 +8,6 @@ console.log(process.env,'-----------------config------')
getShareSceneRecord
(
options
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/shareSceneRecord/getShareSceneRecord/
${
options
}
`
,
{});
},
}
export
default
{
//POST /shareSceneRecord/getShareSceneRecord/{sceneCode} 获取分享场景参数记录
addRecord
(
data
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/scanCodeCustomerRecord/addRecord`
,
{
data
});
...
...
src/pages/index/index.vue
View file @
76f23ffe
...
...
@@ -63,7 +63,7 @@ export default {
this
.
checkLogin
();
this
.
options
=
options
;
console
.
log
(
'-------
'
)
console
.
log
(
'-------
1'
,
options
.
scene
)
console
.
log
(
this
.
options
)
console
.
log
(
'-------'
)
if
(
options
.
share
)
{
...
...
@@ -135,7 +135,6 @@ export default {
this
.
page
=
options
.
backpath
;
this
.
params
+=
"&"
+
serialize
(
options
.
params
);
}
else
if
(
options
.
scene
)
{
// console.log()
if
(
options
.
scene
.
indexOf
(
'_'
)
==
-
1
){
//新二维码扫码进入
indexApi
.
getShareSceneRecord
(
options
.
scene
).
then
(
res
=>
{
...
...
@@ -143,7 +142,9 @@ export default {
this
.
page
=
res
.
data
.
data
.
pageUri
;
let
paramsObj
=
JSON
.
parse
(
res
.
data
.
data
.
scene
);
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
paramsObj
.
attractingCustomerChannelId
)
console
.
log
(
flag
,
99999999
,
wx
.
getStorageSync
(
'attractingCustomerChannelId'
),
wx
.
getStorageSync
(
"openid"
))
console
.
log
(
res
.
data
.
data
)
console
.
log
(
wx
.
getStorageSync
(
"openid"
))
console
.
log
(
333333
)
if
(
wx
.
getStorageSync
(
"openid"
))
{
indexApi
.
addRecord
(
{
...
...
@@ -153,7 +154,6 @@ export default {
newRegisterFlag
:
0
,
}
).
then
(
ele
=>
{
alert
(
ele
,
9999
)
})
}
let
params
=
''
;
...
...
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