diff --git a/view/molistar/modules/pkRank/css/index.css b/view/molistar/modules/pkRank/css/index.css index 483981d..5a8c202 100644 --- a/view/molistar/modules/pkRank/css/index.css +++ b/view/molistar/modules/pkRank/css/index.css @@ -436,6 +436,11 @@ body { top: 12.50667rem; left: 50%; transform: translateX(-50%); + overflow-y: scroll; +} + +.page2 ul::-webkit-scrollbar { + display: none; } .page2 ul li { @@ -443,6 +448,7 @@ body { background-size: 100% 100%; width: 100%; height: 1.92rem; + margin-bottom: 0.1rem; } .page2 ul li .num { diff --git a/view/molistar/modules/pkRank/css/index.scss b/view/molistar/modules/pkRank/css/index.scss index 9689bc6..ff37b5d 100644 --- a/view/molistar/modules/pkRank/css/index.scss +++ b/view/molistar/modules/pkRank/css/index.scss @@ -446,12 +446,17 @@ body { top: px2rem(938); left: 50%; transform: translateX(-50%); + overflow-y: scroll; + &::-webkit-scrollbar{ + display: none; + } li { background: url(../images/page2Li.png) no-repeat; background-size: 100% 100%; width: 100%; height: px2rem(144); + margin-bottom: 0.1rem; .num { width: px2rem(69); diff --git a/view/molistar/modules/pkRank/js/index.js b/view/molistar/modules/pkRank/js/index.js index 7605a08..ebbf842 100644 --- a/view/molistar/modules/pkRank/js/index.js +++ b/view/molistar/modules/pkRank/js/index.js @@ -96,7 +96,7 @@ function getRank() { networkRequest({ type: 'get', url: urlPrefix + '/act/singleCrossRoomPk/getRank', - data: { pageNum: pageNum, pageSize: 10 }, + data: { pageNum: pageNum, pageSize: 50 }, success(res) { if (res.code === 200) { var str = ''; @@ -123,7 +123,7 @@ function getRank() { res.data.forEach((res, i) => { str += `
  • -
    ${i + 1}
    +
    ${i < 3 ? '' : i + 1}

    ${res.nick}

    @@ -154,6 +154,7 @@ function getRank() { } // 排行榜滚动监听 $('.page2 ul').scroll(function () { + return let scrollTop = $(this).scrollTop() let scrollHeight = $('.page2 ul')[0].scrollHeight let ulHeight = $(this).innerHeight() diff --git a/view/molistar/modules/rank/static/js/app.f9cd1a971030e0feba78.js b/view/molistar/modules/rank/static/js/app.f9cd1a971030e0feba78.js index b4c646d..89b69fb 100644 --- a/view/molistar/modules/rank/static/js/app.f9cd1a971030e0feba78.js +++ b/view/molistar/modules/rank/static/js/app.f9cd1a971030e0feba78.js @@ -1,2 +1,2 @@ -webpackJsonp([8],{"/CRi":function(e,n){},"2KIr":function(e,n){},"4ml/":function(e,n){},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=t("7+uW"),o={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var a=t("VU/8")({name:"App"},o,!1,function(e){t("tKSs")},null,null).exports,r=t("YaEn"),s=(t("2KIr"),t("NYxO"));i.default.use(s.a);var d=new s.a.Store({state:{info:{ticket:"123",uid:"678"}},mutations:{setInfo:function(e,n){e.info.ticket=n.ticket,e.info.uid=n.uid}},getters:{getInfo:function(e){return e.info}},actions:{getUserInfo:function(e){return e.state}}}),c=t("pFYg"),u=t.n(c),l=t("Z4iZ");window.info={},window.getMessage=function(e,n){info[e]=n};var f=t("SV4X"),m=t.n(f),p=(t("/CRi"),t("4ml/"),t("Fd2+")),g=(t("sVYa"),t("Lw6n")),w=t.n(g),h=t("DVXL"),b=t.n(h),v=t("TXmL"),O={en:{rank:{"愛意榜":"Love List","魅力榜":"Charm List","房間榜":"Room List","公會榜":"Guild List","日榜":"Daily List","周榜":"Weekly List","距上壹名":"Away from the Previous","未上榜":"Not Listed","加載中":"Loading..."}},zh:{rank:{"愛意榜":"愛意榜","魅力榜":"魅力榜","房間榜":"房間榜","公會榜":"公會榜","日榜":"日榜","周榜":"周榜","距上壹名":"距上壹名","未上榜":"未上榜","加載中":"加載中"}},id:{diamondLog:{}},ar:{rank:{"愛意榜":"قائمة الحب","魅力榜":"قائمة السحر","房間榜":"قائمة الغرف","公會榜":"قائمة الوكالات","日榜":"قائمة اليومية","周榜":"قائمة الأسبوعية","距上壹名":"بعيد عن السابق","未上榜":"غير مدرج","加載中":"جاري التحميل"}},tr:{diamondLog:{}}};i.default.use(v.a);var k=new v.a({locale:window.sessionStorage.getItem("language")||"en",messages:O,silentTranslationWarn:!0});!function(){var e=Object(l.b)();if(e.app)if(e.ios){var n=document.cookie.match(/\d+/);info.uid=n[0],window.webkit.messageHandlers.getTicket.postMessage(null),window.webkit.messageHandlers.getDeviceInfo.postMessage(null)}else e.android&&androidJsObj&&"object"===("undefined"==typeof androidJsObj?"undefined":u()(androidJsObj))&&(info.uid=parseInt(window.androidJsObj.getUid()),info.ticket=window.androidJsObj.getTicket(),info.deviceInfo=JSON.parse(window.androidJsObj.getDeviceInfo()));else window.sessionStorage.clear(),info.deviceInfo={app:"molistar",appVersion:"0.0.0",os:"0.0.0",osVersion:"0.0.0",channel:"browser",client:"h5","Accept-Language":"en"}}(),i.default.config.productionTip=!1,i.default.prototype.$layer=m()(i.default),"test"===Object(l.a)()&&new w.a,b.a.attach(document.body),i.default.use(p.b),new i.default({el:"#app",router:r.a,store:d,i18n:k,components:{App:a},template:""})},YaEn:function(e,n,t){"use strict";var i=t("7+uW"),o=t("/ocq");i.default.use(o.a);var a=new o.a({routes:[{path:"/rank",name:"rank",component:function(){return Promise.all([t.e(0),t.e(2)]).then(t.bind(null,"XwoE"))},meta:{title:"MoliStar"}},{path:"/wishingWellRank",name:"wishingWellRank",meta:{title:"榜單"},component:function(){return Promise.all([t.e(0),t.e(3)]).then(t.bind(null,"W02H"))}},{path:"/wishingWellRecord",name:"wishingWellRecord",meta:{title:"中獎記錄"},component:function(){return Promise.all([t.e(0),t.e(5)]).then(t.bind(null,"ht4E"))}},{path:"/newWishingWellRecord",name:"newWishingWellRecord",meta:{title:"中獎記錄"},component:function(){return Promise.all([t.e(0),t.e(4)]).then(t.bind(null,"HD5i"))}},{path:"/wishingWellRule",name:"wishingWellRule",meta:{title:"玩法規則"},component:function(){return t.e(6).then(t.bind(null,"bxJL"))}},{path:"/DiamondLog",name:"DiamondLog",meta:{title:"鉆石記錄"},component:function(){return Promise.all([t.e(0),t.e(1)]).then(t.bind(null,"zXe3"))}}]});a.beforeEach(function(e,n,t){window.sessionStorage.getItem("ticket")?t():setTimeout(function(){if(sessionStorage.clear(),window.sessionStorage.setItem("uid",info.uid),window.sessionStorage.setItem("ticket",info.ticket),info.deviceInfo["Accept-Language"]){-1!=(e=info.deviceInfo["Accept-Language"]).indexOf("en")?window.sessionStorage.setItem("language","en"):(window.sessionStorage.setItem("language",info.deviceInfo["Accept-Language"]),"ar"===e&&document.documentElement.setAttribute("dir","rtl"))}else{var e=info.deviceInfo["Accept-Language"];window.sessionStorage.setItem("language","en"),"ar"===e&&document.documentElement.setAttribute("dir","rtl")}console.log(info,"router"),t()},70)}),n.a=a},Z4iZ:function(e,n,t){"use strict";t.d(n,"b",function(){return i}),t.d(n,"a",function(){return o});var i=function(){var e=navigator.userAgent;navigator.appVersion;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1==e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Adr")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari"),weixin:e.indexOf("MicroMessenger")>-1,qq:" qq"==e.match(/\sQQ/i),app:"molistarApp"==e.match("molistarApp")}},o=function(){if(window.location.href){var e=window.location.href,n=e.match(/api.uat.z/),t=e.match(/120.79.211.243/),i=e.match(/192.168/),o=e.match(/127.0.0.1/),a=e.match(/api.uat/),r=e.match(/beta./);return n||t||i||o||a||r?"test":"live"}}},afzy:function(e,n,t){"use strict";function i(){return(i=Object.assign||function(e){for(var n=1;n"})},YaEn:function(e,n,t){"use strict";var i=t("7+uW"),o=t("/ocq");i.default.use(o.a);var a=new o.a({routes:[{path:"/rank",name:"rank",component:function(){return Promise.all([t.e(0),t.e(2)]).then(t.bind(null,"XwoE"))},meta:{title:"MoliStar"}},{path:"/wishingWellRank",name:"wishingWellRank",meta:{title:"榜單"},component:function(){return Promise.all([t.e(0),t.e(3)]).then(t.bind(null,"W02H"))}},{path:"/wishingWellRecord",name:"wishingWellRecord",meta:{title:"中獎記錄"},component:function(){return Promise.all([t.e(0),t.e(5)]).then(t.bind(null,"ht4E"))}},{path:"/newWishingWellRecord",name:"newWishingWellRecord",meta:{title:"中獎記錄"},component:function(){return Promise.all([t.e(0),t.e(4)]).then(t.bind(null,"HD5i"))}},{path:"/wishingWellRule",name:"wishingWellRule",meta:{title:"玩法規則"},component:function(){return t.e(6).then(t.bind(null,"bxJL"))}},{path:"/DiamondLog",name:"DiamondLog",meta:{title:"鉆石記錄"},component:function(){return Promise.all([t.e(0),t.e(1)]).then(t.bind(null,"zXe3"))}}]});a.beforeEach(function(e,n,t){window.sessionStorage.getItem("ticket")?t():setTimeout(function(){if(sessionStorage.clear(),window.sessionStorage.setItem("uid",info.uid),window.sessionStorage.setItem("ticket",info.ticket),info.deviceInfo["Accept-Language"]){-1!=(e=info.deviceInfo["Accept-Language"]).indexOf("en")?window.sessionStorage.setItem("language","en"):(window.sessionStorage.setItem("language",info.deviceInfo["Accept-Language"]),"ar"===e&&document.documentElement.setAttribute("dir","rtl"))}else{var e=info.deviceInfo["Accept-Language"];window.sessionStorage.setItem("language","en"),"ar"===e&&document.documentElement.setAttribute("dir","rtl")}console.log(info,"router"),t()},70)}),n.a=a},Z4iZ:function(e,n,t){"use strict";t.d(n,"b",function(){return i}),t.d(n,"a",function(){return o});var i=function(){var e=navigator.userAgent;navigator.appVersion;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1==e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Adr")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari"),weixin:e.indexOf("MicroMessenger")>-1,qq:" qq"==e.match(/\sQQ/i),app:"molistarApp"==e.match("molistarApp")}},o=function(){if(window.location.href){var e=window.location.href,n=e.match(/api.uat.z/),t=e.match(/120.79.211.243/),i=e.match(/192.168/),o=e.match(/127.0.0.1/),a=e.match(/api.uat/),r=e.match(/beta./);return n||t||i||o||a||r?"test":"live"}}},afzy:function(e,n,t){"use strict";function i(){return(i=Object.assign||function(e){for(var n=1;n