Authored by 沈志敏

调整代码结构

1 -.yoho-favorite-page {  
2 - width: 100%;  
3 - height: auto;  
4 -  
5 - .fav-content {  
6 - .fav-type {  
7 - display: block;  
8 - }  
9 -  
10 - .fav-product-list {  
11 - padding-left: 20px;  
12 - list-style: none;  
13 -  
14 - li {  
15 - height: 205px;  
16 - overflow: hidden;  
17 - margin-top: 20px;  
18 - }  
19 -  
20 - .fav-del-left {  
21 - display: none;  
22 - float: left;  
23 - width: 50px;  
24 - height: 100%;  
25 -  
26 - .fav-del-span {  
27 - display: inline-block;  
28 - width: 35px;  
29 - height: 35px;  
30 - margin-right: 15px;  
31 - margin-top: 80px;  
32 - background: resolve("home/fav/fav-del.png");  
33 - background-size: 100%;  
34 - }  
35 - }  
36 -  
37 - .delshow {  
38 - display: block;  
39 - }  
40 -  
41 - .fav-del-right {  
42 - position: absolute;  
43 - top: 0;  
44 - right: -126px;  
45 - background: #ff3b30;  
46 - width: 126px;  
47 - height: 200px;  
48 - text-align: center;  
49 -  
50 - .fav-del-btn {  
51 - display: inline-block;  
52 - width: 35px;  
53 - height: 43px;  
54 - margin-top: 50px;  
55 - background: resolve("home/fav/fav-del-btn.png");  
56 - background-size: 100%;  
57 - }  
58 -  
59 - .fav-del-txt {  
60 - font-size: 24px;  
61 - color: #fff;  
62 - }  
63 - }  
64 -  
65 - .fav-img-box {  
66 - width: 152px;  
67 - height: 203px;  
68 - float: left;  
69 - margin-right: 24px;  
70 -  
71 - img {  
72 - display: block;  
73 - overflow: hidden;  
74 - width: 100%;  
75 - height: 100%;  
76 - }  
77 - }  
78 -  
79 - .fav-info-list {  
80 - color: #444;  
81 - font-size: 24px;  
82 - border-bottom: 1px solid #e0e0e0;  
83 - padding-bottom: 20px;  
84 - margin-right: 5px;  
85 - height: 203px;  
86 - overflow: hidden;  
87 - position: relative;  
88 -  
89 - .title {  
90 - width: 430px;  
91 - text-overflow: ellipsis;  
92 - font-size: 28px;  
93 - margin: 0;  
94 - }  
95 -  
96 - .fav-price {  
97 - margin-top: 20px;  
98 - }  
99 -  
100 - .new-price {  
101 - color: #d1021c;  
102 - font-size: 24px;  
103 - }  
104 -  
105 - .price-underline {  
106 - text-decoration: line-through;  
107 - margin-left: 15px;  
108 - color: #b0b0b0;  
109 - font-size: 24px;  
110 - }  
111 -  
112 - .save-price {  
113 - position: absolute;  
114 - bottom: 20px;  
115 - left: 0;  
116 - width: 100%;  
117 - min-height: 24px;  
118 - }  
119 -  
120 - .sell-out {  
121 - float: right;  
122 - padding: 5px 18px;  
123 - color: #b0b0b0;  
124 - border-radius: 20px;  
125 - font-size: 22px;  
126 - }  
127 - }  
128 - }  
129 -  
130 - .fav-null {  
131 - font-size: 22px;  
132 - color: #444;  
133 - display: block;  
134 - margin-top: 100px;  
135 - text-align: center;  
136 -  
137 - &:before {  
138 - content: "";  
139 - display: block;  
140 - width: 188px;  
141 - height: 171px;  
142 - background: resolve("home/fav/fav-null.png");  
143 - background-size: 100% 100%;  
144 - margin: 0 auto 45px;  
145 - }  
146 - }  
147 -  
148 - .go-shopping {  
149 - width: 472px;  
150 - height: 88px;  
151 - line-height: 88px;  
152 - margin: 80px auto 0;  
153 - background: #444;  
154 - text-align: center;  
155 - color: #fff;  
156 - display: block;  
157 - font-size: 26px;  
158 - border-radius: 0.2rem;  
159 - }  
160 - }  
161 -}  
162 -  
163 -.yoho-favorite-brand-page {  
164 - width: 100%;  
165 - height: auto;  
166 -  
167 - .fav-content {  
168 - .fav-type {  
169 - display: block;  
170 - }  
171 -  
172 - .fav-brand-list {  
173 - padding-left: 20px;  
174 - list-style: none;  
175 -  
176 - li {  
177 - height: 135px;  
178 - overflow: hidden;  
179 - margin-top: 20px;  
180 - border-bottom: 1px solid #e0e0e0;  
181 - }  
182 -  
183 - .fav-del-left {  
184 - display: none;  
185 - float: left;  
186 - width: 50px;  
187 - height: 100%;  
188 -  
189 - .fav-del-span {  
190 - display: inline-block;  
191 - width: 35px;  
192 - height: 35px;  
193 - margin-right: 15px;  
194 - margin-top: 50px;  
195 - background: resolve("home/fav/fav-del.png");  
196 - background-size: 100%;  
197 - }  
198 - }  
199 -  
200 - .delshow {  
201 - display: block;  
202 - }  
203 -  
204 - .fav-del-right {  
205 - position: absolute;  
206 - top: 0;  
207 - right: -126px;  
208 - background: #ff3b30;  
209 - width: 126px;  
210 - height: 125px;  
211 - text-align: center;  
212 -  
213 - .fav-del-btn {  
214 - display: inline-block;  
215 - width: 35px;  
216 - height: 43px;  
217 - margin-top: 30px;  
218 - background: resolve("home/fav/fav-del-btn.png");  
219 - background-size: 100%;  
220 - }  
221 -  
222 - .fav-del-txt {  
223 - font-size: 24px;  
224 - color: #fff;  
225 - }  
226 - }  
227 -  
228 - .fav-img-box {  
229 - width: 160px;  
230 - height: 125px;  
231 - float: left;  
232 - margin-right: 24px;  
233 -  
234 - img {  
235 - display: block;  
236 - overflow: hidden;  
237 - width: 100%;  
238 - height: 100%;  
239 - }  
240 - }  
241 -  
242 - .fav-info-list {  
243 - color: #444;  
244 - font-size: 24px;  
245 - padding-bottom: 10px;  
246 - margin-right: 10px;  
247 - margin-top: 35px;  
248 - height: 100px;  
249 - overflow: hidden;  
250 - position: relative;  
251 -  
252 - .title {  
253 - width: 430px;  
254 - color: #b0b0b0;  
255 - text-overflow: ellipsis;  
256 - font-size: 34px;  
257 - margin: 0;  
258 - }  
259 - }  
260 -  
261 - span {  
262 - &.down {  
263 - float: right;  
264 - padding: 5px 18px;  
265 - color: #fffefe;  
266 - background: #b0b0b0;  
267 - border-radius: 20px;  
268 - font-size: 22px;  
269 - }  
270 - }  
271 - }  
272 -  
273 - .fav-null {  
274 - font-size: 22px;  
275 - color: #444;  
276 - display: block;  
277 - margin-top: 100px;  
278 - text-align: center;  
279 -  
280 - &:before {  
281 - content: "";  
282 - display: block;  
283 - width: 188px;  
284 - height: 171px;  
285 - background: resolve("home/fav/fav-null.png");  
286 - background-size: 100% 100%;  
287 - margin: 0 auto 45px;  
288 - }  
289 - }  
290 -  
291 - .go-shopping {  
292 - width: 472px;  
293 - height: 88px;  
294 - line-height: 88px;  
295 - margin: 80px auto 0;  
296 - background: #444;  
297 - text-align: center;  
298 - color: #fff;  
299 - display: block;  
300 - font-size: 26px;  
301 - border-radius: 0.2rem;  
302 - }  
303 - }  
304 -}  
1 @import "home"; 1 @import "home";
2 @import "help"; 2 @import "help";
3 @import "feedback"; 3 @import "feedback";
4 -@import "fav";  
5 -@import "details";  
6 @import "about-us"; 4 @import "about-us";
7 @import "coin"; 5 @import "coin";
8 -@import "logistics";  
9 -@import "exchange-status";  
  6 +@import "exchange-status";
