From fe5d45ac03cf971cbfaa699c81b3270dc91cfbf2 Mon Sep 17 00:00:00 2001 From: wylyl22 <2373073266@qq.com> Date: Mon, 11 Jul 2022 09:31:46 +0800 Subject: [PATCH] wyl --- components/indexCom/dataChild/index.js | 5 +++-- components/indexCom/insightChild/index.js | 1 - components/option/brandOption.js | 3 +++ .../{indexCom/dataChild/dataConfig => option}/dataOption.js | 6 ++++-- 4 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 components/option/brandOption.js rename components/{indexCom/dataChild/dataConfig => option}/dataOption.js (98%) diff --git a/components/indexCom/dataChild/index.js b/components/indexCom/dataChild/index.js index e0287fa..51719de 100644 --- a/components/indexCom/dataChild/index.js +++ b/components/indexCom/dataChild/index.js @@ -1,8 +1,9 @@ const app = getApp(); import totallist from "./dataConfig/totallist" -import dataOption from "./dataConfig/dataOption" +import dataOption from "../../option/dataOption" Component({ data: { + // totallist:totallist, imageUrl: getApp().globalData.imageUrl, active:0, countYear: 0, @@ -20,7 +21,7 @@ Component({ const data = res; const sourcetypeCount = data.sourcetypeCount || []; const arr = [] - const imgObj = {'微博': '/weibo.png', '微信': '/weixin.png', 'APP': '/app.png', '论坛': '/luntan.png', '新闻': '/xinwen.png', '其他': '/qita.png'} + const imgObj = {'微博': '/weibo.png', '微信': '/weixin.png', 'APP': '/app.png', '论坛': '/luntan.png', '新闻': '/xinwen.png', '其他': '/qita.png','短视频数据':'/shipin.png'} arr.push({ num: data.count, text: '入库数据', diff --git a/components/indexCom/insightChild/index.js b/components/indexCom/insightChild/index.js index bec9080..e0d3463 100644 --- a/components/indexCom/insightChild/index.js +++ b/components/indexCom/insightChild/index.js @@ -6,7 +6,6 @@ Component({ showChart: true, brandOption: { - tooltip: { trigger: 'axis', axisPointer: { // 坐标轴指示器,坐标轴触发有效 diff --git a/components/option/brandOption.js b/components/option/brandOption.js new file mode 100644 index 0000000..e3e3018 --- /dev/null +++ b/components/option/brandOption.js @@ -0,0 +1,3 @@ +export default function brandOption(params) { + +} \ No newline at end of file diff --git a/components/indexCom/dataChild/dataConfig/dataOption.js b/components/option/dataOption.js similarity index 98% rename from components/indexCom/dataChild/dataConfig/dataOption.js rename to components/option/dataOption.js index 35485ad..84c6cb6 100644 --- a/components/indexCom/dataChild/dataConfig/dataOption.js +++ b/components/option/dataOption.js @@ -1,11 +1,13 @@ -export default { - tooltip: { +export default { + tooltip: { trigger: 'axis', axisPointer: { // 坐标轴指示器,坐标轴触发有效 type: 'line' // 默认为直线,可选为:'line' | 'shadow' }, confine: true }, + + legend: { icon: 'rectangle',//data图标样式 itemWidth: 8,//data图标大小