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 7ca26a68
authored
Oct 26, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式
1 parent
7c2c09fd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
8 deletions
postcss.config.js
src/assets/styles/activited.scss
src/assets/styles/activity.scss
src/utils/rem.ts
src/views/crowdfunding/activited.vue
postcss.config.js
View file @
7ca26a6
...
...
@@ -3,12 +3,12 @@
* @Author: huyue
* @Date: 2022-10-10 10:59:01
* @LastEditors: huyue
* @LastEditTime: 2022-10-
14 14:44:4
6
* @LastEditTime: 2022-10-
26 10:27:3
6
*/
module
.
exports
=
{
"plugins"
:
{
"postcss-pxtorem"
:
{
rootValue
:
37.5
,
// 75 表示 750 设计稿,37.5 表示 37.5 表示 375 设计稿
rootValue
:
750
,
// 75 表示 750 设计稿,37.5 表示 37.5 表示 375 设计稿
unitPrecision
:
6
,
// 计算结果保留 6 位小数
selectorBlackList
:
[
'.no-rem'
,
'no-rem'
],
// 要忽略的选择器并保留为px
propList
:
[
'*'
],
// 可以从 px 更改为 rem 的属性 感叹号开头的不转化
...
...
src/assets/styles/activited.scss
View file @
7ca26a6
...
...
@@ -14,7 +14,7 @@
.report-item
{
// display: flex;
// justify-content: center;
width
:
calc
((
100%
-
4
px
)
/
3
);
width
:
calc
((
100%
-
5
px
)
/
3
);
.icon
{
display
:
inline-block
;
width
:
50px
;
...
...
src/assets/styles/activity.scss
View file @
7ca26a6
...
...
@@ -538,7 +538,7 @@
display
:
inline-flex
;
justify-content
:
center
;
align-items
:
center
;
font-size
:
20
px
;
font-size
:
16
px
;
font-weight
:
500
;
color
:
#ffffff
;
line-height
:
32px
;
...
...
src/utils/rem.ts
View file @
7ca26a6
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-10 10:59:01
* @LastEditors: huyue
* @LastEditTime: 2022-10-2
5 18:08:24
* @LastEditTime: 2022-10-2
6 10:54:03
*/
let
baseSize
=
37.5
function
setRem
()
{
...
...
@@ -23,5 +23,6 @@ function throttle(func, wait) {
}
setRem
()
window
.
onresize
=
throttle
(()
=>
{
console
.
log
(
111
)
setRem
()
},
500
)
\ No newline at end of file
},
1000
)
\ No newline at end of file
src/views/crowdfunding/activited.vue
View file @
7ca26a6
...
...
@@ -2,8 +2,8 @@
* @Description: 战报
* @Author: huyue
* @Date: 2022-10-11 17:41:38
* @LastEditors:
前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-10-26 1
0:02:29
* @LastEditors:
huyue
* @LastEditTime: 2022-10-26 1
1:10:16
-->
<
template
>
<!-- 战报产品 -->
...
...
@@ -658,6 +658,7 @@
<div
class=
"funnel-list"
>
<div
class=
"funnel-item width0"
>
<div
v-if=
"data.activitedInfo.touchVisitorCount[0] != 0"
class=
"funnel-bg"
:style=
"{
'background-color': data.colorList[0],
...
...
@@ -673,6 +674,7 @@
}}
</span>
</div>
<div
v-if=
"data.activitedInfo.touchVisitorCount[1] != 0"
class=
"funnel-bg"
:style=
"{
'background-color': data.colorList[1],
...
...
@@ -702,6 +704,7 @@
</div>
<div
class=
"funnel-item width1"
>
<div
v-if=
"data.activitedInfo.touchOrderCount[0] != 0"
class=
"funnel-bg"
:style=
"{
'background-color': data.colorList[0],
...
...
@@ -717,6 +720,7 @@
}}
</span>
</div>
<div
v-if=
"data.activitedInfo.touchOrderCount[1] != 0"
class=
"funnel-bg"
:style=
"{
'background-color': data.colorList[1],
...
...
@@ -746,6 +750,7 @@
</div>
<div
class=
"funnel-item width2"
>
<div
v-if=
"data.activitedInfo.touchConversionRate[0] != '0.00'"
class=
"funnel-bg"
:style=
"{
'background-color': data.colorList[0],
...
...
@@ -761,6 +766,7 @@
>
</div>
<div
v-if=
"data.activitedInfo.touchConversionRate[1] != '0.00'"
class=
"funnel-bg"
:style=
"{
'background-color': data.colorList[1],
...
...
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