...
|
...
|
@@ -253,13 +253,13 @@ export default { |
|
|
}
|
|
|
},
|
|
|
legend: {
|
|
|
data: ["一级", "二级*三级", "四级"],
|
|
|
data: ["一级", "二级", "三级", "四级"],
|
|
|
x: "right",
|
|
|
textStyle: {
|
|
|
color: "#fff"
|
|
|
}
|
|
|
},
|
|
|
color: ["#ffc107", "#009688", "#2196f3"],
|
|
|
color: ["#ffc107", "#009688", "#2196f3", "#fff"],
|
|
|
xAxis: [
|
|
|
{
|
|
|
type: "category",
|
...
|
...
|
@@ -347,7 +347,7 @@ export default { |
|
|
}
|
|
|
},
|
|
|
{
|
|
|
name: "二级*三级",
|
|
|
name: "二级",
|
|
|
type: "line",
|
|
|
data: opt.t2,
|
|
|
itemStyle: {
|
...
|
...
|
@@ -369,9 +369,31 @@ export default { |
|
|
}
|
|
|
},
|
|
|
{
|
|
|
name: "三级",
|
|
|
type: "line",
|
|
|
data: opt.t3,
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
label: {
|
|
|
show: true,
|
|
|
position: "top",
|
|
|
formatter: function(p) {
|
|
|
return p.value.toFixed(opt.v);
|
|
|
},
|
|
|
textStyle: {
|
|
|
color: "#fff"
|
|
|
}
|
|
|
},
|
|
|
lineStyle: {
|
|
|
width: 1
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
name: "四级",
|
|
|
type: "line",
|
|
|
data: opt.t,
|
|
|
data: opt.t4,
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
label: {
|
...
|
...
|
@@ -410,23 +432,29 @@ export default { |
|
|
oby = _.map(ret.yesterday, i => {
|
|
|
return (i.paymentCount / i.dau) * 100;
|
|
|
}),
|
|
|
oc4 = _.map(ret2.today, i => {
|
|
|
if (!i.clickPayCount) {
|
|
|
return 0;
|
|
|
}
|
|
|
return (i.paymentCount / i.clickPayCount) * 100;
|
|
|
}),
|
|
|
oc1 = _.map(ret2.today, i => {
|
|
|
if (!i.dau) {
|
|
|
return 0;
|
|
|
}
|
|
|
return (i.infoUv / i.dau) * 100;
|
|
|
}),
|
|
|
oc23 = _.map(ret2.today, i => {
|
|
|
oc2 = _.map(ret2.today, i => {
|
|
|
if (!i.infoUv) {
|
|
|
return 0;
|
|
|
}
|
|
|
return (i.orderCount / i.infoUv) * 100;
|
|
|
return (i.addcartUv / i.infoUv) * 100;
|
|
|
}),
|
|
|
oc3 = _.map(ret2.today, i => {
|
|
|
if (!i.addcartUv) {
|
|
|
return 0;
|
|
|
}
|
|
|
return (i.orderCount / i.addcartUv) * 100;
|
|
|
}),
|
|
|
oc4 = _.map(ret2.today, i => {
|
|
|
if (!i.clickPayCount) {
|
|
|
return 0;
|
|
|
}
|
|
|
return (i.paymentCount / i.clickPayCount) * 100;
|
|
|
}),
|
|
|
times = _.map(ret.today, i =>
|
|
|
(i.dayHour + "").substring((i.dayHour + "").length - 2)
|
...
|
...
|
@@ -466,11 +494,12 @@ export default { |
|
|
title: "",
|
|
|
chartName: ocChart,
|
|
|
t1: oc1,
|
|
|
t2: oc23,
|
|
|
t: oc4,
|
|
|
t2: oc2,
|
|
|
t3: oc3,
|
|
|
t4: oc4,
|
|
|
timeLine: days,
|
|
|
min: 0,
|
|
|
max: _.max([...oc1, ...oc23, ...oc4]),
|
|
|
max: _.max([...oc1, ...oc2, ...oc3, ...oc4]),
|
|
|
color: "#009688",
|
|
|
v: 0,
|
|
|
isRound: true
|
...
|
...
|
|