@@ -117,3 +117,147 @@ @@ -117,3 +117,147 @@
117 }; 117 };
118 </script> 118 </script>
119 119
  120 +<style>
  121 + .yoho-favorite-brand-page {
  122 + width: 100%;
  123 + height: auto;
  124 +
  125 + .fav-content {
  126 + .fav-type {
  127 + display: block;
  128 + }
  129 +
  130 + .fav-brand-list {
  131 + padding-left: 20px;
  132 + list-style: none;
  133 +
  134 + li {
  135 + height: 135px;
  136 + overflow: hidden;
  137 + margin-top: 20px;
  138 + border-bottom: 1px solid #e0e0e0;
  139 + }
  140 +
  141 + .fav-del-left {
  142 + display: none;
  143 + float: left;
  144 + width: 50px;
  145 + height: 100%;
  146 +
  147 + .fav-del-span {
  148 + display: inline-block;
  149 + width: 35px;
  150 + height: 35px;
  151 + margin-right: 15px;
  152 + margin-top: 50px;
  153 + background: resolve("home/fav/fav-del.png");
  154 + background-size: 100%;
  155 + }
  156 + }
  157 +
  158 + .delshow {
  159 + display: block;
  160 + }
  161 +
  162 + .fav-del-right {
  163 + position: absolute;
  164 + top: 0;
  165 + right: -126px;
  166 + background: #ff3b30;
  167 + width: 126px;
  168 + height: 125px;
  169 + text-align: center;
  170 +
  171 + .fav-del-btn {
  172 + display: inline-block;
  173 + width: 35px;
  174 + height: 43px;
  175 + margin-top: 30px;
  176 + background: resolve("home/fav/fav-del-btn.png");
  177 + background-size: 100%;
  178 + }
  179 +
  180 + .fav-del-txt {
  181 + font-size: 24px;
  182 + color: #fff;
  183 + }
  184 + }
  185 +
  186 + .fav-img-box {
  187 + width: 160px;
  188 + height: 125px;
  189 + float: left;
  190 + margin-right: 24px;
  191 +
  192 + img {
  193 + display: block;
  194 + overflow: hidden;
  195 + width: 100%;
  196 + height: 100%;
  197 + }
  198 + }
  199 +
  200 + .fav-info-list {
  201 + color: #444;
  202 + font-size: 24px;
  203 + padding-bottom: 10px;
  204 + margin-right: 10px;
  205 + margin-top: 35px;
  206 + height: 100px;
  207 + overflow: hidden;
  208 + position: relative;
  209 +
  210 + .title {
  211 + width: 430px;
  212 + color: #b0b0b0;
  213 + text-overflow: ellipsis;
  214 + font-size: 34px;
  215 + margin: 0;
  216 + }
  217 + }
  218 +
  219 + span {
  220 + &.down {
  221 + float: right;
  222 + padding: 5px 18px;
  223 + color: #fffefe;
  224 + background: #b0b0b0;
  225 + border-radius: 20px;
  226 + font-size: 22px;
  227 + }
  228 + }
  229 + }
  230 +
  231 + .fav-null {
  232 + font-size: 22px;
  233 + color: #444;
  234 + display: block;
  235 + margin-top: 100px;
  236 + text-align: center;
  237 +
  238 + &:before {
  239 + content: "";
  240 + display: block;
  241 + width: 188px;
  242 + height: 171px;
  243 + background: resolve("home/fav/fav-null.png");
  244 + background-size: 100% 100%;
  245 + margin: 0 auto 45px;
  246 + }
  247 + }
  248 +
  249 + .go-shopping {
  250 + width: 472px;
  251 + height: 88px;
  252 + line-height: 88px;
  253 + margin: 80px auto 0;
  254 + background: #444;
  255 + text-align: center;
  256 + color: #fff;
  257 + display: block;
  258 + font-size: 26px;
  259 + border-radius: 0.2rem;
  260 + }
  261 + }
  262 + }
  263 +</style>
