Showing
13 changed files
with
35 additions
and
20 deletions

1.56 MB

1.69 MB

18.4 KB

18.1 KB

1.56 MB

17.7 KB
@@ -48,9 +48,25 @@ function scrollHandler() { | @@ -48,9 +48,25 @@ function scrollHandler() { | ||
48 | } | 48 | } |
49 | 49 | ||
50 | // 分享成功 | 50 | // 分享成功 |
51 | -// function successShare() { | ||
52 | -// tip.show('分享成功,亲密度+10'); | ||
53 | -// } | 51 | +function successShare() { |
52 | + $.ajax({ | ||
53 | + type: 'POST', | ||
54 | + url: '', | ||
55 | + data: { | ||
56 | + articleId: $that.parents('li').attr('articleId') | ||
57 | + }, | ||
58 | + success: function(data) { | ||
59 | + var code = data.code; | ||
60 | + | ||
61 | + if (code === 200) { | ||
62 | + tip.show('分享成功,亲密度+10'); | ||
63 | + } | ||
64 | + }, | ||
65 | + error: function() { | ||
66 | + tip.show('网络断开连接了~'); | ||
67 | + } | ||
68 | + }); | ||
69 | +} | ||
54 | 70 | ||
55 | $(window).scroll(function() { | 71 | $(window).scroll(function() { |
56 | scrollHandler(); | 72 | scrollHandler(); |
@@ -5,6 +5,10 @@ body { | @@ -5,6 +5,10 @@ body { | ||
5 | float: left | 5 | float: left |
6 | } | 6 | } |
7 | 7 | ||
8 | +.yoho-header .nav-title { | ||
9 | + font-weight: normal; | ||
10 | +} | ||
11 | + | ||
8 | .star-classroom { | 12 | .star-classroom { |
9 | img { | 13 | img { |
10 | max-width: 100%; | 14 | max-width: 100%; |
@@ -202,12 +206,13 @@ body { | @@ -202,12 +206,13 @@ body { | ||
202 | } | 206 | } |
203 | } | 207 | } |
204 | 208 | ||
205 | - .floor-more { | 209 | + .floor-header-more { |
206 | width: 100%; | 210 | width: 100%; |
207 | height: 88rem / $pxConvertRem; | 211 | height: 88rem / $pxConvertRem; |
208 | background: #000; | 212 | background: #000; |
209 | position: relative; | 213 | position: relative; |
210 | margin-top: 30rem / $pxConvertRem; | 214 | margin-top: 30rem / $pxConvertRem; |
215 | + border-top: 1px solid #000; | ||
211 | 216 | ||
212 | h2 { | 217 | h2 { |
213 | color: #fff; | 218 | color: #fff; |
@@ -219,12 +224,12 @@ body { | @@ -219,12 +224,12 @@ body { | ||
219 | .more-btn { | 224 | .more-btn { |
220 | width: 64rem / $pxConvertRem; | 225 | width: 64rem / $pxConvertRem; |
221 | height: 96rem / $pxConvertRem; | 226 | height: 96rem / $pxConvertRem; |
222 | - background-image: image-url("guang/star-classroom/more.png"); | ||
223 | - background-repeat: no-repeat; | ||
224 | - background-size: contain; | 227 | + line-height: 86rem / $pxConvertRem; |
225 | position: absolute; | 228 | position: absolute; |
226 | - right: 26rem / $pxConvertRem; | 229 | + right: 20rem / $pxConvertRem; |
227 | top: 0; | 230 | top: 0; |
231 | + color: #b0b0b0; | ||
232 | + font-size: 50rem / $pxConvertRem; | ||
228 | } | 233 | } |
229 | } | 234 | } |
230 | 235 |
@@ -5,10 +5,10 @@ | @@ -5,10 +5,10 @@ | ||
5 | {{> guang/head-tab}} | 5 | {{> guang/head-tab}} |
6 | <ul class="subject-list"> | 6 | <ul class="subject-list"> |
7 | {{#each resources}} | 7 | {{#each resources}} |
8 | - {{#if subject}} | 8 | + {{#if video}} |
9 | <li> | 9 | <li> |
10 | - <a href="{{url}}"> | ||
11 | - <img src="{{img}}" /> | 10 | + <a href="{{videoUrl}}"> |
11 | + <img src="{{videoImg}}" alt="{{alt}}"/> | ||
12 | <p>{{title}}</p> | 12 | <p>{{title}}</p> |
13 | </a> | 13 | </a> |
14 | </li> | 14 | </li> |
1 | {{# starCollocation}} | 1 | {{# starCollocation}} |
2 | - {{> guang/floor-header-more}} | 2 | + {{> home/floor_header_more}} |
3 | <div class="home-floor-collocation"> | 3 | <div class="home-floor-collocation"> |
4 | <ul class="collocation-big-img"> | 4 | <ul class="collocation-big-img"> |
5 | {{#each collocationBigImg}} | 5 | {{#each collocationBigImg}} |
1 | {{# starSubject}} | 1 | {{# starSubject}} |
2 | - {{> guang/floor-header-more}} | 2 | + {{> home/floor_header_more}} |
3 | <div class="home-floor-subject"> | 3 | <div class="home-floor-subject"> |
4 | {{# subjectBanner}} | 4 | {{# subjectBanner}} |
5 | <a href="{{url}}"><img src="{{img}}" class="subject-banner"/></a> | 5 | <a href="{{url}}"><img src="{{img}}" class="subject-banner"/></a> |
-
Please register or login to post a comment