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
1ecfe411
Commit
1ecfe411
authored
Nov 24, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新用户
parent
3e37659b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
src/pages/index/index.vue
+6
-1
src/pages/login/index.vue
+7
-2
No files found.
src/pages/index/index.vue
View file @
1ecfe411
...
...
@@ -92,6 +92,7 @@ export default {
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'sellerId'
,
''
)
}
this
.
options
=
options
;
console
.
log
(
this
.
options
,
'----------------index-----options'
)
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
if
(
wx
.
getStorageSync
(
"workBox"
)){
...
...
@@ -148,12 +149,16 @@ export default {
this
.
page
=
""
;
this
.
params
=
""
;
}
else
if
(
options
.
from
&&
options
.
from
==
"h5login"
)
{
//来自h5登录
let
params
=
JSON
.
parse
(
options
.
params
);
console
.
log
(
params
.
sessionid
,
'--------------h5login--params'
)
//来自h5登录
wx
.
setStorage
({
key
:
"sessionid"
,
data
:
params
.
sessionid
});
this
.
page
=
decodeURIComponent
(
options
.
backpath
);
console
.
log
(
this
.
page
,
'----------------------h5login--page'
)
options
.
params
&&
(
this
.
params
+=
"&"
+
serialize
(
params
));
}
else
if
(
options
.
from
&&
(
options
.
from
==
"home"
||
options
.
from
==
"livedToIndex"
))
{
//来自直播详情
this
.
page
=
decodeURIComponent
(
options
.
backpath
);
...
...
src/pages/login/index.vue
View file @
1ecfe411
...
...
@@ -82,6 +82,7 @@ export default {
scene
:
''
,
//场景
ossLink
:
''
,
//第三方点击进入链接
wxUserInfo
:{},
queryOptions
:{},
};
},
onShow
()
{
...
...
@@ -110,7 +111,6 @@ export default {
},
onLoad
(
options
)
{
console
.
log
(
options
,
'----------------------login-options'
)
login
.
getShopUserProtocol
().
then
(
res
=>
{
if
(
res
.
data
.
code
==
'200'
)
{
this
.
content
=
res
.
data
.
data
;
...
...
@@ -135,6 +135,7 @@ export default {
this
.
ossLink
=
decodeURIComponent
(
options
.
ossLink
)
}
this
.
getshop
();
this
.
queryOptions
=
options
;
},
methods
:
{
conF
()
{
...
...
@@ -505,6 +506,7 @@ export default {
});
},
handbindHandle
()
{
console
.
log
(
this
.
queryOptions
,
'---------------options'
)
const
query
=
{
openId
:
this
.
openid
,
unionId
:
this
.
unionId
,
...
...
@@ -513,8 +515,11 @@ export default {
nickname
:
this
.
userInfo
.
nickName
,
country
:
this
.
userInfo
.
country
,
province
:
this
.
userInfo
.
province
,
city
:
this
.
userInfo
.
city
city
:
this
.
userInfo
.
city
,
...
this
.
queryOptions
,
};
console
.
log
(
query
,
'-------------------519'
)
console
.
log
(
serialize
(
query
),
'------------------- serialize(query)'
)
if
(
wx
.
getStorageSync
(
this
.
$store
.
state
.
mixid
+
'storeId'
))
{
query
.
storeId
=
wx
.
getStorageSync
(
this
.
$store
.
state
.
mixid
+
'storeId'
)
}
...
...
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