581e2013 by 杨炀

no message

1 parent fdbec11d
......@@ -60,18 +60,17 @@
<text x="50%" y="40" text-anchor="middle" font-weight="bold" font-size="16" fill="url(#gradient)">{{ list['不满意'] }}</text>
</svg>
</div>
<div class="q5box qqbox">
<!-- 液体球-->
<div ref="q5" style="width: 100%;height: 90px;"></div>
<svg width="100%" height="100">
<linearGradient id="gradient" y1="0%" x1="100%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#03AEFD" />
<stop offset="10%" stop-color="#AEFFF3" />
</linearGradient>
<text x="50%" y="15" text-anchor="middle" fill="#fff" font-size="14">非常不满意</text>
<text x="50%" y="40" text-anchor="middle" font-weight="bold" font-size="16" fill="url(#gradient)">{{list['非常不满意']}}</text>
</svg>
</div>
<!-- <div class="q5box qqbox">-->
<!-- <div ref="q5" style="width: 100%;height: 90px;"></div>-->
<!-- <svg width="100%" height="100">-->
<!-- <linearGradient id="gradient" y1="0%" x1="100%" x2="100%" y2="100%">-->
<!-- <stop offset="0%" stop-color="#03AEFD" />-->
<!-- <stop offset="10%" stop-color="#AEFFF3" />-->
<!-- </linearGradient>-->
<!-- <text x="50%" y="15" text-anchor="middle" fill="#fff" font-size="14">非常不满意</text>-->
<!-- <text x="50%" y="40" text-anchor="middle" font-weight="bold" font-size="16" fill="url(#gradient)">{{list['非常不满意']}}</text>-->
<!-- </svg>-->
<!-- </div>-->
</div>
......@@ -218,12 +217,12 @@ const setQ1 = (ref, data, dom) => {
}
.partB{display: flex;}
.qqbox{width: 20%;position: relative;
.qqbox{width: 25%;position: relative;
background: url("@/assets/img/q1.png") no-repeat bottom center;
background-size: contain;
}
.q1box,.q5box{top: -60px}
.q2box,.q4box{top: -30px}
//.q1box,.q5box{top: -60px}
//.q2box,.q4box{top: -30px}
</style>
......
......@@ -66,8 +66,10 @@ const getAdata = () => {
dataA.value = []
kindList.value = []
for(let n of res.data){
kindList.value.push(n.name)
dataA.value.push(n.count)
if(n.count>0){
kindList.value.push(n.name)
dataA.value.push(n.count)
}
}
setA()
})
......@@ -77,8 +79,10 @@ const getBdata = () => {
dataA.value = []
kindList.value = []
for(let n of res.data){
kindList.value.push(n.name)
dataA.value.push(n.count)
if(n.count>0) {
kindList.value.push(n.name)
dataA.value.push(n.count)
}
}
setB()
})
......
......@@ -65,8 +65,10 @@ const getA = () => {
dataA.value = []
kindList.value = []
for(let n of res.data){
kindList.value.push(n.name)
dataA.value.push(n.count)
if(n.count>0) {
kindList.value.push(n.name)
dataA.value.push(n.count)
}
}
setA()
})
......@@ -177,8 +179,10 @@ const getB = () => {
dataA.value = []
kindList.value = []
for(let n of res.data){
kindList.value.push(n.name)
dataA.value.push(n.count)
if(n.count>0) {
kindList.value.push(n.name)
dataA.value.push(n.count)
}
}
setB()
})
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!