@@ -124,3 +124,166 @@ @@ -124,3 +124,166 @@
124 }; 124 };
125 </script> 125 </script>
126 126
  127 +<style>
  128 + .yoho-favorite-page {
  129 + width: 100%;
  130 + height: auto;
  131 +
  132 + .fav-content {
  133 + .fav-type {
  134 + display: block;
  135 + }
  136 +
  137 + .fav-product-list {
  138 + padding-left: 20px;
  139 + list-style: none;
  140 +
  141 + li {
  142 + height: 205px;
  143 + overflow: hidden;
  144 + margin-top: 20px;
  145 + }
  146 +
  147 + .fav-del-left {
  148 + display: none;
  149 + float: left;
  150 + width: 50px;
  151 + height: 100%;
  152 +
  153 + .fav-del-span {
  154 + display: inline-block;
  155 + width: 35px;
  156 + height: 35px;
  157 + margin-right: 15px;
  158 + margin-top: 80px;
  159 + background: resolve("home/fav/fav-del.png");
  160 + background-size: 100%;
  161 + }
  162 + }
  163 +
  164 + .delshow {
  165 + display: block;
  166 + }
  167 +
  168 + .fav-del-right {
  169 + position: absolute;
  170 + top: 0;
  171 + right: -126px;
  172 + background: #ff3b30;
  173 + width: 126px;
  174 + height: 200px;
  175 + text-align: center;
  176 +
  177 + .fav-del-btn {
  178 + display: inline-block;
  179 + width: 35px;
  180 + height: 43px;
  181 + margin-top: 50px;
  182 + background: resolve("home/fav/fav-del-btn.png");
  183 + background-size: 100%;
  184 + }
  185 +
  186 + .fav-del-txt {
  187 + font-size: 24px;
  188 + color: #fff;
  189 + }
  190 + }
  191 +
  192 + .fav-img-box {
  193 + width: 152px;
  194 + height: 203px;
  195 + float: left;
  196 + margin-right: 24px;
  197 +
  198 + img {
  199 + display: block;
  200 + overflow: hidden;
  201 + width: 100%;
  202 + height: 100%;
  203 + }
  204 + }
  205 +
  206 + .fav-info-list {
  207 + color: #444;
  208 + font-size: 24px;
  209 + border-bottom: 1px solid #e0e0e0;
  210 + padding-bottom: 20px;
  211 + margin-right: 5px;
  212 + height: 203px;
  213 + overflow: hidden;
  214 + position: relative;
  215 +
  216 + .title {
  217 + width: 430px;
  218 + text-overflow: ellipsis;
  219 + font-size: 28px;
  220 + margin: 0;
  221 + }
  222 +
  223 + .fav-price {
  224 + margin-top: 20px;
  225 + }
  226 +
  227 + .new-price {
  228 + color: #d1021c;
  229 + font-size: 24px;
  230 + }
  231 +
  232 + .price-underline {
  233 + text-decoration: line-through;
  234 + margin-left: 15px;
  235 + color: #b0b0b0;
  236 + font-size: 24px;
  237 + }
  238 +
  239 + .save-price {
  240 + position: absolute;
  241 + bottom: 20px;
  242 + left: 0;
  243 + width: 100%;
  244 + min-height: 24px;
  245 + }
  246 +
  247 + .sell-out {
  248 + float: right;
  249 + padding: 5px 18px;
  250 + color: #b0b0b0;
  251 + border-radius: 20px;
  252 + font-size: 22px;
  253 + }
  254 + }
  255 + }
  256 +
  257 + .fav-null {
  258 + font-size: 22px;
  259 + color: #444;
  260 + display: block;
  261 + margin-top: 100px;
  262 + text-align: center;
  263 +
  264 + &:before {
  265 + content: "";
  266 + display: block;
  267 + width: 188px;
  268 + height: 171px;
  269 + background: resolve("home/fav/fav-null.png");
  270 + background-size: 100% 100%;
  271 + margin: 0 auto 45px;
  272 + }
  273 + }
  274 +
  275 + .go-shopping {
  276 + width: 472px;
  277 + height: 88px;
  278 + line-height: 88px;
  279 + margin: 80px auto 0;
  280 + background: #444;
  281 + text-align: center;
  282 + color: #fff;
  283 + display: block;
  284 + font-size: 26px;
  285 + border-radius: 0.2rem;
  286 + }
  287 + }
  288 + }
  289 +</style>
@@ -64,3 +64,7 @@ @@ -64,3 +64,7 @@
64 64
65 }; 65 };
66 </script> 66 </script>
  67 +
  68 +<style>
  69 + @import "../../scss/home/_details.css";
  70 +</style>
@@ -66,5 +66,8 @@ @@ -66,5 +66,8 @@
66 } 66 }
67 } 67 }
68 }; 68 };
69 -  
70 </script> 69 </script>
  70 +
  71 +<style>
  72 + @import "../../scss/home/_logistics.css";
  73 +</style>