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
196a45d9
Commit
196a45d9
authored
Feb 01, 2021
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tabbar
parent
40c48936
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
7 deletions
+19
-7
src/pages/home/index.vue
+12
-1
src/pages/index/index.vue
+2
-1
src/pages/tabBar1/index.vue
+2
-2
src/pages/tabBar2/index.vue
+1
-1
src/pages/tabBar3/index.vue
+1
-1
src/pages/tabbar4/index.vue
+1
-1
No files found.
src/pages/home/index.vue
View file @
196a45d9
...
...
@@ -47,8 +47,19 @@ export default {
pageData
:
{},
};
},
onLoad
()
{
onLoad
(
options
)
{
let
that
=
this
;
// 来源
if
(
options
.
from
==
"logout"
)
{
//来自用户登出
wx
.
removeStorage
({
key
:
"sessionid"
});
wx
.
removeStorage
({
key
:
"openid"
});
}
// 获取页面数据
if
(
this
.
mpApp
.
globalData
.
pageList
)
{
that
.
init
(
this
.
mpApp
.
globalData
.
pageList
);
}
else
{
...
...
src/pages/index/index.vue
View file @
196a45d9
...
...
@@ -133,7 +133,8 @@ export default {
if
(
this
.
page
.
includes
(
"?"
)){
this
.
params
=
"&mixid="
+
this
.
shopId
;
}
options
.
params
&&
(
this
.
params
+=
"&"
+
serialize
(
options
.
params
));
options
.
params
&&
(
this
.
params
+=
"&"
+
serialize
(
decodeURIComponent
(
options
.
params
)));
console
.
log
(
this
.
page
,
this
.
params
)
}
else
if
(
options
.
from
&&
options
.
from
==
"livedBackShop"
)
{
//直播页back到商城
this
.
page
=
decodeURIComponent
(
options
.
backpath
);
...
...
src/pages/tabBar1/index.vue
View file @
196a45d9
...
...
@@ -19,7 +19,7 @@ export default {
return
{
link
:
process
.
env
.
BASE_URL
,
page
:
"/"
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
+
"&tabbar=1"
,
index
:
1
,
ss
:
""
,
};
...
...
@@ -35,7 +35,7 @@ export default {
// tabbar 跳转
let
homeIndex
=
checkTabbarPage
(
"/"
);
homeIndex
!=
0
&&
homeIndex
==
this
.
index
&&
(
this
.
index
=
0
);
homeIndex
!=
0
&&
homeIndex
==
this
.
index
&&
(
this
.
index
=
0
);
if
(
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
this
.
index
].
link
)
{
this
.
page
=
getUrlofLink
(
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
this
.
index
].
link
...
...
src/pages/tabBar2/index.vue
View file @
196a45d9
...
...
@@ -19,7 +19,7 @@ export default {
return
{
link
:
process
.
env
.
BASE_URL
,
page
:
"/"
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
+
"&tabbar=1"
,
index
:
2
,
ss
:
""
,
};
...
...
src/pages/tabBar3/index.vue
View file @
196a45d9
...
...
@@ -19,7 +19,7 @@ export default {
return
{
link
:
process
.
env
.
BASE_URL
,
page
:
"/"
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
+
"&tabbar=1"
,
index
:
3
,
ss
:
""
,
};
...
...
src/pages/tabbar4/index.vue
View file @
196a45d9
...
...
@@ -19,7 +19,7 @@ export default {
return
{
link
:
process
.
env
.
BASE_URL
,
page
:
"/"
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
+
"&tabbar=1"
,
index
:
4
,
ss
:
""
,
};
...
...
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