Commit 60fdf6f2 by 程默

fix

parent c2dfc9a1
......@@ -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);
......
<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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment