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 c2ad9a9c
authored
Oct 26, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
1b6f0141
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
14 deletions
src/assets/images/goodNews/icon-left.png
src/assets/images/goodNews/icon-right.png
src/assets/styles/goodNews.scss
src/utils/rem.ts
src/views/crowdfunding/goodNews.vue
src/assets/images/goodNews/icon-left.png
View file @
c2ad9a9
2.71 KB
|
W:
|
H:
1.99 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/images/goodNews/icon-right.png
View file @
c2ad9a9
2.69 KB
|
W:
|
H:
2.02 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/styles/goodNews.scss
View file @
c2ad9a9
...
...
@@ -5,32 +5,38 @@ $good-color: #ffd2b2;
background
:
url("@/assets/images/goodNews/line-bg.png")
;
background-repeat
:
repeat-x
;
background-size
:
4px
57px
;
width
:
auto
;
// margin: 0 43px;
font-size
:
30
px
;
font-size
:
23
px
;
color
:
$good-color
;
line-height
:
30px
;
}
.product-name
{
position
:
relative
;
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
;
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
{
position
:
absolute
;
width
:
52
px
;
width
:
30
px
;
height
:
57px
;
}
.icon-left
{
left
:
-
50
px
;
left
:
-
29
px
;
top
:
0
;
}
.icon-right
{
right
:
-
50
px
;
right
:
-
29
px
;
top
:
0
;
}
.store-name
{
...
...
src/utils/rem.ts
View file @
c2ad9a9
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-10 10:59:01
* @LastEditors: huyue
* @LastEditTime: 2022-10-2
4 11:04:56
* @LastEditTime: 2022-10-2
5 18:08:24
*/
let
baseSize
=
37.5
function
setRem
()
{
...
...
@@ -23,6 +23,5 @@ function throttle(func, wait) {
}
setRem
()
window
.
onresize
=
throttle
(()
=>
{
console
.
log
(
11
)
setRem
()
},
1000
)
\ No newline at end of file
},
500
)
\ No newline at end of file
src/views/crowdfunding/goodNews.vue
View file @
c2ad9a9
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-10 15:26:23
* @LastEditors: huyue
* @LastEditTime: 2022-10-25 1
5:02:50
* @LastEditTime: 2022-10-25 1
7:51:32
-->
<
template
>
<img
class=
"bg"
src=
"@/assets/images/goodNews/bg.png"
alt=
""
/>
...
...
@@ -14,7 +14,7 @@
src=
"@/assets/images/goodNews/icon-left.png"
alt=
""
/>
{{
data
.
storeInfo
.
goodsName
}}
<div>
{{
data
.
storeInfo
.
goodsName
}}
</div>
<img
class=
"icon-right product-icon"
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