diff --git a/components/c-echars/index.js b/components/c-echars/index.js index 3bcf9df..2f76ffe 100644 --- a/components/c-echars/index.js +++ b/components/c-echars/index.js @@ -26,6 +26,7 @@ Component({ * 组件的初始数据 */ data: { + show: true, ec: { lazyLoad:true // 设置图表懒加载 } diff --git a/components/indexCom/dataChild/index.js b/components/indexCom/dataChild/index.js index 8274981..db6fe0d 100644 --- a/components/indexCom/dataChild/index.js +++ b/components/indexCom/dataChild/index.js @@ -226,20 +226,12 @@ Component({ } }, lifetimes: { - created() { - wx.removeStorageSync('currTemplateType'); - }, attached() { - setTimeout(() => { - - },1000) - - }, - detached(e) { - console.log(2222) - this.setData({ - showChart: false - }) + // setTimeout(() => { + // this.setData({ + // showChart: false + // }) + // },1000) }, }, methods: { @@ -248,9 +240,6 @@ Component({ intervalSel: e.currentTarget.dataset.index }) }, - changeTab(val) { - console.log(val) - } } }) \ No newline at end of file