Commit 2e678d27 by 前端

Merge branch 'v3.0.0' of http://192.168.3.233:8090/h5/glsx-posters into v3.0.0

2 parents f64f5089 970e5fb6
/*
* @Description:
* @Author: huyue
* @Date: 2022-10-10 10:59:01
* @LastEditors: huyue
* @LastEditTime: 2022-10-14 14:44:46
*/
module.exports = {
"plugins": {
"postcss-pxtorem": {
rootValue: 37.5, // 75 表示 750 设计稿,37.5 表示 37.5 表示 375 设计稿
rootValue: 75, // 75 表示 750 设计稿,37.5 表示 37.5 表示 375 设计稿
unitPrecision: 6, // 计算结果保留 6 位小数
selectorBlackList: ['.no-rem', 'no-rem'], // 要忽略的选择器并保留为px
propList: ['*'], // 可以从 px 更改为 rem 的属性 感叹号开头的不转化
......
......@@ -466,3 +466,143 @@
}
}
// 触达通道分析
.legend-list {
display: flex;
width: 400px;
height: 50px;
font-size: 22px;
font-weight: 400;
color: #333333;
line-height: 63px;
.legend-item {
display: inline-flex;
height: 100%;
width: calc(100% / 3);
flex-direction: row;
justify-content: center;
align-items: center;
.legend-dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 4px;
margin-right: 7px;
}
}
}
.funnel-box {
display: flex;
position: relative;
.funnel-list {
position: relative;
margin-left: 30px;
padding-bottom: 20px;
.funnel-item {
display: flex;
height: 60px;
margin-bottom: 10px;
.funnel-bg {
display: inline-block;
height: 100%;
transform: skewX(15deg);
min-width: 60px;
.funnel-value {
display: inline-flex;
justify-content: center;
align-items: center;
font-size: 20px;
font-weight: 500;
color: #FFFFFF;
line-height: 32px;
transform: skewX(-15deg);
width: 100%;
height: 100%;
}
}
}
.width0 {
width: 400px;
}
.width1 {
width: 350px;
margin-left: 18px;
}
.width2 {
width: 304px;
margin-left: 36px;
}
.width3 {
width: 258px;
margin-left: 55px;
}
.arrow-left {
position: absolute;
top: -10px;
left: -30px;
width: 90px;
// }
img {
width: 81px;
height: 280px;
}
}
.arrow-right {
position: absolute;
top: -19px;
right: 10px;
background-color: #FFF6EA;
transform: skewX(-15deg);
width: 65px;
img {
margin-left: 20px;
width: 14px;
height: 290px;
}
}
}
.funnel-right {
margin-left: -10px;
transform: skewX(-15deg);
.label-item {
display: flex;
align-items: center;
padding: 7px 30px;
margin-bottom: 28px;
background: linear-gradient(90deg, #FFD0B9 0%, #FFF6EA 100%);
.icon {
display: inline-block;
width: 30px;
height: 30px;
transform: skewX(15deg);
margin-right: 10px;
}
.icon-custom {
background: url("@/assets/images/activityReport/icon-custom.png") no-repeat;
background-size: 25px;
}
.icon-visite {
background: url("@/assets/images/activityReport/icon-visite.png") no-repeat;
background-size: 25px;
}
.icon-order {
background: url("@/assets/images/activityReport/icon-order.png") no-repeat;
background-size: 25px;
}
.icon-conversion {
background: url("@/assets/images/activityReport/icon-conversion.png") no-repeat;
background-size: 25px;
}
.label-name {
display: inline-block;
font-size: 22px;
font-weight: 400;
color: #333333;
transform: skewX(15deg);
line-height: 21px;
}
}
}
}
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-10 16:21:55
* @LastEditors: huyue
* @LastEditTime: 2022-10-13 14:24:42
* @LastEditTime: 2022-10-14 15:24:50
-->
<template>
<div class="table-box ranking">
......@@ -205,5 +205,6 @@ export default defineComponent({
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #ae5648;
}
</style>
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-11 17:41:38
* @LastEditors: huyue
* @LastEditTime: 2022-10-13 16:03:51
* @LastEditTime: 2022-10-14 15:49:22
-->
<template>
<!-- 战报产品 -->
......@@ -285,6 +285,202 @@
<img src="@/assets/images/activityReport/box-footer.png" alt="" />
</div>
</div>
<!-- 触达通道分析 -->
<div class="wrapper-output">
<div class="box-header">
<img
class="box-header-bg"
src="@/assets/images/activityReport/box-header.png"
alt=""
/>
<div class="box-header-text x-center">
<img src="@/assets/images/activityReport/title-left.png" alt="" />
<span class="box-header-title">触达通道分析</span>
<img src="@/assets/images/activityReport/title-right.png" alt="" />
</div>
</div>
<div class="box-body">
<div class="legend-list">
<div class="legend-item">
<span
class="legend-dot"
:style="{ 'background-color': data.colorList[0] }"
></span>
个微
</div>
<div class="legend-item">
<span
class="legend-dot"
:style="{ 'background-color': data.colorList[1] }"
></span>
个微
</div>
<div class="legend-item">
<span
class="legend-dot"
:style="{ 'background-color': data.colorList[2] }"
></span>
个微
</div>
</div>
<div class="funnel-box">
<div class="funnel-list">
<div class="funnel-item width0">
<div
class="funnel-bg"
:style="{
'background-color': data.colorList[0],
width: (data.custemData[0] / data.total) * 400 + 'px',
}"
>
<span class="funnel-value">{{ data.custemData[0] }}</span>
</div>
<div
class="funnel-bg"
style="width: 100px"
:style="{
'background-color': data.colorList[1],
width: (data.custemData[1] / data.total) * 400 + 'px',
}"
>
<span class="funnel-value">{{ data.custemData[1] }}</span>
</div>
<div
class="funnel-bg"
style="width: 100px"
:style="{
'background-color': data.colorList[2],
flex: 1,
}"
>
<span class="funnel-value">{{ data.custemData[2] }}</span>
</div>
</div>
<div class="funnel-item width1">
<div
class="funnel-bg"
:style="{
'background-color': data.colorList[0],
width: (data.custemData[0] / data.total) * 400 + 'px',
}"
>
<span class="funnel-value">{{ data.custemData[0] }}</span>
</div>
<div
class="funnel-bg"
style="width: 100px"
:style="{
'background-color': data.colorList[1],
width: (data.custemData[1] / data.total) * 400 + 'px',
}"
>
<span class="funnel-value">{{ data.custemData[1] }}</span>
</div>
<div
class="funnel-bg"
style="width: 100px"
:style="{
'background-color': data.colorList[2],
flex: 1,
}"
>
<span class="funnel-value">{{ data.custemData[2] }}</span>
</div>
</div>
<div class="funnel-item width2">
<div
class="funnel-bg"
:style="{
'background-color': data.colorList[0],
width: (data.custemData[0] / data.total) * 400 + 'px',
}"
>
<span class="funnel-value">{{ data.custemData[0] }}</span>
</div>
<div
class="funnel-bg"
style="width: 100px"
:style="{
'background-color': data.colorList[1],
width: (data.custemData[1] / data.total) * 400 + 'px',
}"
>
<span class="funnel-value">{{ data.custemData[1] }}</span>
</div>
<div
class="funnel-bg"
style="width: 100px"
:style="{
'background-color': data.colorList[2],
flex: 1,
}"
>
<span class="funnel-value">{{ data.custemData[2] }}</span>
</div>
</div>
<div class="funnel-item width3">
<div
class="funnel-bg"
:style="{
'background-color': data.colorList[0],
width: (data.custemData[0] / data.total) * 400 + 'px',
}"
>
<span class="funnel-value">{{ data.custemData[0] }}</span>
</div>
<div
class="funnel-bg"
style="width: 100px"
:style="{
'background-color': data.colorList[1],
width: (data.custemData[1] / data.total) * 400 + 'px',
}"
>
<span class="funnel-value">{{ data.custemData[1] }}</span>
</div>
<div
class="funnel-bg"
style="width: 100px"
:style="{
'background-color': data.colorList[2],
flex: 1,
}"
>
<span class="funnel-value">{{ data.custemData[2] }}</span>
</div>
</div>
<div class="arrow-left">
<img src="@/assets/images/activityReport/arrow-left.png" alt="" />
</div>
<div class="arrow-right">
<img src="@/assets/images/activityReport/arrow.png" alt="" />
</div>
</div>
<div class="funnel-right">
<div class="label-item">
<span class="icon icon-custom"></span>
<span class="label-name">目标客户数</span>
</div>
<div class="label-item">
<span class="icon icon-visite"></span>
<span class="label-name">目标客户数</span>
</div>
<div class="label-item">
<span class="icon icon-order"></span>
<span class="label-name">目标客户数</span>
</div>
<div class="label-item">
<span class="icon icon-conversion"></span>
<span class="label-name">目标客户数</span>
</div>
</div>
</div>
</div>
<div class="box-footer">
<img src="@/assets/images/activityReport/box-footer.png" alt="" />
</div>
</div>
<!-- 专属海报 -->
<div class="wrapper-code">
<div class="code-bg">
......@@ -299,9 +495,15 @@
</div>
</template>
<script lang="ts" setup>
import { ref } from "vue";
import { ref, reactive } from "vue";
const count = ref(50);
const progress = ref(50);
const data = reactive({
colorList: ["#F65A3F", "#FF8B64", "#FFBD55"],
widthList: [400, 350, 304, 258],
custemData: [100, 800, 6000],
total: 7200,
});
</script>
<style lang="scss" scoped>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!