From eaacb264e2a0715ac82ba6fad4bb974582ed1402 Mon Sep 17 00:00:00 2001 From: Dragon <13925835632@139.com> Date: Fri, 29 Dec 2023 14:07:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=8F=E6=97=B6=E6=A6=9Cbu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/yinmeng/activity/2023-year/css/index.css | 1 + .../yinmeng/activity/2023-year/css/index.scss | 1 + view/yinmeng/activity/2023-year/js/index.js | 37 +++++++++++++++++-- 3 files changed, 35 insertions(+), 4 deletions(-) diff --git a/view/yinmeng/activity/2023-year/css/index.css b/view/yinmeng/activity/2023-year/css/index.css index ad35cd6..6916ba9 100644 --- a/view/yinmeng/activity/2023-year/css/index.css +++ b/view/yinmeng/activity/2023-year/css/index.css @@ -2850,6 +2850,7 @@ body { position: absolute; left: 1.61333rem; top: 0.09333rem; + z-index: 2; } .page3_pop .page3_pop_in ul li .tx { diff --git a/view/yinmeng/activity/2023-year/css/index.scss b/view/yinmeng/activity/2023-year/css/index.scss index 8781b40..7264d87 100644 --- a/view/yinmeng/activity/2023-year/css/index.scss +++ b/view/yinmeng/activity/2023-year/css/index.scss @@ -2859,6 +2859,7 @@ body { position: absolute; left: px2rem(121); top: px2rem(7); + z-index: 2; } .tx { diff --git a/view/yinmeng/activity/2023-year/js/index.js b/view/yinmeng/activity/2023-year/js/index.js index 79f30e6..25829cc 100644 --- a/view/yinmeng/activity/2023-year/js/index.js +++ b/view/yinmeng/activity/2023-year/js/index.js @@ -951,10 +951,11 @@ function getHourRank () { hideLoading(layerIndex) } // 渲染上期小时榜榜首 - if (res.data.nick) { - $('.page3_pop .page3_pop_in .lastTop3 .tx').attr('src', res.data.avatar); - $('.page3_pop .page3_pop_in .lastTop3 p').text(res.data.nick); - $('.page3_pop .page3_pop_in .lastTop3 .right img').attr('src', res.data.assistance.avatar); + if (res.data.lastTopOne) { + $('.page3_pop .page3_pop_in .lastTop3 .tx').attr('src', res.data.lastTopOne.avatar); + $('.page3_pop .page3_pop_in .lastTop3 .ts').attr('uid', res.data.lastTopOne.uid); + $('.page3_pop .page3_pop_in .lastTop3 p').text(res.data.lastTopOne.nick); + $('.page3_pop .page3_pop_in .lastTop3 .right img').attr('src', res.data.lastTopOne.assistance.avatar); } else { $('.page3_pop .page3_po p_in .lastTop3 .tx').attr('src', './images/logo.png'); $('.page3_pop .page3_pop_in .lastTop3 p').text('虚位以待'); @@ -1023,6 +1024,34 @@ function hourCountup (leftTime) { hourCountup(leftTime) }, 1000); } +$('.page3_pop .page3_pop_in .lastTop3 .ts').click(function(){ + var uid = $(this).attr('uid'); + // 跳转个人资料页 + if (browser.ios) { + window.webkit.messageHandlers.openPersonPage.postMessage(uid); + } else if (browser.android) { + if (androidJsObj && typeof androidJsObj === 'object') { + window.androidJsObj.openPersonPage(uid); + } + } else { + console.log('web'); + } + return false; +}) +$('.page3_pop .page3_pop_in ul').on('click', ' li .ts', function () { + var uid = $(this).attr('uid'); + // 跳转个人资料页 + if (browser.ios) { + window.webkit.messageHandlers.openPersonPage.postMessage(uid); + } else if (browser.android) { + if (androidJsObj && typeof androidJsObj === 'object') { + window.androidJsObj.openPersonPage(uid); + } + } else { + console.log('web'); + } + return false; +}) // 关闭页面3弹窗 $('.page3_pop').click(function () { $('.page3_pop').hide();