Commit f44c678b by 李嘉林

fix

parent aed04ee7
......@@ -23,7 +23,7 @@ module.exports = merge(prodEnv, {//zjgyl
OLSHOP_URL:'"https://m.xinhuabest.com/innerApi/shopApiService"',
// OLSHOP_URL:'"https://shop.mayi888.com/innerApi/shopApiService"',
IMG_DOMAIN: '"https://new-xhyx.obs.cidc-rp-2005.joint.cmecloud.cn"',
IMG_DOMAIN: '"https://prod-xhyx.obs.cidc-rp-12.joint.cmecloud.cn"',
POSTHOG_KEY: '"phc_nTr1oY7NkSuDMZsqCskE6iUIGKgWPmFHlRAKFVuZD2B"',
POSTHOG_HOST: '"https://posthog.mayi118.com"',
MANALYTICS_HOST: '"https://bi.xinhuabest.com/log/xinhua.gif"',
......
......@@ -67,7 +67,10 @@ export default {
loadComponents(index) {
this.contentList.push(this.pageData[index]);
index++;
if (index > this.pageData.length) return console.log("-微页面渲染结束-");
if (index > this.pageData.length) {
console.log("-微页面渲染结束-");
return;
}
setTimeout(() => {
this.loadComponents(index);
}, 30);
......
......@@ -10,9 +10,6 @@
<StoreAddr @toUpdate="reloadEnterShopRule" @toPageLoading="toPageLoading" ref="StoreAddr"></StoreAddr>
<ThemeDataPlant></ThemeDataPlant>
<div v-for="(item,index) in pageData" :key="index">
<div v-if="item.componentCode == 'embed-module' && item.componentInfo.visible == 1">
<embedModule :datas="item" :componentIndex="index"></embedModule>
</div>
<div v-if="item.componentCode=='banner' && item.componentInfo.visible == 1">
<banner :datas="item"></banner>
</div>
......@@ -119,6 +116,9 @@
<div v-if="item.componentCode == 'brand-list' && item.componentInfo.visible == 1">
<brandList :datas="item"></brandList>
</div>
<div v-if="item.componentCode == 'embed-module' && item.componentInfo.visible == 1">
<embedModule :datas="item" :componentIndex="index"></embedModule>
</div>
</div>
<template>
</template>
......@@ -206,7 +206,8 @@ export default {
data() {
return {
pageInfo: {},
pageData: {},
pageData: [],
contentList: [],
themeColor:{
'--main-color':"",
'--minor-color':"",
......@@ -744,7 +745,11 @@ export default {
this.active=checkTabbarPage('/');
this.setVisible(this.mpApp.globalData.pageList,(res)=>{
this.pageInfo = res;
this.pageData = JSON.parse(this.pageInfo.pageData);
this.contentList = JSON.parse(this.pageInfo.pageData);
this.pageData.push(this.contentList[0]);
console.log(this.pageData,'--this.pageData')
let i = 1;
this.loadComponents(i);
});
setTimeout(() => {
this.showbottomCont = true;
......@@ -809,6 +814,17 @@ export default {
}
}
},
loadComponents(index) {
this.pageData.push(this.contentList[index]);
index++;
if (index > this.contentList.length - 1) {
console.log("-页面渲染结束-");
return;
}
setTimeout(() => {
this.loadComponents(index);
}, 30);
},
getSpokesmanInit(extConfig) {
log.info(extConfig,'getSpokesmanInit-extConfig');
//绑定上下级关系
......
......@@ -540,7 +540,7 @@ const componentOptions = {
var that = this
let storageDatasList = this.getStorageSync('storageDatasList') || []
let { style } = storageDatasList[that.data.datasIndex];
let style = storageDatasList[that.data.datasIndex].style || "";
if (!style) return;
let type = ''
if(style == 'list' || style == 'rowList'){
......
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