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
60fdf6f2
Commit
60fdf6f2
authored
Feb 24, 2021
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c2dfc9a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/App.vue
+6
-3
src/pages/index/index.vue
+4
-1
No files found.
src/App.vue
View file @
60fdf6f2
...
...
@@ -64,14 +64,18 @@ export default {
},
methods
:
{
async
setVisible
(
pageList
,
cb
)
{
console
.
log
(
"51111111"
);
// 首页显示条件
let
pageInfo
=
pageList
.
filter
((
item
)
=>
item
.
pageCode
==
1
)[
0
];
let
pageData
=
JSON
.
parse
(
pageInfo
.
pageData
);
// 查询显示条件id
let
showConditionIds
=
checkShowConditionIds
(
pageData
);
// 查询可显示的条件
let
{
data
:
ids
}
=
await
this
.
checkCondition
(
showConditionIds
);
let
{
data
:
ids
,
isAreaNavigation
}
=
await
this
.
checkCondition
(
showConditionIds
);
// 没有定位组件
if
(
!
isAreaNavigation
)
{
cb
()
return
}
// 设置visible
pageInfo
.
pageData
=
this
.
updateCondition
(
pageData
,
ids
);
console
.
log
(
showConditionIds
,
"--------------5454"
,
ids
,
pageInfo
);
...
...
@@ -189,7 +193,6 @@ export default {
this
.
setVisible
(
data
,()
=>
{
console
.
log
(
1711111111
);
this
.
mpApp
.
globalData
.
pageList
=
data
;
// app中异步数据回调 底部栏数据
if
(
this
.
mpApp
.
pageCallBack
)
{
this
.
mpApp
.
pageCallBack
(
data
);
...
...
src/pages/index/index.vue
View file @
60fdf6f2
<
template
>
<div>
<div>
{{
withoutScene
?
"初始化完成"
:
"初始化中"
}}
</div>
<!--
<div>
{{
withoutScene
?
"初始化完成"
:
"初始化中"
}}
</div>
-->
<div
style=
"width:100%;height:90vh;display:flex;justify-content: center;align-items: center;"
>
<van-loading
size=
"40px"
type=
"spinner"
></van-loading>
</div>
<web-view
v-if=
"withoutScene"
:src=
"pageUrl"
@
message=
"getMessage"
@
error=
"handleError"
@
load=
"handleLoad"
></web-view>
</div>
</
template
>
...
...
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