2017-04-20 17:17:02 +08:00
|
|
|
/**
|
|
|
|
|
* Created by cxt on 2017/4/18.
|
|
|
|
|
*/
|
|
|
|
|
//-------------------浮动“开始”出现增加课程列表----------------//
|
|
|
|
|
$(function(){
|
2017-04-21 20:06:54 +08:00
|
|
|
$(".-task-con-int .passageway .hint ").mouseenter(function() {
|
2017-04-20 17:17:02 +08:00
|
|
|
$(".-task-con-int .passageway .hint .list").show();
|
2017-04-21 20:06:54 +08:00
|
|
|
$(".-task-con-int .passageway .hint .list li").hover(function (e) {
|
|
|
|
|
$(e.target).css({
|
|
|
|
|
background: "#e6e6e6"
|
|
|
|
|
});
|
|
|
|
|
}, function (e) {
|
|
|
|
|
$(e.target).css({
|
|
|
|
|
background: "#fff"
|
|
|
|
|
});
|
|
|
|
|
});
|
2017-04-20 17:17:02 +08:00
|
|
|
});
|
|
|
|
|
$(".-task-con-int .passageway .hint").mouseleave(function(){
|
|
|
|
|
$(".-task-con-int .passageway .hint .list").hide();
|
2017-04-21 20:06:54 +08:00
|
|
|
|
2017-04-20 17:17:02 +08:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//---------------------------我的关注-----------------------------//
|
|
|
|
|
$(function(){
|
|
|
|
|
$("#my_watchlist_span").live('click', function(){
|
|
|
|
|
$("#my_fanlist_span").removeClass('span1');
|
|
|
|
|
$("#my_watchlist_span").addClass('span1');
|
|
|
|
|
$("#my_fanlist").hide();
|
|
|
|
|
$("#my_watchlist").show();
|
|
|
|
|
});
|
|
|
|
|
$("#my_fanlist_span").live('click', function(){
|
|
|
|
|
$("#my_watchlist_span").removeClass('span1');
|
|
|
|
|
$("#my_fanlist_span").addClass('span1');
|
|
|
|
|
$("#my_watchlist").hide();
|
|
|
|
|
$("#my_fanlist").show();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//---------------------------修改个人简介-----------------------------//
|
|
|
|
|
$(function(){
|
|
|
|
|
$("#user_breif_introduction").on('blur', function(){
|
|
|
|
|
$.post(
|
|
|
|
|
'/users/' + $("#current_user_id").val() + '/edit_brief_introduction',
|
|
|
|
|
{ brief_introduction: $("#user_breif_introduction").val() },
|
|
|
|
|
function (data) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//---------------------------取消关注/关注-----------------------------//
|
|
|
|
|
$(function(){
|
|
|
|
|
$("#cancel_watch").live('mouseenter',function(){
|
|
|
|
|
$("#cancel_watch").html("取消关注");
|
|
|
|
|
});
|
|
|
|
|
$("#cancel_watch").live('mouseleave',function(){
|
|
|
|
|
$("#cancel_watch").html("已关注");
|
|
|
|
|
});
|
|
|
|
|
});
|