Showing
13 changed files
with
219 additions
and
12 deletions
mobile/public/fonts/iconfont.eot
0 → 100644
No preview for this file type
mobile/public/fonts/iconfont.svg
0 → 100644
1 | +<?xml version="1.0" standalone="no"?> | ||
2 | +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > | ||
3 | +<svg xmlns="http://www.w3.org/2000/svg"> | ||
4 | +<metadata> | ||
5 | +Created by FontForge 20120731 at Mon Mar 30 15:46:04 2015 | ||
6 | + By Ads | ||
7 | +</metadata> | ||
8 | +<defs> | ||
9 | +<font id="iconfont" horiz-adv-x="1024" > | ||
10 | + <font-face | ||
11 | + font-family="iconfont" | ||
12 | + font-weight="500" | ||
13 | + font-stretch="normal" | ||
14 | + units-per-em="1024" | ||
15 | + panose-1="2 0 6 3 0 0 0 0 0 0" | ||
16 | + ascent="812" | ||
17 | + descent="-212" | ||
18 | + x-height="792" | ||
19 | + bbox="0 -224 1285 800" | ||
20 | + underline-thickness="50" | ||
21 | + underline-position="-100" | ||
22 | + unicode-range="U+0078-E612" | ||
23 | + /> | ||
24 | +<missing-glyph horiz-adv-x="374" | ||
25 | +d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> | ||
26 | + <glyph glyph-name=".notdef" horiz-adv-x="374" | ||
27 | +d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> | ||
28 | + <glyph glyph-name=".null" horiz-adv-x="0" | ||
29 | + /> | ||
30 | + <glyph glyph-name="nonmarkingreturn" horiz-adv-x="341" | ||
31 | + /> | ||
32 | + <glyph glyph-name="x" unicode="x" horiz-adv-x="1001" | ||
33 | +d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5 | ||
34 | +t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5 | ||
35 | +t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" /> | ||
36 | + <glyph glyph-name="uniE60C" unicode="" horiz-adv-x="1323" | ||
37 | +d="M643 472q0 -68 -47.5 -116t-113.5 -48q0 -68 47 -116t113.5 -48t113.5 48t47 116t-47 116t-113 48zM643 800q-68 0 -139.5 -21.5t-133 -57t-119 -80.5t-102.5 -93t-79 -94t-52 -84t-18 -62q0 -28 25 -75t68 -102t105 -111t131 -101.5t152 -74.5t161.5 -29t161.5 29 | ||
38 | +t152 74.5t131 101.5t105 111t68 102t25 75t-25 75t-68 101.5t-105 110.5t-131 102t-152 74.5t-161 28.5zM643 -21q-88 0 -162 44t-117 120t-43 165q0 66 25.5 127t68.5 105t102.5 70t125.5 26q131 0 225 -94q94 -99 96 -234q0 -30 -5.5 -59t-15 -55.5t-23.5 -51.5t-32 -46 | ||
39 | +t-38.5 -39.5t-44.5 -32.5t-50 -24t-54.5 -15.5t-57.5 -5.5z" /> | ||
40 | + <glyph glyph-name="uniE60D" unicode="" | ||
41 | +d="M512 286v343h85v-426h-81v-2h-256v85h252zM512 -224q139 0 257 68.5t186.5 186.5t68.5 257t-68.5 257t-186.5 186.5t-257 68.5t-257 -68.5t-186.5 -186.5t-68.5 -257t68.5 -257t186.5 -186.5t257 -68.5z" /> | ||
42 | + <glyph glyph-name="uniE60F" unicode="" | ||
43 | +d="M707 748q-55 0 -105 -20.5t-90 -56.5q-40 36 -90 56.5t-105 20.5q-34 0 -67 -8t-62 -23t-54.5 -35.5t-45.5 -46.5t-34.5 -55.5t-22 -63t-7.5 -68.5q0 -110 69 -194l2 -2l344 -391q30 -33 73 -33t73 33l344 391q0 1 1 2h1q22 27 37.5 58.5t23.5 66t8 69.5q0 49 -14.5 94.5 | ||
44 | +t-42 82.5t-63.5 64.5t-80.5 43t-92.5 15.5z" /> | ||
45 | + <glyph glyph-name="uniE612" unicode="" | ||
46 | +d="M774 336q4 -6 7 -12.5t4 -13.5t0.5 -14t-2.5 -13.5t-5.5 -13t-9.5 -11.5q0 -1 -1 -1l-427 -428q-28 -28 -65 -13q-11 5 -19 13q-18 18 -18 42.5t17 41.5l387 387l-387 387q-17 17 -17 41.5t17.5 42t42 17.5t42.5 -17l427 -428q1 0 1 -1z" /> | ||
47 | + </font> | ||
48 | +</defs></svg> |
mobile/public/fonts/iconfont.ttf
0 → 100644
No preview for this file type
mobile/public/fonts/iconfont.woff
0 → 100644
No preview for this file type
@@ -11,5 +11,10 @@ | @@ -11,5 +11,10 @@ | ||
11 | color: #b0b0b0; | 11 | color: #b0b0b0; |
12 | line-height: 38rem / $pxConvertRem; | 12 | line-height: 38rem / $pxConvertRem; |
13 | font-size: 24rem / $pxConvertRem; | 13 | font-size: 24rem / $pxConvertRem; |
14 | + .iconfont { | ||
15 | + margin: 0 4px 0 0; | ||
16 | + vertical-align: 9%; | ||
17 | + font-size: 16rem / $pxConvertRem; | ||
18 | + } | ||
14 | } | 19 | } |
15 | } | 20 | } |
1 | +.article-type-five { | ||
2 | + padding: 0 0 0 15rem / $pxConvertRem; | ||
3 | +} | ||
4 | + | ||
5 | +.good-info { | ||
6 | + float: left; | ||
7 | + width: 276rem / $pxConvertRem; | ||
8 | + height: 466rem / $pxConvertRem; | ||
9 | + margin: 0 14rem / $pxConvertRem; | ||
10 | +} | ||
11 | + | ||
12 | +.good-detail-img { | ||
13 | + position: relative; | ||
14 | + | ||
15 | + .good-islike { | ||
16 | + position: absolute; | ||
17 | + top: 10rem / $pxConvertRem; | ||
18 | + right: 10rem / $pxConvertRem; | ||
19 | + font-size: 30rem / $pxConvertRem; | ||
20 | + color: #b0b0b0; | ||
21 | + text-decoration: none; | ||
22 | + } | ||
23 | + | ||
24 | + .good-like { | ||
25 | + color: #d72928; | ||
26 | + } | ||
27 | + | ||
28 | + img { | ||
29 | + display: block; | ||
30 | + width: 100%; | ||
31 | + height: 366rem / $pxConvertRem; | ||
32 | + } | ||
33 | + | ||
34 | +} | ||
35 | + | ||
36 | +.good-detail-img .tag-container { | ||
37 | + position: absolute; | ||
38 | + bottom: 0; | ||
39 | + left: 0; | ||
40 | + right: 0; | ||
41 | + | ||
42 | + .good-tag { | ||
43 | + position: relative; | ||
44 | + padding: 0 10rem / $pxConvertRem; | ||
45 | + height: 24rem / $pxConvertRem; | ||
46 | + line-height: 24rem / $pxConvertRem; | ||
47 | + color: #fff; | ||
48 | + font-size: 18rem / $pxConvertRem; | ||
49 | + | ||
50 | + span { | ||
51 | + position: relative; | ||
52 | + z-index: 2; | ||
53 | + float: left; | ||
54 | + } | ||
55 | + | ||
56 | + em { | ||
57 | + position: relative; | ||
58 | + z-index: 2; | ||
59 | + float: right; | ||
60 | + } | ||
61 | + | ||
62 | + i { | ||
63 | + position: absolute; | ||
64 | + z-index: 1; | ||
65 | + left: 0; | ||
66 | + right: 0; | ||
67 | + top: 0; | ||
68 | + bottom: 0; | ||
69 | + opacity: 0.8; | ||
70 | + } | ||
71 | + } | ||
72 | + | ||
73 | + .new-tag i { | ||
74 | + background: #93c163; | ||
75 | + } | ||
76 | + | ||
77 | + .sale-tag i { | ||
78 | + background: #dc524f; | ||
79 | + } | ||
80 | + | ||
81 | + .few-tag i { | ||
82 | + background: #fdaf3a; | ||
83 | + } | ||
84 | +} | ||
85 | + | ||
86 | +.good-detail-text { | ||
87 | + | ||
88 | + .name a{ | ||
89 | + display: block; | ||
90 | + line-height: 56rem / $pxConvertRem; | ||
91 | + overflow: hidden; | ||
92 | + white-space: nowrap; | ||
93 | + text-overflow: ellipsis; | ||
94 | + text-decoration: none; | ||
95 | + font-size: 22rem / $pxConvertRem; | ||
96 | + color: #444; | ||
97 | + } | ||
98 | + | ||
99 | + .price{ | ||
100 | + line-height: 22rem / $pxConvertRem; | ||
101 | + font-size: 22rem / $pxConvertRem; | ||
102 | + | ||
103 | + .sale-price{ | ||
104 | + color: #d62927; | ||
105 | + } | ||
106 | + | ||
107 | + .market-price{ | ||
108 | + margin: 0 0 0 5rem / $pxConvertRem; | ||
109 | + color: #b0b0b0; | ||
110 | + text-decoration:line-through; | ||
111 | + } | ||
112 | + } | ||
113 | +} |
1 | $pxConvertRem : 40; | 1 | $pxConvertRem : 40; |
2 | 2 | ||
3 | -.article-type-one .img{ | 3 | +.article-type-one { |
4 | + margin: 0 0 20rem / $pxConvertRem 0; | ||
5 | +} | ||
6 | +.article-type-one .img { | ||
4 | width: 640rem / $pxConvertRem; | 7 | width: 640rem / $pxConvertRem; |
5 | height: 640rem / $pxConvertRem; | 8 | height: 640rem / $pxConvertRem; |
6 | } | 9 | } |
@@ -32,5 +32,29 @@ body { | @@ -32,5 +32,29 @@ body { | ||
32 | } | 32 | } |
33 | 33 | ||
34 | 34 | ||
35 | +/** | ||
36 | + * 字体图标样式 | ||
37 | + */ | ||
38 | +@font-face {font-family: "iconfont"; | ||
39 | + src: url('../fonts/iconfont.eot'); /* IE9*/ | ||
40 | + src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ | ||
41 | + url('../fonts/iconfont.woff') format('woff'), /* chrome、firefox */ | ||
42 | + url('../fonts/iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ | ||
43 | + url('../fonts/iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */ | ||
44 | +} | ||
45 | + | ||
46 | +.iconfont { | ||
47 | + font-family:"iconfont" !important; | ||
48 | + font-size:16px; | ||
49 | + font-style:normal; | ||
50 | + -webkit-font-smoothing: antialiased; | ||
51 | + -webkit-text-stroke-width: 0.2px; | ||
52 | + -moz-osx-font-smoothing: grayscale; | ||
53 | +} | ||
54 | +.icon-sharedviewicon:before { content: "\e60c"; } | ||
55 | +.icon-sharedtimeicon:before { content: "\e60d"; } | ||
56 | +.icon-sharedlikebuttomhighlighted:before { content: "\e60f"; } | ||
57 | +.icon-sharedenterbuttomnormal:before { content: "\e612"; } | ||
58 | + | ||
35 | 59 | ||
36 | 60 |
1 | <div class="article-title partial"> | 1 | <div class="article-title partial"> |
2 | <p class="title">{{title}}</p> | 2 | <p class="title">{{title}}</p> |
3 | - <p class="date-pageview">{{publishTime}} {{pageView}}</p> | 3 | + <p class="date-pageview"><i class="iconfont"></i>{{publishTime}} <i class="iconfont"></i>{{pageView}}</p> |
4 | </div> | 4 | </div> |
1 | <div class="good-info"> | 1 | <div class="good-info"> |
2 | <div class="good-detail-img"> | 2 | <div class="good-detail-img"> |
3 | + {{# isLike}} | ||
4 | + <a class="good-islike good-like iconfont" href="javascript:;"></a> | ||
5 | + {{/ isLike}} | ||
6 | + {{^ isLike}} | ||
7 | + <a class="good-islike iconfont" href="javascript:;"></a> | ||
8 | + {{/ isLike}} | ||
3 | <a class="good-thumb" href="{{url}}"> | 9 | <a class="good-thumb" href="{{url}}"> |
4 | <img src="{{thumb}}"> | 10 | <img src="{{thumb}}"> |
5 | </a> | 11 | </a> |
6 | <div class="tag-container"> | 12 | <div class="tag-container"> |
7 | {{# isNew}} | 13 | {{# isNew}} |
8 | - <div class="new-tag"> | 14 | + <div class="good-tag new-tag clearfix"> |
15 | + <i></i> | ||
9 | <span>新品到着</span> | 16 | <span>新品到着</span> |
10 | - <span>NEW</span> | 17 | + <em>NEW</em> |
11 | </div> | 18 | </div> |
12 | {{/ isNew}} | 19 | {{/ isNew}} |
13 | {{# isSale}} | 20 | {{# isSale}} |
14 | - <div class="sale-tag"> | 21 | + <div class="good-tag sale-tag clearfix"> |
22 | + <i></i> | ||
15 | <span>打折商品</span> | 23 | <span>打折商品</span> |
16 | - <span>SALE</span> | 24 | + <em>SALE</em> |
17 | </div> | 25 | </div> |
18 | {{/ isSale}} | 26 | {{/ isSale}} |
19 | {{# isFew}} | 27 | {{# isFew}} |
20 | - <div class="few-tag"> | 28 | + <div class="good-tag few-tag clearfix"> |
29 | + <i></i> | ||
21 | <span>即将售罄</span> | 30 | <span>即将售罄</span> |
22 | - <span>FEW</span> | 31 | + <em>FEW</em> |
23 | </div> | 32 | </div> |
24 | {{/ isFew}} | 33 | {{/ isFew}} |
25 | </div> | 34 | </div> |
@@ -29,8 +38,8 @@ | @@ -29,8 +38,8 @@ | ||
29 | <a href="{{url}}">{{name}}</a> | 38 | <a href="{{url}}">{{name}}</a> |
30 | </div> | 39 | </div> |
31 | <div class="price"> | 40 | <div class="price"> |
32 | - <span class="sale-price">{{salePrice}}</span> | ||
33 | - <span class="price">{{price}}</span> | 41 | + <span class="sale-price">¥{{salePrice}}</span> |
42 | + <span class="market-price">¥{{price}}</span> | ||
34 | </div> | 43 | </div> |
35 | </div> | 44 | </div> |
36 | </div> | 45 | </div> |
-
Please register or login to post a comment