Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsx-posters
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 96532097
authored
Oct 26, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
fixed
2 parents
2d5fdd2d
9d99a779
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
44 additions
and
20 deletions
postcss.config.js
src/assets/images/goodNews/icon-left.png
src/assets/images/goodNews/icon-right.png
src/assets/styles/activited.scss
src/assets/styles/activity.scss
src/assets/styles/goodNews.scss
src/utils/rem.ts
src/views/crowdfunding/activited.vue
src/views/crowdfunding/goodNews.vue
postcss.config.js
View file @
9653209
...
@@ -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:4
6
* @LastEditTime: 2022-10-
26 10:27:3
6
*/
*/
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 的属性 感叹号开头的不转化
...
...
src/assets/images/goodNews/icon-left.png
View file @
9653209
2.71 KB
|
W:
|
H:
1.99 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/images/goodNews/icon-right.png
View file @
9653209
2.69 KB
|
W:
|
H:
2.02 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/styles/activited.scss
View file @
9653209
...
@@ -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%
-
4
px
)
/
3
);
width
:
calc
((
100%
-
5
px
)
/
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
;
...
...
src/assets/styles/activity.scss
View file @
9653209
...
@@ -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
:
20
px
;
font-size
:
16
px
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#ffffff
;
color
:
#ffffff
;
line-height
:
32px
;
line-height
:
32px
;
...
...
src/assets/styles/goodNews.scss
View file @
9653209
...
@@ -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
:
30
px
;
font-size
:
23
px
;
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
:
52
px
;
width
:
30
px
;
height
:
57px
;
height
:
57px
;
}
}
.icon-left
{
.icon-left
{
left
:
-
50
px
;
left
:
-
29
px
;
top
:
0
;
top
:
0
;
}
}
.icon-right
{
.icon-right
{
right
:
-
50
px
;
right
:
-
29
px
;
top
:
0
;
top
:
0
;
}
}
.store-name
{
.store-name
{
...
...
src/utils/rem.ts
View file @
9653209
...
@@ -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-2
4 11:04:56
* @LastEditTime: 2022-10-2
6 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
(
11
1
)
setRem
()
setRem
()
},
1000
)
},
1000
)
\ No newline at end of file
\ No newline at end of file
src/views/crowdfunding/activited.vue
View file @
9653209
...
@@ -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],
...
...
src/views/crowdfunding/goodNews.vue
View file @
9653209
...
@@ -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 1
5:02:50
* @LastEditTime: 2022-10-25 1
7: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"
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment