新增疯狂动物园

This commit is contained in:
Dragon
2024-03-08 15:21:20 +08:00
parent 309dc6097a
commit 00c8f39c48
37 changed files with 90 additions and 83 deletions

View File

@@ -1,7 +1,7 @@
body,
html {
width: 100%;
background: #CE3346;
background: #7BC4C6;
position: relative;
box-sizing: border-box;
padding-bottom: 1.6rem;
@@ -73,40 +73,40 @@ html {
.box {
width: 9.58667rem;
height: 9.90667rem;
height: 10.28rem;
border-radius: 0.53333rem;
border: 0.16rem solid #FBC577;
border: 0.16rem solid #669900;
box-sizing: border-box;
background: #8B4621;
background: #CCCC00;
margin: -2.1rem auto 0;
position: relative;
}
.box .boxTitle {
width: 5.30667rem;
height: 0.92rem;
width: 4.89333rem;
height: 1rem;
background: url(../images/boxTitle.png) no-repeat;
background-size: 100% 100%;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: -1rem;
top: -0.4rem;
text-align: center;
line-height: 0.92rem;
line-height: 1.15rem;
color: #FFFFFF;
font-size: 0.34667rem;
}
.box .boxTitle b {
font-weight: bold;
font-size: 0.53333rem;
font-size: 0.4rem;
line-height: 0.93333rem;
}
.box .tab {
width: 8.8rem;
height: 1.26667rem;
margin: 0.36rem auto 0;
margin: 0.90667rem auto 0;
display: flex;
justify-content: space-between;
}
@@ -169,8 +169,8 @@ html {
}
.box .box_in .sBox .sBox1 img {
width: 1.6rem;
height: 1.6rem;
width: 1.97333rem;
height: 1.97333rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
@@ -376,9 +376,9 @@ html {
.resultText {
width: 9.52rem;
height: 1.14667rem;
height: 1.48rem;
position: relative;
margin: -0.2rem auto 0.1rem;
margin: -0.3rem auto 0.1rem;
background: url(../images/resultText.png) no-repeat;
background-size: 100% 100%;
}
@@ -418,7 +418,7 @@ h3 b {
color: #FFFFFF;
font-size: 0.32rem;
box-sizing: border-box;
background: #BD7F38;
background: #336600;
border-radius: 0.74667rem;
margin-top: 0.48rem;
border: 1px solid #FBF6F2;
@@ -800,6 +800,7 @@ h3 b {
.shade-mask .shade-content main div .jietu.t3 {
height: 4.2rem;
margin-bottom: 2rem;
}
.shade-mask-rank {
@@ -932,7 +933,7 @@ h3 b {
height: 7rem;
padding: 0.4rem 0.26667rem 0;
box-sizing: border-box;
margin-top: 0.25rem;
margin-top: 0.35rem;
}
.shade-mask-rank .shade-content-rank .other-rank li {

View File

@@ -5,7 +5,7 @@
body,
html {
width: 100%;
background: #CE3346;
background: #7BC4C6;
position: relative;
box-sizing: border-box;
padding-bottom: px2rem(120);
@@ -77,33 +77,33 @@ html {
.box {
width: px2rem(719);
height: px2rem(743);
height: px2rem(771);
border-radius: px2rem(40);
border: px2rem(12) solid #FBC577;
border: px2rem(12) solid #669900;
box-sizing: border-box;
background: #8B4621;
background: #CCCC00;
margin: -2.1rem auto 0;
position: relative;
// display: none;
// overflow: hidden;
.boxTitle {
width: px2rem(398);
height: px2rem(69);
width: px2rem(367);
height: px2rem(75);
background: url(../images/boxTitle.png) no-repeat;
background-size: 100% 100%;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: -1rem;
top: -0.4rem;
text-align: center;
line-height: px2rem(69);
line-height: 1.15rem;
color: #FFFFFF;
font-size: px2rem(26);
b {
font-weight: bold;
font-size: px2rem(40);
font-size: px2rem(30);
line-height: px2rem(70);
}
}
@@ -111,7 +111,7 @@ html {
.tab {
width: px2rem(660);
height: px2rem(95);
margin: px2rem(27) auto 0;
margin: px2rem(68) auto 0;
display: flex;
justify-content: space-between;
@@ -171,8 +171,8 @@ html {
top: 0.7rem;
img {
width: px2rem(120);
height: px2rem(120);
width: px2rem(148);
height: px2rem(148);
position: absolute;
left: 50%;
transform: translateX(-50%);
@@ -384,9 +384,9 @@ html {
.resultText {
width: px2rem(714);
height: px2rem(86);
height: px2rem(111);
position: relative;
margin: -0.2rem auto 0.1rem;
margin: -0.3rem auto 0.1rem;
background: url(../images/resultText.png) no-repeat;
background-size: 100% 100%;
}
@@ -425,7 +425,7 @@ h3 {
color: #FFFFFF;
font-size: px2rem(24);
box-sizing: border-box;
background: #BD7F38;
background: #336600;
border-radius: px2rem(56);
margin-top: px2rem(36);
border: 1px solid #FBF6F2;
@@ -807,6 +807,7 @@ h3 {
&.t3 {
// height: px2rem(301);
height: 4.2rem;
margin-bottom: 2rem;
}
}
}
@@ -953,7 +954,7 @@ h3 {
// background-color: white;
padding: px2rem(30) px2rem(20) 0;
box-sizing: border-box;
margin-top: 0.25rem;
margin-top: 0.35rem;
li {
width: 90%;

View File

@@ -19,7 +19,7 @@
html,
body {
width: 100%;
background: linear-gradient(0deg, #E6AD6A 0%, #F9CA92 100%);
background: linear-gradient(0deg, #669900 0%, #A1D33E 100%);
}
.img {
@@ -71,11 +71,10 @@ body {
width: 90%;
height: 0.58667rem;
line-height: 0.58667rem;
background: #F46331;
display: flex;
box-sizing: border-box;
padding: 0 0.26667rem;
margin: 0.2rem auto 0;
margin: 0.35rem auto 0;
}
.record-list li .goldBox p {
@@ -115,10 +114,10 @@ body {
left: 50%;
transform: translateX(-50%);
width: 1.90667rem;
height: 0.6rem;
background: url(../images/record/result.png) no-repeat;
background-size: 100% 100%;
top: 0.2rem;
text-align: center;
top: -0.1rem;
font-weight: bold;
font-size: 0.4rem;
}
.record-list li .result-wrap .award {
@@ -182,13 +181,12 @@ body {
font-weight: 600;
margin-right: 0.9rem;
position: absolute;
width: 1.02667rem;
height: 0.6rem;
left: 50%;
transform: translateX(-50%);
background: url(../images/record/touru.png) no-repeat;
background-size: 100% 100%;
top: -0.6rem;
top: -1rem;
text-align: center;
font-size: 0.4rem;
font-weight: bold;
}
.record-list li .put-wrap .list {

View File

@@ -1,5 +1,5 @@
@function px2rem($px, $rem: 75) {
@return $px / $rem+rem;
@function px2rem($px) {
@return $px / 75+rem;
}
// @function prefixurl() {
@@ -33,7 +33,8 @@
html,
body {
width: 100%;
background: linear-gradient(0deg, #E6AD6A 0%, #F9CA92 100%);
background: linear-gradient(0deg, #669900 0%, #A1D33E 100%);
// background: #A1D33E;
}
.img {
@@ -85,12 +86,12 @@ body {
width: 90%;
height: px2rem(44 );
line-height: px2rem(44 );
background: #F46331;
// background: #F46331;
display: flex;
// justify-content: space-between;
box-sizing: border-box;
padding: 0 px2rem(20 );
margin: 0.2rem auto 0;
margin: 0.35rem auto 0;
p {
color: #fff;
@@ -133,10 +134,13 @@ body {
left: 50%;
transform: translateX(-50%);
width: px2rem(143 );
height: px2rem(45 );
background: url(../images/record/result.png) no-repeat;
background-size: 100% 100%;
top: 0.2rem;
text-align: center;
// height: px2rem(45 );
// background: url(../images/record/result.png) no-repeat;
// background-size: 100% 100%;
top: -0.1rem;
font-weight: bold;
font-size: px2rem(30);
}
// .bg {
@@ -217,13 +221,16 @@ body {
font-weight: 600;
margin-right: 0.9rem;
position: absolute;
width: px2rem(77 );
height: px2rem(45 );
// width: px2rem(77 );
// height: px2rem(45 );
left: 50%;
transform: translateX(-50%);
background: url(../images/record/touru.png) no-repeat;
background-size: 100% 100%;
top: -0.6rem;
// background: url(../images/record/touru.png) no-repeat;
// background-size: 100% 100%;
top: -1rem;
text-align: center;
font-size: px2rem(30);
font-weight: bold;
}
.list {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 273 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 774 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

@@ -5,19 +5,19 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>星級廚房</title>
<title>瘋狂動物園</title>
<link rel="stylesheet" href="../../common/css/reset.css">
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="./css/index.css?v=1.0">
</head>
<body>
<!-- 頭部 -->
<div class="header">
<img src="./images/headerText.png" alt="" class="headerText">
<!-- <img src="./images/headerText.png" alt="" class="headerText"> -->
<img src="./images/rule_icon.png" alt="" class="rule_icon">
<img src="./images/record_icon.png" alt="" class="record_icon">
<img src="./images/rank_icon.png" alt="" class="rank_icon">
<div class="headerH3">選擇鉆石 > 選擇圖標</div>
<!-- <div class="headerH3">選擇鉆石 > 選擇圖標</div> -->
</div>
<!-- 食材大盒子 -->
<div class="box">
@@ -33,11 +33,11 @@
</div>
<div>
<img src="./images/Bdiamond.png" alt="">
<b>1000</b>
<b>500</b>
</div>
<div>
<img src="./images/Bdiamond.png" alt="">
<b>10000</b>
<b>5000</b>
</div>
</dib>
<!-- 食材列錶 -->
@@ -251,20 +251,20 @@
<main>
<div class="cyfs">
<p class="title">參與方式</p>
用戶可通過花費鉆石參與《星級廚房》遊戲,每次最少消耗100每回合時間30秒
玩家可通過石參與《瘋狂動物園》遊戲,每次最少需花費100石,每回合時間30秒
<p class="jietu"><img src="./images/t1.png" alt=""></p>
</div>
<div class="lwff">
<p class="title">禮物發放</p>
每次參與遊戲後獲得一次禮物開獎;
每次參與遊戲後獲得一次禮物開獎;
<p class="jietu t2"><img src="./images/t2.png" alt=""></p>
每次隨機從8種食材中選取一個或多個作為中獎食材,中獎後獲得(中獎物品所花費的石數*中獎食材對應倍數)的石獎勵,當中獎多個食材時,獲得的鉆石會同時發放。鉆石將直接發放到賬戶中。
每次隨機從8種小動物種選取一個作為中獎食材,中獎後獲得(中獎物品所花費的石數*中獎小動物對應倍數)的石獎勵,石將直接發放到賬戶中。
<p class="jietu t3"><img src="./images/t3.png" alt=""></p>
例如購買1個5倍番茄花費100購買1個蘿蔔花費100鉆,中獎後獲得100*5+100*5=1000鉆
例如購買1個5倍大象花費100中獎後獲得100*5的鑽石
</div>
<div class="qtsm">
<p class="title">其他說明</p>
如果以上說明未能解答您的疑問,請聯客服,會有專人解答疑難
如果以上說明未能解答您的疑問,請聯客服,會有專人解答疑難
<p>本活動以及活動獎勵與Google/蘋果公司無關</p>
</div>
</main>
@@ -321,4 +321,4 @@
<script src="../../common/js/vconsole.min.js"></script>
<script src="../../common/js/svga.min.js"></script>
<script src="./js/wow.js"></script>
<script src="./js/index.js"></script>
<script src="./js/index.js?v=1.0"></script>

View File

@@ -125,7 +125,7 @@ function getNewestAct () {
res.data.drawItemList.forEach(res => {
str += `
<li>
<img src="${res.drawName == '洋蔥' ? './images/1.png' : res.drawName == '番茄' ? './images/2.png' : res.drawName == '蘑菇' ? './images/3.png' : res.drawName == '土豆' ? './images/4.png' : res.drawName == '大閘蟹' ? './images/5.png' : res.drawName == '' ? './images/6.png' : res.drawName == '雞肉' ? './images/7.png' : res.drawName == '龍蝦' ? './images/8.png' : res.drawImageUrl}" alt="">
<img src="${res.drawName == '大象' ? './images/1.png' : res.drawName == '斑馬' ? './images/2.png' : res.drawName == '河馬' ? './images/3.png' : res.drawName == '考拉' ? './images/4.png' : res.drawName == '狐貍' ? './images/5.png' : res.drawName == '豹子' ? './images/6.png' : res.drawName == '老虎' ? './images/7.png' : res.drawName == '獅子' ? './images/8.png' : res.drawImageUrl}" alt="">
<div class="name">${res.drawName}</div>
</li>
`
@@ -217,7 +217,7 @@ function listItem (roundId) {
$(`.box .box_in .item${i + 1} .sBox1 `).removeClass('sBox_active');
}
$(`.box .box_in .item${i + 1}`).attr('id', res.id);
$(`.box .box_in .item${i + 1} .sBox1 img`).attr('src', res.name == '洋蔥' ? './images/1.png' : res.name == '番茄' ? './images/2.png' : res.name == '蘑菇' ? './images/3.png' : res.name == '土豆' ? './images/4.png' : res.name == '大閘蟹' ? './images/5.png' : res.name == '' ? './images/6.png' : res.name == '雞肉' ? './images/7.png' : res.name == '龍蝦' ? './images/8.png' : res.imgUrl);
$(`.box .box_in .item${i + 1} .sBox1 img`).attr('src', res.name == '大象' ? './images/1.png' : res.name == '斑馬' ? './images/2.png' : res.name == '河馬' ? './images/3.png' : res.name == '考拉' ? './images/4.png' : res.name == '狐貍' ? './images/5.png' : res.name == '豹子' ? './images/6.png' : res.name == '老虎' ? './images/7.png' : res.name == '獅子' ? './images/8.png' : res.imgUrl);
$(`.box .box_in .item${i + 1} .qp p b`).text(res.costPieceNum == 0 ? '' : res.costPieceNum);
$(`.box .box_in .item${i + 1} .bei`).text('x' + res.multiple);
$(`.box .box_in .item${i + 1} .SboxText`).text(res.name);
@@ -246,14 +246,14 @@ function listLuckySeaActInfo (roundId) {
if (res.code === 200) {
res.data.forEach((res, i) => {
if (res.drawItemList.length > 1) {
if (res.drawName == '葷菜狂歡') {
$(`.resultOut .sqp_in${i + 1} `).attr('src', './images/rou.png');
} else {
if (res.drawName == '素食狂歡') {
$(`.resultOut .sqp_in${i + 1} `).attr('src', './images/su.png');
} else {
$(`.resultOut .sqp_in${i + 1} `).attr('src', './images/rou.png');
}
} else {
// $(`.resultOut .sqp_in${i + 1} `).attr('src', res.drawItemList[0].drawImageUrl);
$(`.resultOut .sqp_in${i + 1} `).attr('src', res.drawItemList[0].drawName == '洋蔥' ? './images/1.png' : res.drawItemList[0].drawName == '番茄' ? './images/2.png' : res.drawItemList[0].drawName == '蘑菇' ? './images/3.png' : res.drawItemList[0].drawName == '土豆' ? './images/4.png' : res.drawItemList[0].drawName == '大閘蟹' ? './images/5.png' : res.drawItemList[0].drawName == '' ? './images/6.png' : res.drawItemList[0].drawName == '雞肉' ? './images/7.png' : res.drawItemList[0].drawName == '龍蝦' ? './images/8.png' : res.drawItemList[0].drawImageUrl);
$(`.resultOut .sqp_in${i + 1} `).attr('src', res.drawItemList[0].drawName == '大象' ? './images/1.png' : res.drawItemList[0].drawName == '斑馬' ? './images/2.png' : res.drawItemList[0].drawName == '河馬' ? './images/3.png' : res.drawItemList[0].drawName == '考拉' ? './images/4.png' : res.drawItemList[0].drawName == '狐貍' ? './images/5.png' : res.drawItemList[0].drawName == '豹子' ? './images/6.png' : res.drawItemList[0].drawName == '老虎' ? './images/7.png' : res.drawItemList[0].drawName == '獅子' ? './images/8.png' : res.drawItemList[0].drawImageUrl);
}
});
$('.resultOut .sqp_in').show();
@@ -272,7 +272,7 @@ function listLuckySeaActInfo (roundId) {
$('.box .tab div').click(function () {
var i = $(this).index() + 1;
$(this).addClass('active').siblings().removeClass('active');
gearPosition = i == 1 ? 100 : i == 2 ? 1000 : 10000;
gearPosition = i == 1 ? 100 : i == 2 ? 500 : 5000;
})
// 抽獎接口
function draw (itemId, tais) {

View File

@@ -92,7 +92,7 @@ $(function () {
</div>
<div class="result-wrap">
<div class="result">
<span></span>
<span>本輪結果</span>
</div>
<div class="award">
<p>獎勵:</p>
@@ -106,7 +106,7 @@ $(function () {
</div>
</div>
<div class="put-wrap">
<div class="put"></div>
<div class="put">投入</div>
<div class="list">
</div>

View File

@@ -1,6 +1,6 @@
var baba = document.querySelector('body');
baba.addEventListener('click', function (e) {
$('body,html').css({ "width": "100%", "position": "relative", "overflow": "hidden" });
// $('body,html').css({ "width": "100%", "position": "relative", "overflow": "hidden" });
tianJia(e);
})
@@ -42,5 +42,5 @@ function move () {
}
window.requestAnimationFrame(move);
$('body,html').css({ "width": "100%", "position": "relative", "overflow": "auto" });
// $('body,html').css({ "width": "100%", "position": "relative", "overflow": "auto" });
}

View File

@@ -8,7 +8,7 @@
<title>游戏记录</title>
<link rel="stylesheet" href="../../common/css/reset.css">
<link rel="stylesheet" href="./css/record.css">
<link rel="stylesheet" href="./css/record.css?v=1.0">
</head>
<body>
@@ -140,7 +140,7 @@
<script src="../../common/js/common2.js"></script>
<script src="../../common/js/layer.js"></script>
<script src="../../common/js/vconsole.min.js"></script>
<script src="./js/record.js"></script>
<script src="./js/record.js?v=1.0"></script>
</body>
</html>