Commit 7ca26a68 by 胡悦

修改样式

1 parent 7c2c09fd
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 10:59:01 * @Date: 2022-10-10 10:59:01
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-10-14 14:44:46 * @LastEditTime: 2022-10-26 10:27:36
*/ */
module.exports = { module.exports = {
"plugins": { "plugins": {
"postcss-pxtorem": { "postcss-pxtorem": {
rootValue: 37.5, // 75 表示 750 设计稿,37.5 表示 37.5 表示 375 设计稿 rootValue: 750, // 75 表示 750 设计稿,37.5 表示 37.5 表示 375 设计稿
unitPrecision: 6, // 计算结果保留 6 位小数 unitPrecision: 6, // 计算结果保留 6 位小数
selectorBlackList: ['.no-rem', 'no-rem'], // 要忽略的选择器并保留为px selectorBlackList: ['.no-rem', 'no-rem'], // 要忽略的选择器并保留为px
propList: ['*'], // 可以从 px 更改为 rem 的属性 感叹号开头的不转化 propList: ['*'], // 可以从 px 更改为 rem 的属性 感叹号开头的不转化
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
.report-item { .report-item {
// display: flex; // display: flex;
// justify-content: center; // justify-content: center;
width: calc((100% - 4px) / 3); width: calc((100% - 5px) / 3);
.icon { .icon {
display: inline-block; display: inline-block;
width: 50px; width: 50px;
......
...@@ -538,7 +538,7 @@ ...@@ -538,7 +538,7 @@
display: inline-flex; display: inline-flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-size: 20px; font-size: 16px;
font-weight: 500; font-weight: 500;
color: #ffffff; color: #ffffff;
line-height: 32px; line-height: 32px;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 10:59:01 * @Date: 2022-10-10 10:59:01
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-10-25 18:08:24 * @LastEditTime: 2022-10-26 10:54:03
*/ */
let baseSize = 37.5 let baseSize = 37.5
function setRem() { function setRem() {
...@@ -23,5 +23,6 @@ function throttle(func, wait) { ...@@ -23,5 +23,6 @@ function throttle(func, wait) {
} }
setRem() setRem()
window.onresize = throttle(() => { window.onresize = throttle(() => {
console.log(111)
setRem() setRem()
}, 500)
\ No newline at end of file \ No newline at end of file
}, 1000)
\ No newline at end of file \ No newline at end of file
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: 战报 * @Description: 战报
* @Author: huyue * @Author: huyue
* @Date: 2022-10-11 17:41:38 * @Date: 2022-10-11 17:41:38
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: huyue
* @LastEditTime: 2022-10-26 10:02:29 * @LastEditTime: 2022-10-26 11:10:16
--> -->
<template> <template>
<!-- 战报产品 --> <!-- 战报产品 -->
...@@ -658,6 +658,7 @@ ...@@ -658,6 +658,7 @@
<div class="funnel-list"> <div class="funnel-list">
<div class="funnel-item width0"> <div class="funnel-item width0">
<div <div
v-if="data.activitedInfo.touchVisitorCount[0] != 0"
class="funnel-bg" class="funnel-bg"
:style="{ :style="{
'background-color': data.colorList[0], 'background-color': data.colorList[0],
...@@ -673,6 +674,7 @@ ...@@ -673,6 +674,7 @@
}}</span> }}</span>
</div> </div>
<div <div
v-if="data.activitedInfo.touchVisitorCount[1] != 0"
class="funnel-bg" class="funnel-bg"
:style="{ :style="{
'background-color': data.colorList[1], 'background-color': data.colorList[1],
...@@ -702,6 +704,7 @@ ...@@ -702,6 +704,7 @@
</div> </div>
<div class="funnel-item width1"> <div class="funnel-item width1">
<div <div
v-if="data.activitedInfo.touchOrderCount[0] != 0"
class="funnel-bg" class="funnel-bg"
:style="{ :style="{
'background-color': data.colorList[0], 'background-color': data.colorList[0],
...@@ -717,6 +720,7 @@ ...@@ -717,6 +720,7 @@
}}</span> }}</span>
</div> </div>
<div <div
v-if="data.activitedInfo.touchOrderCount[1] != 0"
class="funnel-bg" class="funnel-bg"
:style="{ :style="{
'background-color': data.colorList[1], 'background-color': data.colorList[1],
...@@ -746,6 +750,7 @@ ...@@ -746,6 +750,7 @@
</div> </div>
<div class="funnel-item width2"> <div class="funnel-item width2">
<div <div
v-if="data.activitedInfo.touchConversionRate[0] != '0.00'"
class="funnel-bg" class="funnel-bg"
:style="{ :style="{
'background-color': data.colorList[0], 'background-color': data.colorList[0],
...@@ -761,6 +766,7 @@ ...@@ -761,6 +766,7 @@
> >
</div> </div>
<div <div
v-if="data.activitedInfo.touchConversionRate[1] != '0.00'"
class="funnel-bg" class="funnel-bg"
:style="{ :style="{
'background-color': data.colorList[1], 'background-color': data.colorList[1],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!