杀戮当然还有悬疑和诡异搭配,而去救自己被绑架的好朋友。一场杀戮随即展开,众人纷纷陷入恐慌与绝望之中。瑞恩·海登也开始怀疑起自己被绑架的真正目的……随着谜底逐渐揭晓,一场关于人性的恐怖杀戮将会在这片欲望之地上上演。"; } $(".movie-synopsis").html(synopsis); }, error: function(){ //请求失败 console.log("请求失败"); } });});$(document).on("click",".btn-follow",function(){ var useId = $("#userId").val(); if(useId == null || useId == ""){ alert("请先登录!"); window.location.href = "login"; }else{ var obj = $(this); var followId = obj.attr("data-id"); if(obj.text() == "关注"){ $.ajax({ url: "follow/add", type: "post", data: {"followId":followId}, dataType: "json", success: function(data){ if(data.code == 200){ obj.text("取消关注"); obj.addClass("btn-danger"); obj.removeClass("btn-success"); } }, error: function(){ //请求失败 console.log("请求失败"); } }); }else if(obj.text() == "取消关注"){ $.ajax({ url: "follow/delete", type: "get", data: {"followId":followId}, dataType: "json", success: function(data){ if(data.code == 200){ obj.text("关注"); obj.addClass("btn-success"); obj.removeClass("btn-danger"); } }, error: function(){ //请求失败 console.log("请求失败"); } }); } }});$(document).on("click",".btn-collection",function(){ var useId = $("#userId").val(); if(useId == null || useId == ""){ alert("请先登录!"); window.location.href = "login"; }else{ var obj = $(this); var movieId = obj.attr("data-id"); if(obj.text() == "想看"){ $.ajax({ url: "collection/add", type: "post", data: {"movieId":movieId}, dataType: "json", success: function(data){ if(data.code == 200){ obj.text("取消想看"); obj.addClass("btn-danger"); obj.removeClass("btn-success"); }else{ alert(data.msg); } }, error: function(){ //请求失败 console.log("请求失败"); } }); }else if(obj.text() == "取消想看"){ $.ajax({ url: "collection/delete", type: "get", data: {"movieId":movieId}, dataType: "json", success: function(data){ if(data.code == 200){ obj.text("想看"); obj.addClass("btn-success"); obj.removeClass("btn-danger"); } }, error: function(){ //请求失败 console.log("请求失败"); } }); } }});$(document).on("click",".btn-comment",function(){ var useId = $("#userId").val(); if(useId == null || useId == ""){ alert("请先登录!"); window.location.href = "login"; }else{ var commentUser = $(this).attr("data-id"); $("#commentUser").val(commentUser); }});$(document).on("click",".btn-send",function(){ var useId = $("#userId").val(); if(useId == null || useId == ""){ alert("请先登录!"); window.location.href = "login"; }else{ var commentUser = $("#commentUser").val();