Commit 60fdf6f2 by 程默

fix

parent c2dfc9a1
...@@ -64,14 +64,18 @@ export default { ...@@ -64,14 +64,18 @@ export default {
}, },
methods: { methods: {
async setVisible(pageList, cb) { async setVisible(pageList, cb) {
console.log("51111111");
// 首页显示条件 // 首页显示条件
let pageInfo = pageList.filter((item) => item.pageCode == 1)[0]; let pageInfo = pageList.filter((item) => item.pageCode == 1)[0];
let pageData = JSON.parse(pageInfo.pageData); let pageData = JSON.parse(pageInfo.pageData);
// 查询显示条件id // 查询显示条件id
let showConditionIds = checkShowConditionIds(pageData); let showConditionIds = checkShowConditionIds(pageData);
// 查询可显示的条件 // 查询可显示的条件
let { data: ids } = await this.checkCondition(showConditionIds); let { data: ids ,isAreaNavigation} = await this.checkCondition(showConditionIds);
// 没有定位组件
if (!isAreaNavigation) {
cb()
return
}
// 设置visible // 设置visible
pageInfo.pageData = this.updateCondition(pageData, ids); pageInfo.pageData = this.updateCondition(pageData, ids);
console.log(showConditionIds, "--------------5454", ids, pageInfo); console.log(showConditionIds, "--------------5454", ids, pageInfo);
...@@ -189,7 +193,6 @@ export default { ...@@ -189,7 +193,6 @@ export default {
this.setVisible(data,()=>{ this.setVisible(data,()=>{
console.log(1711111111); console.log(1711111111);
this.mpApp.globalData.pageList = data; this.mpApp.globalData.pageList = data;
// app中异步数据回调 底部栏数据 // app中异步数据回调 底部栏数据
if (this.mpApp.pageCallBack) { if (this.mpApp.pageCallBack) {
this.mpApp.pageCallBack(data); this.mpApp.pageCallBack(data);
......
<template> <template>
<div> <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> <web-view v-if="withoutScene" :src="pageUrl" @message="getMessage" @error="handleError" @load="handleLoad"></web-view>
</div> </div>
</template> </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