Created with Sketch. `; html += `
`+ name + `
`; html += `
` + time + `
`; html += `
`+ num + `
` } html += ""; $(".xiaoqing").html(html); $(".xiaoqing-item").click(function () { articalid = $(this).find(".xq-player-wrapper").find(".player-id").text(); sendArticalSee(); }) $(".xiaoqing-item").hover(function () { // $(this).find(".xq-player").find("img").css({ "transform": "scale(1.05,1.05)", "transition": "all 0.5s linear" }); $(this).find(".xq-desc").css({ "border-color": "transparent", "box-shadow": "0px 2px 12px 0px rgba(229, 227, 227, 0.5)", "transition": "all linear 0.2s" }) $(this).find(".xq-desc-name").css("color", "#BE4650"); $(this).find("#border").css("display","block"); }, function () { // $(this).find(".xq-player").find("img").css({ "transform": "scale(1,1)", "transition": "all 0.5s linear" }); $(this).find(".xq-desc-name").css("color", "#111"); $(this).find(".xq-desc").css({ "border": "1px solid #ddd", "box-shadow": "0px 0px 0px 0px rgba(229, 227, 227, 0)" }) $(this).find("#border").css("display","none"); }) } }) } getArtical(); let articalid = ""; function sendArticalSee() { $.ajax({ type: "post", url: "https://qnupload.ifaceyun.com/SonicCRM/webservice/sendArticalSee.php", async: "true", dataType: "json", crossDomain: "true", data: { pid: 48, articalid }, success: function (data) { console.log(data) } }) }