Explorar o código

update:足舐列表展示优化 v1

lvzhiqiang hai 4 meses
pai
achega
05ddd79d1b

+ 1 - 1
src/main/resources/mapper/VideoInfoLoveFootMapper.xml

@@ -6,7 +6,7 @@
 <mapper namespace="top.lvzhiqiang.mapper.CrawlerLoveFootMapper">
 
     <select id="getVideoInfoLoveFootList" resultType="top.lvzhiqiang.entity.VideoInfo">
-        select vi.id,vi.name,vi.identification_code,vi.issue_date,vi.modify_time,vi.update_date,vi.type,vi.img_url,vi.orgin_avnoashi_url,vi.orgin_jpfoot_url,vi.orgin_feetpassion_url,IFNULL(vi.cast, vi.genres) AS main_who,IFNULL(vio.score, 0) AS score, IFNULL(vio.comment, '暂无评论') AS comment,
+        select vi.id,vi.name,vi.identification_code,vi.issue_date,vi.modify_time,vi.update_date,vi.type,vi.img_url,javdb_url,vi.orgin_avnoashi_url,vi.orgin_jpfoot_url,vi.orgin_feetpassion_url,IFNULL(vi.cast, vi.genres) AS main_who,IFNULL(vio.score, 0) AS score, IFNULL(vio.comment, '暂无评论') AS comment,
             IFNULL(temp1.identification_code, 'false') AS videoInfoFlag,IFNULL(temp2.identification_code, 'false') AS videoInfoPoolFlag,temp2.type AS videoInfoPoolType
         from crawler_lovefoot_info vi
         left join video_info_other vio on vi.identification_code = vio.identification_code and vio.delete_flag = 1

+ 10 - 4
src/main/resources/static/js/my-video.js

@@ -125,11 +125,11 @@ function search(pageNo, startFlag, searchSelectFlag) {
                 for (var i = 0; i < videoInfoList.length; i++) {
                     var videoInfo = videoInfoList[i];
 
-                    var date = videoInfo.issueDate;
+                    var date = videoInfo.issueDate + "|" + videoInfo.modifyTime;
                     if (orderField == 'vi.modify_time') {
-                        date = videoInfo.modifyTime;
+                        date = videoInfo.modifyTime + "|" + videoInfo.issueDate;
                     } else if (orderField == 'vi.update_date') {
-                        date = videoInfo.updateDate;
+                        date = videoInfo.updateDate + "|" + videoInfo.issueDate;
                     }
 
                     var scoreStr = '';
@@ -177,6 +177,7 @@ function search(pageNo, startFlag, searchSelectFlag) {
                         "           <span class=\"bigpreview playvideo play hidden-xs\" imgUrl='" + videoInfo.imgUrl + "'></span>" +
                         "           <span class=\"pic-tag pic-tag-top\">" +
                         "               <span class=\"tag identificationCode\" title=\"https://www.javbus.com/" + videoInfo.identificationCode + "\" style=\"background-color: #FB7299;\">" + videoInfo.identificationCode + "</span>" +
+                        "               <input type='hidden' javdbUrl='" + videoInfo.javdbUrl + "'>" +
                         "               <span class=\"tag identificationDate\" title=\"" + orginUrl + "\" style=\"background-color: #00C0FF;\">" + date + "</span>" +
                         "           </span>" +
                         "           <span class=\"pic-text text-right\" title='" + (videoInfo.comment === '' ? '暂无评论' : videoInfo.comment) + "'>" + scoreStr + "</span>" +
@@ -407,7 +408,12 @@ function initContentEvent() {
         }
     });
     $(".identificationCode").dblclick(function () {
-        window.open("https://www.javbus.com/" + $(this).text(), "_blank");
+        let s = $(this).parent().find("input[type='hidden']");
+        if ($(s).attr("javdbUrl") != null && $(s).attr("javdbUrl") !== "null") {
+            window.open($(s).attr("javdbUrl"), "_blank");
+        } else {
+            window.open("https://www.javbus.com/" + $(this).text(), "_blank");
+        }
     });
     $(".identificationDate").dblclick(function () {
         let title = $(this).attr("title");