diff --git a/view/peko/activity/2024-goddessesDay/css/index.css b/view/peko/activity/2024-goddessesDay/css/index.css new file mode 100644 index 0000000..5a77a17 --- /dev/null +++ b/view/peko/activity/2024-goddessesDay/css/index.css @@ -0,0 +1,497 @@ +html, +body { + width: 100%; + background: #FBABAD; +} + +.back { + position: fixed; + top: 0.93333rem; + left: 0.45333rem; + z-index: 99; + width: 0.82667rem; + height: 0.82667rem; +} + +.back img { + width: 100%; + height: 100%; +} + +.back p { + color: #fff; + font-size: 0.42667rem; + position: absolute; + width: 9rem; + left: 0; + top: 0; + height: 100%; + text-align: center; + line-height: 0.82667rem; +} + +.header { + width: 10rem; + height: 14.56rem; + background: url(../images/header.png) no-repeat; + background-size: 100% 100%; + position: relative; + margin: 0 auto 0.24rem; +} + +.header .rule_icon { + width: 1.14667rem; + height: 3.4rem; + position: absolute; + right: 0rem; + top: 6.25333rem; +} + +.tabBox { + width: 7.66667rem; + height: 1.13333rem; + margin: 0 auto 0.22667rem; + display: flex; + justify-content: space-between; +} + +.tabBox div { + width: 3.58667rem; +} + +.tabBox .tab1 { + background: url(../images/tab1.png) no-repeat; + background-size: 100% 100%; +} + +.tabBox .tab2 { + background: url(../images/tab2.png) no-repeat; + background-size: 100% 100%; +} + +.tabBox .tabAct1 { + background: url(../images/tabAct1.png) no-repeat; + background-size: 100% 100%; +} + +.tabBox .tabAct2 { + background: url(../images/tabAct2.png) no-repeat; + background-size: 100% 100%; +} + +.page1 { + width: 9.44rem; + height: 18.6rem; + margin: 0 auto 0.34667rem; + background: url(../images/page1Bg.png) no-repeat; + background-size: 100% 100%; +} + +.page2 { + display: none; + width: 9.44rem; + height: 18.42667rem; + background: url(../images/page2Bg.png) no-repeat; + background-size: 100% 100%; + margin: 0 auto 2.06667rem; + overflow: hidden; +} + +.page2 .tablist { + width: 4.90667rem; + height: 0.70667rem; + display: flex; + justify-content: space-between; + margin: 0.50667rem auto 0.93333rem; + background: url(../images/tabListBg.png) no-repeat; + background-size: 100% 100%; +} + +.page2 .tablist div { + width: 2.45333rem; + height: 0.70667rem; + line-height: 0.70667rem; + color: #FFFFFF; + font-size: 0.38667rem; + font-weight: 500; + text-align: center; +} + +.page2 .tablist .act { + background: url(../images/tabListAct.png) no-repeat; + background-size: 100% 100%; +} + +.page2 .top3Box { + width: 8.33333rem; + height: 3.13333rem; + position: relative; + margin: 0 auto 0.33333rem; +} + +.page2 .top3Box .no1 { + width: 2.73333rem; + height: 3.49333rem; + background: url(../images/no1Bg.png) no-repeat; + background-size: 100% 100%; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 0; +} + +.page2 .top3Box .no1 .ts { + width: 1.56rem; + height: 1.58667rem; + z-index: 2; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 1.96rem; +} + +.page2 .top3Box .no1 .tx { + width: 1.21333rem; + height: 1.21333rem; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 2.10667rem; + border-radius: 50%; +} + +.page2 .top3Box .no1 .name { + width: 100%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + color: #AE3E4E; + font-size: 0.30667rem; + font-weight: 500; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 1.38667rem; + text-align: center; +} + +.page2 .top3Box .no1 p { + width: 100%; + color: #AE3E4E; + font-size: 0.26667rem; + font-weight: 400; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 0.70667rem; + text-align: center; +} + +.page2 .top3Box .no1 .score { + width: 100%; + color: #fff; + font-size: 0.26667rem; + font-weight: 400; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 0.24rem; + text-align: center; +} + +.page2 .top3Box .no2 { + width: 2.73333rem; + height: 3.13333rem; + background: url(../images/no23Bg.png) no-repeat; + background-size: 100% 100%; + position: absolute; + left: 0%; + bottom: 0; +} + +.page2 .top3Box .no2 .ts { + width: 1.56rem; + height: 1.58667rem; + z-index: 2; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 1.72rem; +} + +.page2 .top3Box .no2 .tx { + width: 1.21333rem; + height: 1.21333rem; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 1.89333rem; + border-radius: 50%; +} + +.page2 .top3Box .no2 .name { + width: 100%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + color: #AE3E4E; + font-size: 0.30667rem; + font-weight: 500; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 1.26667rem; + text-align: center; +} + +.page2 .top3Box .no2 p { + width: 100%; + color: #AE3E4E; + font-size: 0.26667rem; + font-weight: 400; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 0.72rem; + text-align: center; +} + +.page2 .top3Box .no2 .score { + width: 100%; + color: #fff; + font-size: 0.26667rem; + font-weight: 400; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 0.26667rem; + text-align: center; +} + +.page2 .top3Box .no3 { + width: 2.73333rem; + height: 3.13333rem; + background: url(../images/no23Bg.png) no-repeat; + background-size: 100% 100%; + position: absolute; + right: 0%; + bottom: 0; +} + +.page2 .top3Box .no3 .ts { + width: 1.56rem; + height: 1.58667rem; + z-index: 2; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 1.72rem; +} + +.page2 .top3Box .no3 .tx { + width: 1.21333rem; + height: 1.21333rem; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 1.89333rem; + border-radius: 50%; +} + +.page2 .top3Box .no3 .name { + width: 100%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + color: #AE3E4E; + font-size: 0.30667rem; + font-weight: 500; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 1.26667rem; + text-align: center; +} + +.page2 .top3Box .no3 p { + width: 100%; + color: #AE3E4E; + font-size: 0.26667rem; + font-weight: 400; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 0.72rem; + text-align: center; +} + +.page2 .top3Box .no3 .score { + width: 100%; + color: #fff; + font-size: 0.26667rem; + font-weight: 400; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 0.26667rem; + text-align: center; +} + +.page2 ul { + width: 9.26667rem; + height: 12.6rem; + overflow-y: scroll; + margin: 0 auto 0; +} + +.page2 ul::-webkit-scrollbar { + display: none; +} + +.page2 ul li { + width: 100%; + height: 1.53333rem; + background: url(../images/liBg.png) no-repeat; + background-size: 100% 100%; + margin-bottom: 0.02667rem; +} + +.page2 ul li .num { + width: 0.46667rem; + height: 1.53333rem; + line-height: 1.53333rem; + color: #AE3E4E; + font-size: 0.4rem; + font-weight: 400; + margin-left: 0.38667rem; + text-align: center; + margin-right: 0.6rem; + float: left; +} + +.page2 ul li .tx { + width: 1.16rem; + height: 1.16rem; + border-radius: 50%; + border: 0.02667rem solid #AE3E4E; + margin-top: 0.2rem; + margin-right: 0.37333rem; + display: block; + float: left; +} + +.page2 ul li .name { + width: 3rem; + height: 1.53333rem; + line-height: 1.53333rem; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + color: #AE3E4E; + font-size: 0.36rem; + float: left; +} + +.page2 ul li .score { + float: right; + height: 1.53333rem; + line-height: 1.53333rem; + color: #AE3E4E; + font-weight: 400; + margin-right: 0.56rem; +} + +.page2 .my { + position: fixed; + width: 10rem; + height: 2.06667rem; + background: url(../images/my.png) no-repeat; + background-size: 100% 100%; + margin-bottom: 0.02667rem; + left: 0; + bottom: 0; +} + +.page2 .my .num { + width: 1.33333rem; + height: 2.06667rem; + line-height: 2.06667rem; + color: #AE3E4E; + font-size: 0.4rem; + font-weight: 400; + margin-left: 0.38667rem; + text-align: center; + margin-right: 0.25333rem; + float: left; +} + +.page2 .my .tx { + width: 1.16rem; + height: 1.16rem; + border-radius: 50%; + border: 0.02667rem solid #AE3E4E; + margin-top: 0.42667rem; + margin-right: 0.37333rem; + display: block; + float: left; +} + +.page2 .my .name { + width: 3rem; + height: 2.06667rem; + line-height: 2.06667rem; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + color: #AE3E4E; + font-size: 0.36rem; + float: left; +} + +.page2 .my .score { + float: right; + height: 2.06667rem; + line-height: 2.06667rem; + color: #AE3E4E; + font-weight: 400; + margin-right: 0.56rem; +} + +.rule { + display: none; + position: fixed; + left: 0; + top: 0; + bottom: 0; + right: 0; + z-index: 999; + background: rgba(0, 0, 0, 0.6); +} + +.rule .rule_in { + width: 8.76rem; + height: 13.13333rem; + background: url(../images/ruleBg.png) no-repeat; + background-size: 100% 100%; + overflow: hidden; + position: relative; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); +} + +.rule .rule_in .rulebox { + width: 8.06667rem; + height: 11.5rem; + margin: 1.38667rem auto 0; + overflow-y: scroll; +} + +.rule .rule_in .rulebox::-webkit-scrollbar { + display: none; +} + +.rule .rule_in .rulebox img { + display: block; + width: 100%; +} diff --git a/view/peko/activity/2024-goddessesDay/css/index.scss b/view/peko/activity/2024-goddessesDay/css/index.scss new file mode 100644 index 0000000..81f5a62 --- /dev/null +++ b/view/peko/activity/2024-goddessesDay/css/index.scss @@ -0,0 +1,506 @@ +@function px2rem($px) { + @return $px / 75+rem; +} + +html, +body { + width: 100%; + background: #FBABAD; +} + +// 返回按钮 +.back { + position: fixed; + top: px2rem(70); + left: px2rem(34); + z-index: 99; + width: px2rem(62); + height: px2rem(62); + + img { + width: 100%; + height: 100%; + } + + p { + color: #fff; + font-size: px2rem(32); + position: absolute; + width: 9rem; + left: 0; + top: 0; + height: 100%; + text-align: center; + line-height: px2rem(62); + } +} + +.header { + width: px2rem(750); + height: px2rem(1092); + background: url(../images/header.png) no-repeat; + background-size: 100% 100%; + position: relative; + margin: 0 auto px2rem(18); + + .rule_icon { + width: px2rem(86); + height: px2rem(255); + position: absolute; + right: px2rem(0); + top: px2rem(469); + } +} + +.tabBox { + width: px2rem(575); + height: px2rem(85); + margin: 0 auto px2rem(17); + display: flex; + justify-content: space-between; + + div { + width: px2rem(269); + } + + .tab1 { + background: url(../images/tab1.png) no-repeat; + background-size: 100% 100%; + } + + .tab2 { + background: url(../images/tab2.png) no-repeat; + background-size: 100% 100%; + } + + .tabAct1 { + background: url(../images/tabAct1.png) no-repeat; + background-size: 100% 100%; + } + + .tabAct2 { + background: url(../images/tabAct2.png) no-repeat; + background-size: 100% 100%; + } +} + +.page1 { + // display: none; + width: px2rem(708); + height: px2rem(1395); + margin: 0 auto px2rem(26); + background: url(../images/page1Bg.png) no-repeat; + background-size: 100% 100%; +} + +.page2 { + display: none; + width: px2rem(708); + height: px2rem(1382); + background: url(../images/page2Bg.png) no-repeat; + background-size: 100% 100%; + margin: 0 auto px2rem(155); + overflow: hidden; + + .tablist { + width: px2rem(368); + height: px2rem(53); + display: flex; + justify-content: space-between; + margin: px2rem(38) auto px2rem(70); + background: url(../images/tabListBg.png) no-repeat; + background-size: 100% 100%; + + div { + width: px2rem(184); + height: px2rem(53); + line-height: px2rem(53); + color: #FFFFFF; + font-size: px2rem(29); + font-weight: 500; + text-align: center; + } + + .act { + background: url(../images/tabListAct.png) no-repeat; + background-size: 100% 100%; + } + } + + .top3Box { + width: px2rem(625); + height: px2rem(235); + position: relative; + margin: 0 auto px2rem(25); + + .no1 { + width: px2rem(205); + height: px2rem(262); + background: url(../images/no1Bg.png) no-repeat; + background-size: 100% 100%; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 0; + + .ts { + width: px2rem(117); + height: px2rem(119); + z-index: 2; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(147); + } + + .tx { + width: px2rem(91); + height: px2rem(91); + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(158); + border-radius: 50%; + } + + .name { + width: 100%; + //超出省略号 + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + color: #AE3E4E; + font-size: px2rem(23); + font-weight: 500; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(104); + text-align: center; + } + + p { + width: 100%; + color: #AE3E4E; + font-size: px2rem(20); + font-weight: 400; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(53); + text-align: center; + } + + .score { + width: 100%; + color: #fff; + font-size: px2rem(20); + font-weight: 400; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(18); + text-align: center; + } + } + + .no2 { + width: px2rem(205); + height: px2rem(235); + background: url(../images/no23Bg.png) no-repeat; + background-size: 100% 100%; + position: absolute; + left: 0%; + bottom: 0; + + .ts { + width: px2rem(117); + height: px2rem(119); + z-index: 2; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(129); + } + + .tx { + width: px2rem(91); + height: px2rem(91); + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(142); + border-radius: 50%; + } + + .name { + width: 100%; + //超出省略号 + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + color: #AE3E4E; + font-size: px2rem(23); + font-weight: 500; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(95); + text-align: center; + } + + p { + width: 100%; + color: #AE3E4E; + font-size: px2rem(20); + font-weight: 400; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(54); + text-align: center; + } + + .score { + width: 100%; + color: #fff; + font-size: px2rem(20); + font-weight: 400; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(20); + text-align: center; + } + } + + .no3 { + width: px2rem(205); + height: px2rem(235); + background: url(../images/no23Bg.png) no-repeat; + background-size: 100% 100%; + position: absolute; + right: 0%; + bottom: 0; + + .ts { + width: px2rem(117); + height: px2rem(119); + z-index: 2; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(129); + } + + .tx { + width: px2rem(91); + height: px2rem(91); + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(142); + border-radius: 50%; + } + + .name { + width: 100%; + //超出省略号 + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + color: #AE3E4E; + font-size: px2rem(23); + font-weight: 500; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(95); + text-align: center; + } + + p { + width: 100%; + color: #AE3E4E; + font-size: px2rem(20); + font-weight: 400; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(54); + text-align: center; + } + + .score { + width: 100%; + color: #fff; + font-size: px2rem(20); + font-weight: 400; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: px2rem(20); + text-align: center; + } + } + } + + ul { + width: px2rem(695); + height: 12.6rem; + overflow-y: scroll; + margin: 0 auto 0; + + &::-webkit-scrollbar { + display: none; + } + + li { + width: 100%; + height: px2rem(115); + background: url(../images/liBg.png) no-repeat; + background-size: 100% 100%; + margin-bottom: px2rem(2); + + .num { + width: px2rem(35); + height: px2rem(115); + line-height: px2rem(115); + color: #AE3E4E; + font-size: px2rem(30); + font-weight: 400; + margin-left: px2rem(29); + text-align: center; + margin-right: px2rem(45); + float: left; + } + + .tx { + width: px2rem(87); + height: px2rem(87); + border-radius: 50%; + border: px2rem(2) solid #AE3E4E; + margin-top: px2rem(15); + margin-right: px2rem(28); + display: block; + float: left; + } + + .name { + width: 3rem; + height: px2rem(115); + line-height: px2rem(115); + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + color: #AE3E4E; + font-size: px2rem(27); + float: left; + } + + .score { + float: right; + height: px2rem(115); + line-height: px2rem(115); + color: #AE3E4E; + font-weight: 400; + margin-right: px2rem(42); + } + } + } + + .my { + position: fixed; + width: px2rem(750); + height: px2rem(155); + background: url(../images/my.png) no-repeat; + background-size: 100% 100%; + margin-bottom: px2rem(2); + left: 0; + bottom: 0; + + .num { + width: px2rem(100); + height: px2rem(155); + line-height: px2rem(155); + color: #AE3E4E; + font-size: px2rem(30); + font-weight: 400; + margin-left: px2rem(29); + text-align: center; + margin-right: px2rem(19); + float: left; + } + + .tx { + width: px2rem(87); + height: px2rem(87); + border-radius: 50%; + border: px2rem(2) solid #AE3E4E; + margin-top: px2rem(32); + margin-right: px2rem(28); + display: block; + float: left; + } + + .name { + width: 3rem; + height: px2rem(155); + line-height: px2rem(155); + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + color: #AE3E4E; + font-size: px2rem(27); + float: left; + } + + .score { + float: right; + height: px2rem(155); + line-height: px2rem(155); + color: #AE3E4E; + font-weight: 400; + margin-right: px2rem(42); + } + } +} + +.rule { + display: none; + position: fixed; + left: 0; + top: 0; + bottom: 0; + right: 0; + z-index: 999; + background: rgba(0, 0, 0, .6); + + .rule_in { + width: px2rem(657); + height: px2rem(985); + background: url(../images/ruleBg.png) no-repeat; + background-size: 100% 100%; + overflow: hidden; + position: relative; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + + .rulebox { + width: px2rem(605); + height: 11.5rem; + margin: px2rem(104) auto 0; + overflow-y: scroll; + + &::-webkit-scrollbar { + display: none; + } + + img { + display: block; + width: 100%; + } + } + } +} \ No newline at end of file diff --git a/view/peko/activity/2024-goddessesDay/images/header.png b/view/peko/activity/2024-goddessesDay/images/header.png new file mode 100644 index 0000000..e9b7bb2 Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/header.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/liBg.png b/view/peko/activity/2024-goddessesDay/images/liBg.png new file mode 100644 index 0000000..aed3ec0 Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/liBg.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/logo.png b/view/peko/activity/2024-goddessesDay/images/logo.png new file mode 100644 index 0000000..cbdc951 Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/logo.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/my.png b/view/peko/activity/2024-goddessesDay/images/my.png new file mode 100644 index 0000000..0207a01 Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/my.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/no1.png b/view/peko/activity/2024-goddessesDay/images/no1.png new file mode 100644 index 0000000..74768ca Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/no1.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/no1Bg.png b/view/peko/activity/2024-goddessesDay/images/no1Bg.png new file mode 100644 index 0000000..d436bb4 Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/no1Bg.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/no2.png b/view/peko/activity/2024-goddessesDay/images/no2.png new file mode 100644 index 0000000..9e6c2ee Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/no2.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/no23Bg.png b/view/peko/activity/2024-goddessesDay/images/no23Bg.png new file mode 100644 index 0000000..a8a76a5 Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/no23Bg.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/no3.png b/view/peko/activity/2024-goddessesDay/images/no3.png new file mode 100644 index 0000000..9cb4704 Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/no3.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/page1Bg.png b/view/peko/activity/2024-goddessesDay/images/page1Bg.png new file mode 100644 index 0000000..f607c7d Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/page1Bg.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/page2Bg.png b/view/peko/activity/2024-goddessesDay/images/page2Bg.png new file mode 100644 index 0000000..8146f3d Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/page2Bg.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/rule.png b/view/peko/activity/2024-goddessesDay/images/rule.png new file mode 100644 index 0000000..4633a3a Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/rule.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/ruleBg.png b/view/peko/activity/2024-goddessesDay/images/ruleBg.png new file mode 100644 index 0000000..53c72dc Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/ruleBg.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/rule_icon.png b/view/peko/activity/2024-goddessesDay/images/rule_icon.png new file mode 100644 index 0000000..798d2cb Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/rule_icon.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/tab1.png b/view/peko/activity/2024-goddessesDay/images/tab1.png new file mode 100644 index 0000000..9974e5a Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/tab1.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/tab2.png b/view/peko/activity/2024-goddessesDay/images/tab2.png new file mode 100644 index 0000000..bcb5bf9 Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/tab2.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/tabAct1.png b/view/peko/activity/2024-goddessesDay/images/tabAct1.png new file mode 100644 index 0000000..a8c9efb Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/tabAct1.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/tabAct2.png b/view/peko/activity/2024-goddessesDay/images/tabAct2.png new file mode 100644 index 0000000..d0fc045 Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/tabAct2.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/tabListAct.png b/view/peko/activity/2024-goddessesDay/images/tabListAct.png new file mode 100644 index 0000000..8bdfad8 Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/tabListAct.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/tabListBg.png b/view/peko/activity/2024-goddessesDay/images/tabListBg.png new file mode 100644 index 0000000..400e247 Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/tabListBg.png differ diff --git a/view/peko/activity/2024-goddessesDay/images/travel/back.png b/view/peko/activity/2024-goddessesDay/images/travel/back.png new file mode 100644 index 0000000..7b81adb Binary files /dev/null and b/view/peko/activity/2024-goddessesDay/images/travel/back.png differ diff --git a/view/peko/activity/2024-goddessesDay/index.html b/view/peko/activity/2024-goddessesDay/index.html new file mode 100644 index 0000000..8f5c257 --- /dev/null +++ b/view/peko/activity/2024-goddessesDay/index.html @@ -0,0 +1,101 @@ + + + + + + + 女神請就位 + + + + + + +
+ +
+ + +
+ +
+ + +
+
+
+
+ + +
+ + +
+ +
+
守護榜
+
女神榜
+
+ +
+
+ + +
用戶昵稱
+

守護榜

+
0
+
+
+ + +
用戶昵稱
+

守護榜

+
0
+
+
+ + +
用戶昵稱
+

守護榜

+
0
+
+
+ + + + + +
+
未上榜
+ +
用戶昵稱
+
守護榜:0
+
+
+ + +
+
+
+ +
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/view/peko/activity/2024-goddessesDay/js/index.js b/view/peko/activity/2024-goddessesDay/js/index.js new file mode 100644 index 0000000..8dbe00a --- /dev/null +++ b/view/peko/activity/2024-goddessesDay/js/index.js @@ -0,0 +1,140 @@ +let urlPrefix = getUrlPrefix() +let browser = checkVersion() +let env = EnvCheck(); +if (env == 'test') { + new VConsole(); +} +// 封裝layer消息提醒框 +let layerIndex +const showLoading = (content = '加載中...') => { + layer.open({ + type: 2, + shadeClose: false, + content, + success (e) { + layerIndex = $(e).attr('index') + } + }) +} +const hideLoading = (index) => { + layer.close(index) +} +const toastMsg = (content = '操作完成', time = 2) => { + layer.open({ + content, + time, + skin: 'msg' + }) +} +var rankType = 2; +// 初始化函數 +$(function () { + getInfoFromClient() + setTimeout(function () { + // 頁面全屏 + if (browser.app) { + if (browser.android) { + window.androidJsObj.initShowNav(false) + } else { + window.webkit.messageHandlers.initShowNav.postMessage(0) + } + }; + // 頂部返回事件 + $('.back').click(() => { + if (browser.android) { + window.androidJsObj.closeWebView() + } else { + window.webkit.messageHandlers.closeWebView.postMessage(null) + } + }) + }, 100) +}) + +// 獲取榜單接口 +function getRank () { + showLoading() + networkRequest({ + type: 'get', + url: urlPrefix + '/act/special/gift/getRank', + data: { + rankType, + pageSize: 30 + }, + success (res) { + if (res.code === 200) { + // 處理前三 + var top3 = res.data.rankList.slice(0, 3); + var notTop3 = res.data.rankList.slice(3); + if (top3.length < 3) { + let arr = new Array(3 - top3.length).fill({ + avatar: './images/logo.png', + nick: '虛位以待', + score: "0", + }) + top3.push(...arr) + } + top3.forEach((res, i) => { + $(`.page2 .top3Box .no${i} .tx`).attr('src', res.avatar); + $(`.page2 .top3Box .no${i} .name`).text(res.nick); + $(`.page2 .top3Box .no${i} p`).text(`${rankType == 2 ? "守護值" : "女神值"}`); + $(`.page2 .top3Box .no${i} .score`).text(unitProcessing(res.score, 10000, 1, 'w')); + }) + // 非前三 + $('.page2 ul li').remove(); + var str = ''; + notTop3.forEach((res, i) => { + str += ` +
  • +
    ${res.ranking}
    + +
    ${res.nick}
    +
    ${rankType == 2 ? "守護值" : "女神值"}:${unitProcessing(res.score, 10000, 1, 'w')}
    +
  • + ` + }) + $('.page2 ul li').append(str); + // 處理自己榜單 + $('.page2 .my .num').text(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking); + $('.page2 .my .tx').attr('src', res.data.meRank.avatar); + $('.page2 .my .name').text(res.data.meRank.nick); + $('.page2 .my .score').text(`${rankType == 2 ? "守護值:" : "女神值:"}${unitProcessing(res.data.meRank.score, 10000, 1, 'w')}`); + } else { + toastMsg(res.message) + } + hideLoading(layerIndex) + }, + error (err) { + hideLoading(layerIndex) + toastMsg('網路錯誤,請退出重進') + } + }) +} + +// tab切換 +$('.tabBox div').click(function () { + var i = $(this).index() + 1; + $('.tabBox div').removeClass('tabAct1').removeClass('tabAct2'); + $(this).addClass(`tabAct${i}`); + $('.page1,.page2').hide(); + $(`.page${i}`).show(); + if (i == 2) { + getRank(); + } +}) +$('.page2 .tablist div').click(function () { + var i = $(this).index() + 1; + $(this).addClass('act').siblings().removeClass('act'); + rankType = i == 1 ? 2 : 4; + getRank(); +}) + +// 打開規則 +$('.header .rule_icon').click(function () { + $('.rule').show(); + bodyScroolFun(true); +}) +// 關閉規則 +$('.rule').click(function () { + $('.rule').hide(); + bodyScroolFun(false); +}) \ No newline at end of file