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
cfa88f5e
Commit
cfa88f5e
authored
Mar 01, 2021
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ff
parent
66ea6205
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
83 deletions
+6
-83
project.config.json
+6
-0
src/pages/tabbar4/index.vue
+0
-72
src/pages/tabbar4/main.js
+0
-5
src/pages/tabbar4/main.json
+0
-6
No files found.
project.config.json
View file @
cfa88f5e
...
...
@@ -82,6 +82,12 @@
{
"name"
:
"pages/tabBar4/main"
,
"pathName"
:
"pages/tabBar4/main"
,
"query"
:
""
,
"scene"
:
null
},
{
"name"
:
"pages/home/main"
,
"pathName"
:
"pages/home/main"
,
"scene"
:
null
}
]
...
...
src/pages/tabbar4/index.vue
deleted
100644 → 0
View file @
66ea6205
<!--
tabbar
-->
<
template
>
<div>
<web-view
:src=
"pageUrl"
@
error=
"handleError"
></web-view>
<div
style=
"width:100%;height:90vh;display:flex;justify-content: center;align-items: center;"
>
<van-loading
size=
"40px"
type=
"spinner"
></van-loading>
</div>
</div>
</
template
>
<
script
>
import
{
getUrlofLink
,
setTabBarActive
,
checkTabbarPage
,
}
from
"../../utils/mayi.js"
;
export
default
{
data
()
{
return
{
link
:
process
.
env
.
BASE_URL
,
page
:
"/"
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
+
"&tabbar=4&native=1"
,
index
:
4
,
ss
:
""
,
};
},
computed
:
{
pageUrl
()
{
return
this
.
link
+
this
.
page
+
this
.
params
+
this
.
ss
;
},
},
onLoad
(
options
)
{
let
ss
=
wx
.
getStorageSync
(
"sessionid"
);
this
.
ss
=
ss
?
`&sessionid=
${
ss
}
`
:
""
;
// tabbar 跳转
let
homeIndex
=
checkTabbarPage
(
"/"
);
homeIndex
!=
0
&&
homeIndex
==
this
.
index
&&
(
this
.
index
=
0
);
if
(
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
this
.
index
].
link
)
{
let
p
=
getUrlofLink
(
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
this
.
index
].
link
);
let
pl
=
p
.
split
(
'?'
)
if
(
pl
[
1
])
{
this
.
page
=
pl
[
0
]
this
.
params
+=
'&'
+
pl
[
1
]
}
else
{
this
.
page
=
p
}
this
.
mpApp
.
globalData
.
tabBarPageLink
=
""
;
}
},
onShow
()
{
let
ss
=
wx
.
getStorageSync
(
"sessionid"
);
if
(
!
this
.
ss
&&
ss
)
{
this
.
ss
=
`&sessionid=
${
ss
}
`
;
}
setTabBarActive
.
bind
(
this
)(
this
.
index
);
},
methods
:
{
handleError
(
data
)
{
wx
.
showLoading
({
title
:
"网页加载失败 请右上角刷新"
,
});
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
src/pages/tabbar4/main.js
deleted
100644 → 0
View file @
66ea6205
import
Vue
from
'vue'
import
App
from
'./index'
const
app
=
new
Vue
(
App
)
app
.
$mount
()
src/pages/tabbar4/main.json
deleted
100644 → 0
View file @
66ea6205
{
"usingComponents"
:
{
"van-loading"
:
"/static/vant/loading/index"
}
}
\ No newline at end of file
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