Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
王水玲
9 years ago
Commit
0258d200989e5607281179b55b611ded52845a1e
2 parents
d491248b
41fe841f
星潮bug修改
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
26 deletions
static/js/guang/collocation-list.js
static/js/guang/star-classroom.js
static/sass/guang/_star-classroom.css
template/m.yohobuy.com/actions/guang/starclass/collocation-list.phtml
static/js/guang/collocation-list.js
View file @
0258d20
...
...
@@ -8,13 +8,18 @@ var $ = require('jquery'),
tip
=
require
(
'../plugin/tip'
),
loading
=
require
(
'../plugin/loading'
),
lazyLoad
=
require
(
'yoho.lazyload'
),
ellipsis
=
require
(
'mlellipsis'
),
stopLoading
=
false
;
var
page
=
1
;
ellipsis
.
init
();
$
(
'body'
).
addClass
(
'star-class-body'
);
function
massageAJAX
(
page
)
{
var
$this
,
$title
,
$cont
;
loading
.
showLoadingMask
();
$
.
ajax
({
type
:
'GET'
,
...
...
@@ -32,6 +37,17 @@ function massageAJAX(page) {
}
$
(
'.collocation-list'
).
append
(
data
);
// 限制标题字数
$
(
'.cont-area'
).
each
(
function
()
{
$this
=
$
(
this
);
$title
=
$this
.
find
(
'.title'
);
$cont
=
$this
.
find
(
'.cont-txt'
);
$title
[
0
].
mlellipsis
(
2
);
$cont
[
0
].
mlellipsis
(
2
);
});
loading
.
hideLoadingMask
();
lazyLoad
(
$
(
'img.lazy'
));
},
...
...
@@ -118,4 +134,4 @@ $(document).on('touchstart', '.collection', function(event) {
tip
.
show
(
'网络断开连接了~'
);
}
});
});
\ No newline at end of file
});
...
...
static/js/guang/star-classroom.js
View file @
0258d20
...
...
@@ -251,16 +251,20 @@ $('.add-intimacy').on('touchstart', function(event) {
// 关闭日历弹出窗事件
$
(
'.pop-intimacy .pop-close, .classroom-mask'
).
on
(
'click'
,
function
()
{
$
(
'.pop-intimacy'
).
css
({
zIndex
:
'-1'
}).
hide
();
$
(
'.classroom-mask'
).
css
({
zIndex
:
'-1'
}).
hide
();
// $('.pop-intimacy').css({
// zIndex: '-1'
// }).hide();
// $('.classroom-mask').css({
// zIndex: '-1'
// }).hide();
$
(
'body'
).
css
({
overflow
:
'visible'
});
// $('body').css({
// overflow: 'visible'
// });
// location.reload();
history
.
go
(
0
);
});
function
setAvatar
()
{
...
...
static/sass/guang/_star-classroom.css
View file @
0258d20
...
...
@@ -735,11 +735,6 @@
line-height
:
46px
;
color
:
#b0b0b0
;
margin-top
:
10px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
}
img
{
...
...
@@ -749,16 +744,8 @@
.title
{
font-size
:
40px
;
line-height
:
48px
;
a
{
color
:
#fff
;
width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
}
color
:
#fff
;
width
:
100%
;
}
.count-area
{
...
...
template/m.yohobuy.com/actions/guang/starclass/collocation-list.phtml
View file @
0258d20
...
...
@@ -4,7 +4,7 @@
<a
href=
"{{url}}"
><img
class=
"lazy"
src
=
""
data-original=
"{{img}}"
/></a>
{
{/if
}
}
<div
class=
"cont-area"
>
<
h
2
class=
"title"
><a
href=
"{{url}}"
>
{
{title
}
}</a></h
2
>
<
a
href=
"{{url}}"
><h
2
class=
"title"
>
{
{title
}
}</h
2
></a
>
<p
class=
"cont-txt"
>
{
{content
}
}</p>
<div
class=
"count-area"
>
<span
class=
"time"
><i
class=
"iconfont time-ico"
>
603
;</i>
{
{time
}
}</span>
...
...
Please
register
or
login
to post a comment