Commit b3d15bb3 by 胡悦

提交

1 parent 3c597426
......@@ -10,6 +10,7 @@
},
"dependencies": {
"axios": "^0.27.2",
"echarts": "^5.4.0",
"js-sha1": "^0.6.0",
"lib-flexible": "^0.3.2",
"md5": "^2.3.0",
......
// 已结束
.box-report {
display: flex;
flex-wrap: wrap;
font-size: 22px;
text-align: center;
background: linear-gradient(0deg, #FFE1C8 0%, #FFF2E0 100%);
border-radius: 10px;
padding: 10px;
margin-top: 30px;
.p-t-10 {
padding-top: 10px;
}
.report-item {
width: calc((100% - 4px) / 3);
.icon {
display: inline-block;
width: 50px;
height: 50px;
}
.icon-1 {
background: url("@/assets/images/activityReport/1.png") no-repeat;
background-size: 50px;
}
.icon-2 {
background: url("@/assets/images/activityReport/2.png") no-repeat;
background-size: 50px;
}
.icon-3 {
background: url("@/assets/images/activityReport/3.png") no-repeat;
background-size: 50px;
}
.icon-4 {
background: url("@/assets/images/activityReport/4.png") no-repeat;
background-size: 50px;
}
.icon-5 {
background: url("@/assets/images/activityReport/5.png") no-repeat;
background-size: 50px;
}
.icon-6 {
background: url("@/assets/images/activityReport/6.png") no-repeat;
background-size: 50px;
}
.report-name {
margin-bottom: 5px;
font-weight: 400;
color: #333333;
line-height: 32px;
}
.report-value {
display: inline-flex;
color: #FF333A;
align-items: flex-end;
margin-bottom: 10px;
.report-number {
font-size: 36px;
font-weight: 600;
margin-right: 8px;
line-height: 40px;
}
.report-unit {
display: inline-block;
line-height: 36px;
}
}
}
.border-right {
border-right: 1px solid rgba(255, 208, 171, 0.8);
}
.border-bottom {
border-bottom: 1px solid rgba(255, 208, 171, 0.8);
}
}
.finish-activty {
margin-top: 50px;
text-align: center;
height: 85px;
.activty-text {
display: inline-block;
background: linear-gradient(0deg, #FFD7B7 0%, #FFEBDB 100%);
border-radius: 8px;
padding: 13px 21px;
font-size: 24px;
font-weight: 500;
color: #262525;
line-height: 32px;
.activty-flag {
color: #FF363B;
font-size: 32px;
font-weight: 500;
}
}
}
.icon-horn {
position: absolute;
bottom: 20px;
left: 0;
width: 157px;
height: 131px;
}
.icon-fireworks {
position: absolute;
bottom: 35px;
right: 4px;
width: 275px;
height: 205px;
}
.vs-bg {
position: absolute;
top: 44px;
width: 687px;
height: 356px;
z-index: 0;
}
.vs-box {
display: flex;
position: relative;
width: 687px;
.vs-item {
width: 50%;
text-align: center;
.vs-title {
font-size: 28px;
font-weight: 600;
color: #333333;
line-height: 32px;
}
.vs-content {
margin-top: 16px;
padding: 24px 30px;
.content-item {
display: flex;
font-size: 22px;
font-weight: 400;
color: #333333;
line-height: 22px;
margin-bottom: 15px;
.content-label {
margin-right: 30px;
}
.content-value {
color: #FF333A;
font-size: 22px;
.content-number {
display: inline-block;
width: 100px;
text-align: left;
font-size: 36px;
font-weight: 600;
font-style: italic;
}
}
}
.left-content {
background: linear-gradient(90deg, rgba(255, 211, 177, 0.7) 0%, rgba(255,226,205,0) 100%);
// opacity: 0.7;
border-radius: 22px;
padding: 14px 20px 8px;
}
.right-content {
background: linear-gradient(270deg, rgba(255, 167, 152, 0.6) 0%, rgba(254,177,164,0) 100%);
// opacity: 0.6;
border-radius: 22px;
padding: 14px 20px 8px;
display: flex;
justify-content: flex-end;
}
}
}
}
.summary {
font-size: 30px;
font-weight: 600;
color: #333333;
line-height: 30px;
text-align: center;
width: 100%;
margin-top: 40px;
margin-bottom: 10px;
}
.vs-tip {
display: flex;
justify-content: center;
font-size: 22px;
font-weight: 400;
color: #333333;
line-height: 34px;
margin-bottom: -1px;
}
\ No newline at end of file
......@@ -466,194 +466,3 @@
}
}
// 已结束
.box-report {
display: flex;
flex-wrap: wrap;
font-size: 22px;
text-align: center;
background: linear-gradient(0deg, #FFE1C8 0%, #FFF2E0 100%);
border-radius: 10px;
padding: 10px;
margin-top: 30px;
.p-t-10 {
padding-top: 10px;
}
.report-item {
width: calc((100% - 4px) / 3);
.icon {
display: inline-block;
width: 50px;
height: 50px;
}
.icon-1 {
background: url("@/assets/images/activityReport/1.png") no-repeat;
background-size: 50px;
}
.icon-2 {
background: url("@/assets/images/activityReport/2.png") no-repeat;
background-size: 50px;
}
.icon-3 {
background: url("@/assets/images/activityReport/3.png") no-repeat;
background-size: 50px;
}
.icon-4 {
background: url("@/assets/images/activityReport/4.png") no-repeat;
background-size: 50px;
}
.icon-5 {
background: url("@/assets/images/activityReport/5.png") no-repeat;
background-size: 50px;
}
.icon-6 {
background: url("@/assets/images/activityReport/6.png") no-repeat;
background-size: 50px;
}
.report-name {
margin-bottom: 5px;
font-weight: 400;
color: #333333;
line-height: 32px;
}
.report-value {
display: inline-flex;
color: #FF333A;
align-items: flex-end;
margin-bottom: 10px;
.report-number {
font-size: 36px;
font-weight: 600;
margin-right: 8px;
line-height: 40px;
}
.report-unit {
display: inline-block;
line-height: 36px;
}
}
}
.border-right {
border-right: 1px solid rgba(255, 208, 171, 0.8);
}
.border-bottom {
border-bottom: 1px solid rgba(255, 208, 171, 0.8);
}
}
.finish-activty {
margin-top: 50px;
text-align: center;
height: 85px;
.activty-text {
display: inline-block;
background: linear-gradient(0deg, #FFD7B7 0%, #FFEBDB 100%);
border-radius: 8px;
padding: 13px 21px;
font-size: 24px;
font-weight: 500;
color: #262525;
line-height: 32px;
.activty-flag {
color: #FF363B;
font-size: 32px;
font-weight: 500;
}
}
}
.icon-horn {
position: absolute;
bottom: 20px;
left: 0;
width: 157px;
height: 131px;
}
.icon-fireworks {
position: absolute;
bottom: 35px;
right: 4px;
width: 275px;
height: 205px;
}
.vs-bg {
position: absolute;
top: 44px;
width: 687px;
height: 356px;
z-index: 0;
}
.vs-box {
display: flex;
position: relative;
width: 687px;
.vs-item {
width: 50%;
text-align: center;
.vs-title {
font-size: 28px;
font-weight: 600;
color: #333333;
line-height: 32px;
}
.vs-content {
margin-top: 16px;
padding: 24px 30px;
.content-item {
display: flex;
font-size: 22px;
font-weight: 400;
color: #333333;
line-height: 22px;
margin-bottom: 15px;
.content-label {
margin-right: 30px;
}
.content-value {
color: #FF333A;
font-size: 22px;
.content-number {
display: inline-block;
width: 100px;
text-align: left;
font-size: 36px;
font-weight: 600;
font-style: italic;
}
}
}
.left-content {
background: linear-gradient(90deg, rgba(255, 211, 177, 0.7) 0%, rgba(255,226,205,0) 100%);
// opacity: 0.7;
border-radius: 22px;
padding: 14px 20px 8px;
}
.right-content {
background: linear-gradient(270deg, rgba(255, 167, 152, 0.6) 0%, rgba(254,177,164,0) 100%);
// opacity: 0.6;
border-radius: 22px;
padding: 14px 20px 8px;
display: flex;
justify-content: flex-end;
}
}
}
}
.summary {
font-size: 30px;
font-weight: 600;
color: #333333;
line-height: 30px;
text-align: center;
width: 100%;
margin-top: 40px;
margin-bottom: 10px;
}
.vs-tip {
display: flex;
justify-content: center;
font-size: 22px;
font-weight: 400;
color: #333333;
line-height: 34px;
margin-bottom: -1px;
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-11 17:41:38
* @LastEditors: huyue
* @LastEditTime: 2022-10-14 10:16:34
* @LastEditTime: 2022-10-14 14:06:48
-->
<template>
<!-- 战报产品 -->
......@@ -421,7 +421,9 @@
<img src="@/assets/images/activityReport/title-right.png" alt="" />
</div>
</div>
<div class="box-body"></div>
<div class="box-body">
<div ref="main" style="width: 100%; height: 400px"></div>
</div>
<div class="box-footer">
<img src="@/assets/images/activityReport/box-footer.png" alt="" />
</div>
......@@ -440,11 +442,44 @@
</div>
</template>
<script lang="ts" setup>
import { ref } from "vue";
import { ref, onMounted } from "vue";
// 按需引入 echarts
import * as echarts from "echarts";
const count = ref(50);
const progress = ref(50);
const main = ref();
onMounted(() => {
init();
});
function init() {
var myChart = echarts.init(main.value);
// 指定图表的配置项和数据
var option = {
title: {
text: "ECharts 入门示例",
},
tooltip: {},
legend: {
data: ["销量"],
},
xAxis: {
data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"],
},
yAxis: {},
series: [
{
name: "销量",
type: "bar",
data: [5, 20, 36, 10, 10, 20],
},
],
};
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
}
</script>
<style lang="scss" scoped>
@import "src/assets/styles/activity.scss";
@import "src/assets/styles/activited.scss";
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!