wylyl22 3 years ago
parent 3bed74ec55
commit fe5d45ac03

@ -1,8 +1,9 @@
const app = getApp(); const app = getApp();
import totallist from "./dataConfig/totallist" import totallist from "./dataConfig/totallist"
import dataOption from "./dataConfig/dataOption" import dataOption from "../../option/dataOption"
Component({ Component({
data: { data: {
// totallist:totallist,
imageUrl: getApp().globalData.imageUrl, imageUrl: getApp().globalData.imageUrl,
active:0, active:0,
countYear: 0, countYear: 0,
@ -20,7 +21,7 @@ Component({
const data = res; const data = res;
const sourcetypeCount = data.sourcetypeCount || []; const sourcetypeCount = data.sourcetypeCount || [];
const arr = [] 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({ arr.push({
num: data.count, num: data.count,
text: '入库数据', text: '入库数据',

@ -6,7 +6,6 @@ Component({
showChart: true, showChart: true,
brandOption: { brandOption: {
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
axisPointer: { // 坐标轴指示器,坐标轴触发有效 axisPointer: { // 坐标轴指示器,坐标轴触发有效

@ -0,0 +1,3 @@
export default function brandOption(params) {
}

@ -1,11 +1,13 @@
export default { export default {
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
axisPointer: { // 坐标轴指示器,坐标轴触发有效 axisPointer: { // 坐标轴指示器,坐标轴触发有效
type: 'line' // 默认为直线,可选为:'line' | 'shadow' type: 'line' // 默认为直线,可选为:'line' | 'shadow'
}, },
confine: true confine: true
}, },
legend: { legend: {
icon: 'rectangle',//data图标样式 icon: 'rectangle',//data图标样式
itemWidth: 8,//data图标大小 itemWidth: 8,//data图标大小
Loading…
Cancel
Save