Authored by 王水玲

星潮教室

... ... @@ -48,9 +48,25 @@ function scrollHandler() {
}
// 分享成功
// function successShare() {
// tip.show('分享成功,亲密度+10');
// }
function successShare() {
$.ajax({
type: 'POST',
url: '',
data: {
articleId: $that.parents('li').attr('articleId')
},
success: function(data) {
var code = data.code;
if (code === 200) {
tip.show('分享成功,亲密度+10');
}
},
error: function() {
tip.show('网络断开连接了~');
}
});
}
$(window).scroll(function() {
scrollHandler();
... ...
... ... @@ -5,6 +5,10 @@ body {
float: left
}
.yoho-header .nav-title {
font-weight: normal;
}
.star-classroom {
img {
max-width: 100%;
... ... @@ -202,12 +206,13 @@ body {
}
}
.floor-more {
.floor-header-more {
width: 100%;
height: 88rem / $pxConvertRem;
background: #000;
position: relative;
margin-top: 30rem / $pxConvertRem;
border-top: 1px solid #000;
h2 {
color: #fff;
... ... @@ -219,12 +224,12 @@ body {
.more-btn {
width: 64rem / $pxConvertRem;
height: 96rem / $pxConvertRem;
background-image: image-url("guang/star-classroom/more.png");
background-repeat: no-repeat;
background-size: contain;
line-height: 86rem / $pxConvertRem;
position: absolute;
right: 26rem / $pxConvertRem;
right: 20rem / $pxConvertRem;
top: 0;
color: #b0b0b0;
font-size: 50rem / $pxConvertRem;
}
}
... ...
... ... @@ -5,10 +5,10 @@
{{> guang/head-tab}}
<ul class="subject-list">
{{#each resources}}
{{#if subject}}
{{#if video}}
<li>
<a href="{{url}}">
<img src="{{img}}" />
<a href="{{videoUrl}}">
<img src="{{videoImg}}" alt="{{alt}}"/>
<p>{{title}}</p>
</a>
</li>
... ...
{{# title}}
<div class="floor-more">
<h2>{{title}}</h2>
<a class="more-btn" href="{{moreUrl}}">&nbsp;</a>
</div>
{{/ title}}
\ No newline at end of file
{{# starCollocation}}
{{> guang/floor-header-more}}
{{> home/floor_header_more}}
<div class="home-floor-collocation">
<ul class="collocation-big-img">
{{#each collocationBigImg}}
... ...
{{# starSubject}}
{{> guang/floor-header-more}}
{{> home/floor_header_more}}
<div class="home-floor-subject">
{{# subjectBanner}}
<a href="{{url}}"><img src="{{img}}" class="subject-banner"/></a>
... ...
{{# starThings}}
{{> guang/floor-header-more}}
{{> home/floor_header_more}}
{{> guang/things-article}}
{{/ starThings}}
\ No newline at end of file
... ...