Commit 96532097 by 前端

fixed

2 parents 2d5fdd2d 9d99a779
...@@ -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 的属性 感叹号开头的不转化
......

2.71 KB | W: | H:

1.99 KB | W: | H:

src/assets/images/goodNews/icon-left.png
src/assets/images/goodNews/icon-left.png
src/assets/images/goodNews/icon-left.png
src/assets/images/goodNews/icon-left.png
  • 2-up
  • Swipe
  • Onion skin

2.69 KB | W: | H:

2.02 KB | W: | H:

src/assets/images/goodNews/icon-right.png
src/assets/images/goodNews/icon-right.png
src/assets/images/goodNews/icon-right.png
src/assets/images/goodNews/icon-right.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -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;
...@@ -81,12 +81,13 @@ ...@@ -81,12 +81,13 @@
.finish-activty { .finish-activty {
margin-top: 50px; margin-top: 50px;
text-align: center; text-align: center;
height: 85px; min-height: 85px;
.activty-text { .activty-text {
display: inline-block; display: inline-block;
background: linear-gradient(0deg, #ffd7b7 0%, #ffebdb 100%); background: linear-gradient(0deg, #ffd7b7 0%, #ffebdb 100%);
border-radius: 8px; border-radius: 8px;
padding: 13px 21px; padding: 13px 21px;
width: 460px;
font-size: 24px; font-size: 24px;
font-weight: 500; font-weight: 500;
color: #262525; color: #262525;
......
...@@ -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;
......
...@@ -5,32 +5,38 @@ $good-color: #ffd2b2; ...@@ -5,32 +5,38 @@ $good-color: #ffd2b2;
background: url("@/assets/images/goodNews/line-bg.png"); background: url("@/assets/images/goodNews/line-bg.png");
background-repeat: repeat-x; background-repeat: repeat-x;
background-size: 4px 57px; background-size: 4px 57px;
width: auto;
// margin: 0 43px; // margin: 0 43px;
font-size: 30px; font-size: 23px;
color: $good-color; color: $good-color;
line-height: 30px; line-height: 30px;
} }
.product-name { .product-name {
position: relative; position: relative;
padding: 14px 0; padding: 14px 0;
// border-top: 3px solid $good-color;
// border-bottom: 3px solid $good-color;
// background: linear-gradient(0deg, #850005 0%, #9a1316 100%);
// height: 100%;
box-sizing: border-box; box-sizing: border-box;
div {
// width: 100%;
box-sizing: border-box;
max-width: 425px;
white-space: nowrap;
padding: 0 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }
.product-icon { .product-icon {
position: absolute; position: absolute;
width: 52px; width: 30px;
height: 57px; height: 57px;
} }
.icon-left { .icon-left {
left: -50px; left: -29px;
top: 0; top: 0;
} }
.icon-right { .icon-right {
right: -50px; right: -29px;
top: 0; top: 0;
} }
.store-name { .store-name {
......
...@@ -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-24 11:04:56 * @LastEditTime: 2022-10-26 10:54:03
*/ */
let baseSize = 37.5 let baseSize = 37.5
function setRem() { function setRem() {
...@@ -23,6 +23,6 @@ function throttle(func, wait) { ...@@ -23,6 +23,6 @@ function throttle(func, wait) {
} }
setRem() setRem()
window.onresize = throttle(() => { window.onresize = throttle(() => {
console.log(11) console.log(111)
setRem() setRem()
}, 1000) }, 1000)
\ No newline at end of file \ No newline at end of file
...@@ -2,8 +2,13 @@ ...@@ -2,8 +2,13 @@
* @Description: 战报 * @Description: 战报
* @Author: huyue * @Author: huyue
* @Date: 2022-10-11 17:41:38 * @Date: 2022-10-11 17:41:38
<<<<<<< HEAD
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-10-26 12:28:15 * @LastEditTime: 2022-10-26 12:28:15
=======
* @LastEditors: huyue
* @LastEditTime: 2022-10-26 11:27:03
>>>>>>> 9d99a779c3a24f57d1a796dd3c0737ca8138553b
--> -->
<template> <template>
<!-- 战报产品 --> <!-- 战报产品 -->
...@@ -148,7 +153,10 @@ ...@@ -148,7 +153,10 @@
</div> </div>
<div class="finish-activty"> <div class="finish-activty">
<div class="activty-text" v-if="progress <= 50"> <div class="activty-text" v-if="progress <= 50">
活动完成率较差,争取下次活动有所突破 已完成目标产值<span class="activty-flag">{{
data.activitedInfo.volumeRate
}}</span
>,活动完成率较差,争取下次活动有所突破
</div> </div>
<div class="activty-text" v-else-if="progress > 80"> <div class="activty-text" v-else-if="progress > 80">
已完成目标产值<span class="activty-flag">{{ 已完成目标产值<span class="activty-flag">{{
...@@ -157,7 +165,10 @@ ...@@ -157,7 +165,10 @@
>,圆满完成任务 >,圆满完成任务
</div> </div>
<div v-else class="activty-text"> <div v-else class="activty-text">
活动完成率较好,争取下次活动更上一层楼 已完成目标产值<span class="activty-flag">{{
data.activitedInfo.volumeRate
}}</span
>,活动完成率较好,争取下次活动更上一层楼
</div> </div>
</div> </div>
</div> </div>
...@@ -660,6 +671,7 @@ ...@@ -660,6 +671,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],
...@@ -675,6 +687,7 @@ ...@@ -675,6 +687,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],
...@@ -704,6 +717,7 @@ ...@@ -704,6 +717,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],
...@@ -719,6 +733,7 @@ ...@@ -719,6 +733,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],
...@@ -748,6 +763,7 @@ ...@@ -748,6 +763,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],
...@@ -763,6 +779,7 @@ ...@@ -763,6 +779,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],
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 15:26:23 * @Date: 2022-10-10 15:26:23
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-10-25 15:02:50 * @LastEditTime: 2022-10-25 17:51:32
--> -->
<template> <template>
<img class="bg" src="@/assets/images/goodNews/bg.png" alt="" /> <img class="bg" src="@/assets/images/goodNews/bg.png" alt="" />
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
src="@/assets/images/goodNews/icon-left.png" src="@/assets/images/goodNews/icon-left.png"
alt="" alt=""
/> />
{{ data.storeInfo.goodsName }} <div>{{ data.storeInfo.goodsName }}</div>
<img <img
class="icon-right product-icon" class="icon-right product-icon"
src="@/assets/images/goodNews/icon-right.png" src="@/assets/images/goodNews/icon-right.png"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!