Commit c2ad9a9c by 胡悦

提交

1 parent 1b6f0141

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
...@@ -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-25 18:08:24
*/ */
let baseSize = 37.5 let baseSize = 37.5
function setRem() { function setRem() {
...@@ -23,6 +23,5 @@ function throttle(func, wait) { ...@@ -23,6 +23,5 @@ function throttle(func, wait) {
} }
setRem() setRem()
window.onresize = throttle(() => { window.onresize = throttle(() => {
console.log(11)
setRem() setRem()
}, 1000)
\ No newline at end of file \ No newline at end of file
}, 500)
\ No newline at end of file \ No newline at end of file
...@@ -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!