Compare commits
30 Commits
luckGiftTe
...
level
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2f1580d3ad | ||
![]() |
b9873129a0 | ||
![]() |
3be5b8be3f | ||
![]() |
cbaf037639 | ||
![]() |
50e3dbdac2 | ||
![]() |
351b765a2f | ||
![]() |
4398609357 | ||
![]() |
c68e4d0bd6 | ||
![]() |
2c217ce96f | ||
![]() |
39c671bc0b | ||
![]() |
7f5830db5d | ||
![]() |
b0bf61e016 | ||
![]() |
276b62cd8e | ||
![]() |
2e76b126e4 | ||
![]() |
4f0319bad9 | ||
![]() |
587f734d73 | ||
![]() |
2add7ad28d | ||
![]() |
8c25615b23 | ||
![]() |
181a2f2d8e | ||
![]() |
b9e57669de | ||
![]() |
64c0c225f2 | ||
![]() |
d3faf40e1c | ||
![]() |
9d73cc60a8 | ||
![]() |
f9683b475f | ||
![]() |
e846176ed4 | ||
![]() |
46c17a53dc | ||
![]() |
19c56fb540 | ||
![]() |
d80c61f127 | ||
![]() |
b1807e8f52 | ||
![]() |
4848b27c51 |
1765
view/yinmeng/activity/2023-halloween/css/index.css
Normal file
1814
view/yinmeng/activity/2023-halloween/css/index.scss
Normal file
13
view/yinmeng/activity/2023-halloween/css/swiper-bundle.min.css
vendored
Normal file
BIN
view/yinmeng/activity/2023-halloween/images/Pub_qp.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/active.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/active1.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/active2.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/alltask.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/box1.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/box2.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/box3.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/boxBig1.svga
Normal file
BIN
view/yinmeng/activity/2023-halloween/images/boxBig2.svga
Normal file
BIN
view/yinmeng/activity/2023-halloween/images/boxBig3.svga
Normal file
BIN
view/yinmeng/activity/2023-halloween/images/boxOpen1.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/boxOpen2.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/boxOpen3.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/boxText.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/box_pub.png
Normal file
After Width: | Height: | Size: 239 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/box_pubGift1.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/box_pubGift2.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/box_pubGift3.png
Normal file
After Width: | Height: | Size: 84 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/box_pub_Title1.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/box_pub_Title2.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/box_pub_Title3.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/box_pub_ul_liBg.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/candyTitle.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/dayTab.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/dayTabActive.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/dayTask.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/dice0.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/dice1.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/dice2.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/dice3.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/dice4.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/dice5.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/dice6.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/diceBox.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/diceLeftBut.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/diceQP.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/diceRightBut.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/gift1.png
Normal file
After Width: | Height: | Size: 99 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/gift2.png
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/giftBox.png
Normal file
After Width: | Height: | Size: 97 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/gui.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/gxBg.png
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/header.png
Normal file
After Width: | Height: | Size: 159 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/line.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/listRuleBg.png
Normal file
After Width: | Height: | Size: 837 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/listRuleText1.png
Normal file
After Width: | Height: | Size: 437 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/listRuleText2.png
Normal file
After Width: | Height: | Size: 442 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/listRuletitle1.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/listRuletitle2.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/listTitle1.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/listTitle2.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/logo.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/no1.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/no2.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/no3.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/noBg1.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/noBg2.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/noBg3.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/openBox1.svga
Normal file
BIN
view/yinmeng/activity/2023-halloween/images/openBox2.svga
Normal file
BIN
view/yinmeng/activity/2023-halloween/images/openBox3.svga
Normal file
BIN
view/yinmeng/activity/2023-halloween/images/page1.png
Normal file
After Width: | Height: | Size: 220 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/page2.png
Normal file
After Width: | Height: | Size: 91 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/page3.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/pubBut.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/qp.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/record_box.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/road.png
Normal file
After Width: | Height: | Size: 91 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/rule_bg.png
Normal file
After Width: | Height: | Size: 98 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/rule_icon.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/rule_iconList.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/sz.svga
Normal file
BIN
view/yinmeng/activity/2023-halloween/images/tab1.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/tab2.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/task.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/taskBut.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/taskButActive.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/taskText.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/taskTitle.png
Normal file
After Width: | Height: | Size: 9.6 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/timeActive.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/topBoxBg.png
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/travel/back.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/xx.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
view/yinmeng/activity/2023-halloween/images/zg.png
Normal file
After Width: | Height: | Size: 35 KiB |
351
view/yinmeng/activity/2023-halloween/index.html
Normal file
@@ -0,0 +1,351 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>万圣节嘉年华</title>
|
||||
<link rel="stylesheet" href="../../common/css/reset.css">
|
||||
<link rel="stylesheet" href="./css/swiper-bundle.min.css">
|
||||
<link rel="stylesheet" href="./css/index.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- 顶部返回 -->
|
||||
<div class="back">
|
||||
<img src="./images/travel/back.png" alt="">
|
||||
</div>
|
||||
<!-- 主视觉 -->
|
||||
<div class="header">
|
||||
<div class="rule_icon">活动规则></div>
|
||||
</div>
|
||||
<!-- 万圣节活动礼物 -->
|
||||
<div class="giftBox">
|
||||
<div class="swiper">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide">
|
||||
<img src="./images/gift1.png" alt="">
|
||||
</div>
|
||||
<div class="swiper-slide">
|
||||
<img src="./images/gift2.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- pages1 -->
|
||||
<div class="page1">
|
||||
<!-- 蒙层-->
|
||||
<div class="mc">
|
||||
<div class="mc_in">
|
||||
<p>送出/收到万圣福袋</p>
|
||||
<p class="p2">可解锁玩法</p>
|
||||
<div class="but">去完成</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 页面主切换 -->
|
||||
<div class="tab">
|
||||
<div class="tab tab1 active1"></div>
|
||||
<div class="tab tab2"></div>
|
||||
</div>
|
||||
<!-- 任务玩法切换 -->
|
||||
<div class="switch">
|
||||
<div class="active">万圣地图</div>
|
||||
<div>糖果任务</div>
|
||||
</div>
|
||||
<!-- 我的糖果 -->
|
||||
<div class="myCandy">我的糖果券:0</div>
|
||||
<!-- 气泡 -->
|
||||
<div class="qp">
|
||||
<p>升级宝箱</p>
|
||||
<p>赢限定礼物</p>
|
||||
</div>
|
||||
<!-- 糖果标题 -->
|
||||
<img src="./images/candyTitle.png" alt="" class="candytitle">
|
||||
<!-- 展示宝箱 -->
|
||||
<img src="./images/box3.png" alt="" class="showBox">
|
||||
<!-- 宝箱三个 -->
|
||||
<div class="boxs boxs1"><b>初级宝箱</b></div>
|
||||
<div class="boxs boxs2"><b>中级宝箱</b></div>
|
||||
<div class="boxs boxs3"><b>高级宝箱</b></div>
|
||||
<!-- 宝箱文案 -->
|
||||
<img src="./images/boxText.png" alt="" class="boxText">
|
||||
<!-- 两条线 -->
|
||||
<div class="candyLine1"></div>
|
||||
<div class="candyLine2"></div>
|
||||
<!-- 地图路线 -->
|
||||
<div class="road">
|
||||
<!-- 鬼 -->
|
||||
<img src="./images/gui.png" alt="" class="gui">
|
||||
<!-- 静态宝箱 -->
|
||||
<img src="./images/box1.png" alt="" class="boxImg boxImg1 boxImgs4">
|
||||
<img src="./images/box1.png" alt="" class="boxImg boxImg2 boxImgs8">
|
||||
<img src="./images/box1.png" alt="" class="boxImg boxImg3 boxImgs13">
|
||||
<img src="./images/box1.png" alt="" class="boxImg boxImg4 boxImgs18">
|
||||
<img src="./images/box1.png" alt="" class="boxImg boxImg5 boxImgs22">
|
||||
<img src="./images/box1.png" alt="" class="boxImg boxImg6 boxImgs26">
|
||||
<img src="./images/box1.png" alt="" class="boxImg boxImg7 boxImgs30">
|
||||
<!-- 宝箱动效 -->
|
||||
<div class="boxImgSvgaA boxImgSvga1">
|
||||
<div class="boxImgSvga_in1"></div>
|
||||
</div>
|
||||
<div class="boxImgSvgaB boxImgSvga2">
|
||||
<div class="boxImgSvga_in2"></div>
|
||||
</div>
|
||||
<div class="boxImgSvgaC boxImgSvga3">
|
||||
<div class="boxImgSvga_in3"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 骰子 -->
|
||||
<div class="diceBox">
|
||||
<!-- 气泡 -->
|
||||
<img src="./images/diceQP.png" alt="" class="diceQP">
|
||||
<!-- 动效骰子 -->
|
||||
<div class="diceSvga"></div>
|
||||
<!-- 骰子 -->
|
||||
<img src="./images/dice1.png" alt="" class="dice">
|
||||
<div class="diceLeftBut">宝箱开启记录</div>
|
||||
<div class="diceRightBut">点亮全部宝箱</div>
|
||||
<p>单次消耗糖果券*1</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- pages2 -->
|
||||
<div class="page2">
|
||||
<!-- 页面主切换 -->
|
||||
<div class="tab">
|
||||
<div class="tab tab1 active1"></div>
|
||||
<div class="tab tab2"></div>
|
||||
</div>
|
||||
<!-- 任务玩法切换 -->
|
||||
<div class="switch">
|
||||
<div>万圣地图</div>
|
||||
<div class="active">糖果任务</div>
|
||||
</div>
|
||||
<!-- 文案 -->
|
||||
<img src="./images/taskText.png" alt="" class="taskText">
|
||||
<!-- 任务标题 -->
|
||||
<img src="./images/taskTitle.png" alt="" class="taskTitle">
|
||||
<!-- 我的糖果 -->
|
||||
<div class="myCandy">我的糖果券:0</div>
|
||||
<!-- 每日任务 -->
|
||||
<img src="./images/dayTask.png" alt="" class="dayTask">
|
||||
<!-- 循环任务 -->
|
||||
<img src="./images/alltask.png" alt="" class="alltask">
|
||||
<!-- 任务列表 -->
|
||||
<div class="task task1">
|
||||
<p>登录活动页(0/1)</p>
|
||||
<div class="but">去完成</div>
|
||||
</div>
|
||||
<div class="task task2">
|
||||
<p>在任意直播间停留</p>
|
||||
<div class="lineBox">
|
||||
|
||||
<div class="line">0/90</div>
|
||||
<span class="sp1"></span>
|
||||
<span class="sp2"></span>
|
||||
<span class="sp3"></span>
|
||||
<b class="b1">+1糖果券</b>
|
||||
<b class="b2">+1糖果券</b>
|
||||
<b class="b3">+1糖果券</b>
|
||||
<b class="b4">30分钟</b>
|
||||
<b class="b5">60分钟</b>
|
||||
<b class="b6">90分钟</b>
|
||||
</div>
|
||||
<div class="but">去完成</div>
|
||||
</div>
|
||||
<div class="task task3">
|
||||
<p>每送出一个魔法宝箱获得 <i>糖果券*1</i></p>
|
||||
<b>今日已获得<i>0张</i></b>
|
||||
<div class="but">去完成</div>
|
||||
</div>
|
||||
<div class="task task4">
|
||||
<p>每送出万圣礼物100钻获得 <i>糖果券*1</i></p>
|
||||
<b>今日已获得<i>0张</i></b>
|
||||
<div class="but">去完成</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- page3 -->
|
||||
<div class="page3">
|
||||
<!-- 页面主切换 -->
|
||||
<div class="tab">
|
||||
<div class="tab tab1 "></div>
|
||||
<div class="tab tab2 active2"></div>
|
||||
</div>
|
||||
<!-- 任务玩法切换 -->
|
||||
<div class="listTab">
|
||||
<div class="active">尖叫榜</div>
|
||||
<div>惊喜榜</div>
|
||||
</div>
|
||||
<!-- 规则icon -->
|
||||
<div class="rule_icon">榜单奖励></div>
|
||||
<!-- 日榜总榜切换 -->
|
||||
<div class="dayTab">
|
||||
<div class="active">日榜</div>
|
||||
<div>总榜</div>
|
||||
</div>
|
||||
<!-- 榜单标题 -->
|
||||
<img src="./images/listTitle1.png" alt="" class="listTitle">
|
||||
<!-- 日期 -->
|
||||
<div class="time">
|
||||
<div class="active"></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<!-- 前三 -->
|
||||
<div class="topBox">
|
||||
<div class="no1">
|
||||
<img src="./images/noBg1.png" alt="" class="noBg">
|
||||
<img src="./images/no1.png" alt="" class="noImg">
|
||||
<img src="./images/logo.png" alt="" class="tx">
|
||||
<p>用户名字</p>
|
||||
<b>尖叫值:xxx</b>
|
||||
</div>
|
||||
<div class="no2">
|
||||
<img src="./images/noBg2.png" alt="" class="noBg">
|
||||
<img src="./images/no2.png" alt="" class="noImg">
|
||||
<img src="./images/logo.png" alt="" class="tx">
|
||||
<p>用户名字</p>
|
||||
<b>尖叫值:xxx</b>
|
||||
</div>
|
||||
<div class="no3">
|
||||
<img src="./images/noBg3.png" alt="" class="noBg">
|
||||
<img src="./images/no3.png" alt="" class="noImg">
|
||||
<img src="./images/logo.png" alt="" class="tx">
|
||||
<p>用户名字</p>
|
||||
<b>尖叫值:xxx</b>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 非前三 -->
|
||||
<ul class="lists">
|
||||
<li>
|
||||
<div class="num">4</div>
|
||||
<img src="./images/logo.png" alt="" class="tx">
|
||||
<div class="nick">xxx</div>
|
||||
<div class="score">尖叫值:0</div>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- 自己榜单 -->
|
||||
<div class="my">
|
||||
<div class="li">
|
||||
<div class="num">4</div>
|
||||
<img src="./images/logo.png" alt="" class="tx">
|
||||
<div class="nick">xxx</div>
|
||||
<div class="score">尖叫值:0</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 活动规则 -->
|
||||
<div class="rule">
|
||||
<div class="rule_in">
|
||||
<div class="cen">
|
||||
<p>
|
||||
一、活动时间:<br>
|
||||
2023年10月27日12:00:00-2023年11月2日23:59:59
|
||||
</p>
|
||||
<p>二、礼物上新:<br>
|
||||
活动期间将限时上架5款万圣新限定礼物;1款万圣限定福袋</p>
|
||||
<p>三、活动攻略<br>
|
||||
万圣地图<br>
|
||||
1.送出≥1的万圣限定福袋解锁万圣地图<br>
|
||||
2.收到≥5的万圣限定福袋解锁万圣地图<br>
|
||||
3.地图升级详情查看升级条件和奖励内容<br>
|
||||
4.行走到宝箱位置可获得奖励,非宝箱位置无奖励,若刚好走到起点也可以获得奖励;<br>
|
||||
糖果任务<br>
|
||||
1.活动期间完成每日任务和循环任务领取糖果券;<br>
|
||||
2.每日任务0点刷新,完成后进入活动页领取奖励;<br>
|
||||
3.任务完成后,任务奖励自动发放;</p>
|
||||
|
||||
<p>四、万圣榜单<br>
|
||||
惊喜榜:<br>
|
||||
1.活动期间内,收到普通礼物可增加惊喜值,1鑽=1惊喜值,收到万圣限定礼物1鑽=3惊喜值;<br>
|
||||
2.普通礼物包含礼物面板和背包礼物;<br>
|
||||
3.大头号不参与榜单活动排名;<br>
|
||||
4.靓号奖励A≠B≠C≠0,不可转赠,请联系客服领取;<br>
|
||||
尖叫榜<br>
|
||||
1.活动期间内,赠送普通礼物可增加尖叫值,1鑽=1尖叫值,赠送万圣限定礼物1鑽=3尖叫值;<br>
|
||||
2.普通礼物包含礼物面板和背包礼物;<br>
|
||||
3.大头号不参与榜单活动排名;<br>
|
||||
4.靓号奖励A≠B≠C≠0,不可转赠,请联系客服领取;<br></p>
|
||||
<p>本活动最终解释权归音萌所有,本活动以及奖励与苹果公司无关;</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 榜单规则 -->
|
||||
<div class="listRule">
|
||||
<div class="listRule_in">
|
||||
<img src="./images/listRuletitle1.png" alt="" class="listRuletitle">
|
||||
<div class="box">
|
||||
<img src="./images/listRuleText1.png" alt="listRuleText">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 初级中级高级宝箱弹窗 -->
|
||||
<div class="box_pub">
|
||||
<div class="box_pub_in">
|
||||
<img src="./images/box_pub_Title1.png" alt="" class="box_pub_Title">
|
||||
<p class="p1">活动期间送出万圣福袋*1</p>
|
||||
<p class="p2">或</p>
|
||||
<p class="p3">活动期间收到万圣福袋*5</p>
|
||||
<ul class="box_pub_ul">
|
||||
<!-- <li>
|
||||
<img src="./images/logo.png" alt="" class="gift">
|
||||
<p>黑猫恋人头饰</p>
|
||||
<b>(30天)</b>
|
||||
</li> -->
|
||||
<li class="li1"></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 恭喜获得弹窗 -->
|
||||
<div class="gx">
|
||||
<div class="gx_in">
|
||||
<ul class="gxBox">
|
||||
<li>
|
||||
<img src="./images/logo.png" alt="" class="gift">
|
||||
<p>xxx头饰*1天</p>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="but">收下</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 活动规则 -->
|
||||
<div class="endActivity">
|
||||
<div class="endActivity_in">
|
||||
<p>该活动已结束</p>
|
||||
<div class="but">查看榜单</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 糟糕未获得奖励 -->
|
||||
<div class="zg">
|
||||
<img src="./images/zg.png" alt="" class="zg_in">
|
||||
</div>
|
||||
<!-- 宝箱记录 -->
|
||||
<div class="record_box">
|
||||
<div class="record_box_in">
|
||||
<ul>
|
||||
<li>
|
||||
<div class="left">
|
||||
<p>2023/10/23</p>
|
||||
<b>23:45:05</b>
|
||||
</div>
|
||||
<div class="right">xxxx礼物*1</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<script src="../../common/js/flexible.js"></script>
|
||||
<script src="../../common/js/jquery-3.2.1.min.js"></script>
|
||||
<script src="../../common/js/common2.js"></script>
|
||||
<script src="../../common/js/layer.js"></script>
|
||||
<script src="../../common/js/vconsole.min.js"></script>
|
||||
<script src="../../common/js/svga.min.js"></script>
|
||||
<script src="./js/swiper-bundle.min.js"></script>
|
||||
<script src="../../common/js/route-constant.js"></script>
|
||||
<script src="./js/wow.js"></script>
|
||||
<script src="./js/index.js"></script>
|
730
view/yinmeng/activity/2023-halloween/js/index.js
Normal file
@@ -0,0 +1,730 @@
|
||||
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 leftArr = ['3.6rem', '2.5rem', '1.4rem', '0.3rem', '0.3rem', '0.3rem', '1.4rem', '2.5rem', '2.5rem', '2.5rem', '1.4rem', '0.3rem', '0.3rem', '0.3rem', '0.3rem', '1.4rem', '2.5rem', '2.5rem', '3.6rem', '4.7rem', '4.7rem', '5.8rem', '6.9rem', '6.9rem', '6.9rem', '5.8rem', '5.8rem', '5.8rem', '6.9rem', '6.9rem', '6.9rem', '5.8rem', '4.7rem', '3.6rem'];
|
||||
var bottArr = ['0.9rem', '0.9rem', '0.9rem', '0.9rem', '2.0rem', '3.1rem', '3.1rem', '3.1rem', '4.3rem', '5.6rem', '5.6rem', '5.6rem', '6.7rem', '7.8rem', '9.1rem', '9.1rem', '9.1rem', '7.8rem', '7.8rem', '7.8rem', '9.1rem', '9.1rem', '9.1rem', '7.8rem', '6.7rem', '6.7rem', '5.6rem', '4.3rem', '4.3rem', '3.1rem', '2.0rem', '2.0rem', '2.0rem', '2.0rem'];
|
||||
var curDate; //当天日期;
|
||||
var rankType = 1; //排行榜类型(1=送礼日榜,2=送礼总榜,3=收礼日榜,4=收礼总榜);
|
||||
var data = null;//默认日榜;
|
||||
var isEndTime = null;//判断是否活动结束;
|
||||
var roomUid = null;//房间uid;
|
||||
var type = 'a';//a:送礼b:收礼;
|
||||
var type2 = 'a';//a:日榜b:总榜;
|
||||
var page = 1;//页码
|
||||
var drawPageSizeLack = true;//记录滑动锁
|
||||
var poolType = null;//宝箱等级
|
||||
var mapPos = null;//当前格子下标
|
||||
var drawLock = true;//抽奖的锁
|
||||
var candyNum = 0;//糖果卷
|
||||
// 初始化函数
|
||||
$(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)
|
||||
}
|
||||
})
|
||||
// 礼物轮播
|
||||
var mySwiper = new Swiper('.swiper', {
|
||||
// direction: "vertical",
|
||||
loop: true,
|
||||
autoplay: {
|
||||
delay: 3500,//
|
||||
disableOnInteraction: false
|
||||
}
|
||||
})
|
||||
getTaskConfig();
|
||||
getRecommendRoom();
|
||||
getConfig();
|
||||
}, 100)
|
||||
})
|
||||
// 获取房间Uid接口
|
||||
function getRecommendRoom () {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GEt',
|
||||
url: urlPrefix + '/home/tab/home/one',
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
roomUid = res.data;
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 抽奖配置接口
|
||||
function getConfig () {
|
||||
// showLoading()
|
||||
networkRequest({
|
||||
type: 'GEt',
|
||||
url: urlPrefix + '/act/2023Halloween/draw/getConfig',
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
// 处理糖果数量
|
||||
$('.myCandy').text('我的糖果券:' + res.data.candyNum);
|
||||
candyNum = res.data.candyNum;
|
||||
// 当前格子下标
|
||||
mapPos = res.data.mapPos;
|
||||
$('.page1 .road .gui').css({
|
||||
left: leftArr[res.data.mapPos],
|
||||
bottom: bottArr[res.data.mapPos],
|
||||
})
|
||||
// 判断活动结束时间
|
||||
if (res.timestamp > res.data.endTime) {
|
||||
isEndTime = true;
|
||||
$('.endActivity').show();
|
||||
}
|
||||
// 判断等级处理
|
||||
poolType = res.data.boxLevel;
|
||||
if (res.data.boxLevel == 0) {
|
||||
$('.page1 .mc').show();
|
||||
} else if (res.data.boxLevel == 1) {
|
||||
$('.page1 .boxs1').addClass('boxOpen1');
|
||||
$('.page1 .road .boxImg').attr('src', './images/box1.png');
|
||||
} else if (res.data.boxLevel == 2) {
|
||||
$('.page1 .boxs1').addClass('boxOpen1');
|
||||
$('.page1 .boxs2').addClass('boxOpen2');
|
||||
$('.page1 .road .boxImg').attr('src', './images/box2.png');
|
||||
} else if (res.data.boxLevel == 3) {
|
||||
$('.page1 .boxs1').addClass('boxOpen1');
|
||||
$('.page1 .boxs2').addClass('boxOpen2');
|
||||
$('.page1 .boxs3').addClass('boxOpen3');
|
||||
$('.page1 .road .boxImg').attr('src', './images/box3.png');
|
||||
}
|
||||
// 特效移动
|
||||
$('.page1 .road .gui').css({
|
||||
left: leftArr[mapPos],
|
||||
bottom: bottArr[mapPos],
|
||||
})
|
||||
// 判断当前位置是否处于宝箱点位
|
||||
if (mapPos == 4 || mapPos == 8 || mapPos == 13 || mapPos == 18 || mapPos == 22 || mapPos == 26 || mapPos == 30) {
|
||||
$(`.page1 .road .boxImgs${mapPos}`).attr('src', `./images/boxOpen${poolType}.png`)
|
||||
} else {
|
||||
$(`.page1 .road .boxImg`).attr('src', `./images/box${poolType}.png`);
|
||||
}
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 任务配置接口
|
||||
function getTaskConfig () {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GEt',
|
||||
url: urlPrefix + '/act/2023Halloween/task/getConfig',
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
// 处理每日任务
|
||||
res.data.dailyTaskList.forEach((res, i) => {
|
||||
$(`.page2 .task${i + 1} .but`).attr('click', res.status);
|
||||
$(`.page2 .task${i + 1} .but`).text(res.status == 0 ? '去完成' : '已完成');
|
||||
res.status == 1 ? $(`.page2 .task${i + 1} .but`).addClass('butActive') : $(`.page2 .task${i + 1} .but`).removeClass('butActive');
|
||||
if (i == 0) {
|
||||
$('.page2 .task1 p').text(`登录活动页(${res.cur}/${res.need})`);
|
||||
}
|
||||
if (i == 1) {
|
||||
$('.page2 .task2 .line').css('width', `${(res.cur / res.need * 100) >= 100 ? 100 : (res.cur / res.need * 100)}%`);
|
||||
$('.page2 .task2 .line').text(`${res.cur}/${res.need}`);
|
||||
}
|
||||
});
|
||||
// 处理循环任务
|
||||
res.data.loopTaskList.forEach((res, i) => {
|
||||
$(`.page2 .task${i + 3} b i`).text(`${res.loop}张`);
|
||||
$(`.page2 .task${i + 3} .but`).attr('click', res.status);
|
||||
$(`.page2 .task${i + 3} .but`).text(res.status == 0 ? '去完成' : '已完成');
|
||||
res.status == 1 ? $(`.page2 .task${i + 3} .but`).addClass(`butActive`) : $(`.page2 .task${i + 3} .but`).removeClass(`butActive`);
|
||||
})
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 任务按钮2
|
||||
$('.page2 .task2 .but').click(function () {
|
||||
var bool = $(this).attr('click') == 0 ? false : true;
|
||||
console.log(bool);
|
||||
if (bool) {
|
||||
return
|
||||
}
|
||||
if (browser.ios) {
|
||||
window.webkit.messageHandlers.openRoom.postMessage(roomUid);
|
||||
} else if (browser.android) {
|
||||
if (androidJsObj && typeof androidJsObj === 'object') {
|
||||
window.androidJsObj.openRoom(roomUid);
|
||||
}
|
||||
}
|
||||
})
|
||||
// 任务按钮3
|
||||
$('.page2 .task3 .but').click(function () {
|
||||
var bool = $(this).attr('click') == 0 ? false : true;
|
||||
console.log(bool);
|
||||
if (bool) {
|
||||
return
|
||||
}
|
||||
if (browser.ios) {
|
||||
window.webkit.messageHandlers.openRoomForGiftId.postMessage(JSON.stringify({ uid: roomUid, giftId: 0 }))
|
||||
} else if (browser.android) {
|
||||
if (androidJsObj && typeof androidJsObj === 'object') {
|
||||
window.androidJsObj.openRoomForGiftId(roomUid, 0);
|
||||
}
|
||||
}
|
||||
})
|
||||
// 任务按钮4
|
||||
$('.page2 .task4 .but').click(function () {
|
||||
var bool = $(this).attr('click') == 0 ? false : true;
|
||||
console.log(bool);
|
||||
if (bool) {
|
||||
return
|
||||
}
|
||||
if (browser.ios) {
|
||||
window.webkit.messageHandlers.openRoomForGiftId.postMessage(JSON.stringify({ uid: roomUid, giftId: 0 }))
|
||||
} else if (browser.android) {
|
||||
if (androidJsObj && typeof androidJsObj === 'object') {
|
||||
window.androidJsObj.openRoomForGiftId(roomUid, 0);
|
||||
}
|
||||
}
|
||||
})
|
||||
// 点击宝箱按钮
|
||||
$('.page1 .boxs').click(function () {
|
||||
var i = $(this).index() - 6;
|
||||
if (i == 1) {
|
||||
$('.box_pub .box_pub_in .p1').text('活动期间送出万圣福袋*1');
|
||||
$('.box_pub .box_pub_in .p3').text('活动期间收到万圣福袋*5');
|
||||
} else if (i == 2) {
|
||||
$('.box_pub .box_pub_in .p1').text('活动期间送出万圣福袋*10');
|
||||
$('.box_pub .box_pub_in .p3').text('活动期间收到万圣福袋*20');
|
||||
} else {
|
||||
$('.box_pub .box_pub_in .p1').text('活动期间送出万圣福袋*20');
|
||||
$('.box_pub .box_pub_in .p3').text('活动期间收到万圣福袋*30');
|
||||
}
|
||||
$('.box_pub .box_pub_in .box_pub_ul li').removeClass('li1').removeClass('li2').removeClass('li3');
|
||||
$('.box_pub .box_pub_in .box_pub_ul li').addClass(`li${i}`);
|
||||
$('.box_pub .box_pub_in .box_pub_Title').attr('src', `./images/box_pub_Title${i}.png`)
|
||||
$('.box_pub').show();
|
||||
bodyScroolFun(true);
|
||||
})
|
||||
// 去完成宝箱解锁任务按钮
|
||||
$('.page1 .mc .mc_in .but').click(function () {
|
||||
if (browser.ios) {
|
||||
window.webkit.messageHandlers.openRoomForGiftId.postMessage(JSON.stringify({ uid: roomUid, giftId: 0 }))
|
||||
} else if (browser.android) {
|
||||
if (androidJsObj && typeof androidJsObj === 'object') {
|
||||
window.androidJsObj.openRoomForGiftId(roomUid, 0);
|
||||
}
|
||||
}
|
||||
})
|
||||
// tab切换
|
||||
$('.tab div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$('.page1,.page2,.page3').hide();
|
||||
if (i == 1) {
|
||||
$('.page1').show();
|
||||
getConfig();
|
||||
} else {
|
||||
getRank(rankType, data);
|
||||
$('.page3').show();
|
||||
}
|
||||
})
|
||||
// 地图任务tab切换
|
||||
$('.switch div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$('.page1,.page2,.page3').hide();
|
||||
if (i == 1) {
|
||||
$('.page1').show();
|
||||
getConfig();
|
||||
} else {
|
||||
$('.page2').show();
|
||||
getConfig();
|
||||
getTaskConfig();
|
||||
}
|
||||
})
|
||||
// 尖叫惊喜榜单切换
|
||||
$('.page3 .listTab div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$('.page3 .listTitle').attr('src', `./images/listTitle${i}.png`);
|
||||
$('.listRule .listRule_in .listRuletitle').attr('src', `./images/listRuletitle${i}.png`);
|
||||
$('.listRule .listRule_in .box img').attr('src', `./images/listRuleText${i}.png`);
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
if (i == 1) {
|
||||
type = 'a';
|
||||
rankType = type2 == "a" ? 1 : 2;
|
||||
} else {
|
||||
type = 'b';
|
||||
rankType = type2 == "a" ? 3 : 4;
|
||||
}
|
||||
getRank(rankType, data);
|
||||
})
|
||||
// 日榜总榜切换
|
||||
$('.page3 .dayTab div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
if (i == 1) {
|
||||
type2 = 'a';
|
||||
rankType = type == "a" ? 1 : 3;
|
||||
$('.page3 .time').show();
|
||||
} else {
|
||||
type2 = 'b';
|
||||
rankType = type == "a" ? 2 : 4;
|
||||
$('.page3 .time').hide();
|
||||
}
|
||||
getRank(rankType, data);
|
||||
})
|
||||
// 日榜切换日期
|
||||
$('.page3 .time div').click(function () {
|
||||
var datas = $(this).attr('data');
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
rankType = type == "a" ? 1 : 3;//排行榜类型(1=甜蜜日榜,2=甜蜜总榜,3=爱意日榜,4=爱意总榜)
|
||||
data = datas;
|
||||
getRank(rankType, data);
|
||||
})
|
||||
// 榜单接口
|
||||
function getRank (rankType, date) {//排行榜类型rankType(1=送礼日榜,2=送礼总榜,3=收礼日榜,4=收礼总榜)
|
||||
$('.page3 .lists li').remove();
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GEt',
|
||||
url: urlPrefix + '/act/2023Halloween/rank/getRank',
|
||||
data: { rankType, date },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
// 设置当天日期
|
||||
curDate = res.data.curDate;
|
||||
// 处理日期
|
||||
if (res.data.dateList) {
|
||||
res.data.dateList.forEach((res, i) => {
|
||||
$('.page3 .time div').eq(i).text(`${res[5]}${res[6]}.${res[8]}${res[9]}`);
|
||||
$('.page3 .time div').eq(i).attr('data', res);
|
||||
if (res == curDate && date == null) {
|
||||
$('.page3 .time div').removeClass('active')
|
||||
$('.page3 .time div').eq(i).addClass('active');
|
||||
}
|
||||
})
|
||||
}
|
||||
// 处理自己榜单
|
||||
$('.page3 .my .li .tx').attr('src', res.data.meRank.avatar);
|
||||
$('.page3 .my .li .num').text(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking);
|
||||
$('.page3 .my .li .nick').text(res.data.meRank.nick);
|
||||
$('.page3 .my .li .score').text(`${rankType == 1 || rankType == 2 ? "尖叫值:" : "惊喜值:"}${unitProcessing(res.data.meRank.score, 10000, 1, 'w')}`);
|
||||
// 处理前三
|
||||
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, index) => {
|
||||
$(`.page3 .topBox .no${index + 1} .tx`).attr('src', res.avatar);
|
||||
$(`.page3 .topBox .no${index + 1} p`).text(res.nick);
|
||||
$(`.page3 .topBox .no${index + 1} b`).text(`${rankType == 1 || rankType == 2 ? "尖叫值:" : "惊喜值:"}${unitProcessing(res.score, 10000, 1, 'w')}`);
|
||||
})
|
||||
// 非前三
|
||||
var str = '';
|
||||
notTop3.forEach((res, i) => {
|
||||
str += `
|
||||
<li>
|
||||
<div class="num">${res.ranking}</div>
|
||||
<img src="${res.avatar}" alt="" class="tx">
|
||||
<div class="nick">${res.nick}</div>
|
||||
<div class="score">${rankType == 1 || rankType == 2 ? "尖叫值:" : "惊喜值:"}${unitProcessing(res.score, 10000, 1, 'w')}</div>
|
||||
</li>
|
||||
`
|
||||
})
|
||||
$('.page3 .lists').append(str);
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 打开活动规则
|
||||
$('.header .rule_icon').click(function () {
|
||||
$('.rule').show();
|
||||
bodyScroolFun(true);
|
||||
})
|
||||
// 关闭活动规则
|
||||
$('.rule').click(function () {
|
||||
$('.rule').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
// 打开榜单规则
|
||||
$('.page3 .rule_icon').click(function () {
|
||||
$('.listRule').show();
|
||||
bodyScroolFun(true);
|
||||
})
|
||||
// 关闭榜单规则
|
||||
$('.listRule').click(function () {
|
||||
$('.listRule').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
// 关闭初中高宝箱弹窗
|
||||
$('.box_pub').click(function () {
|
||||
$('.box_pub').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
// 关闭恭喜获得弹窗
|
||||
$('.gx .gx_in .but').click(function () {
|
||||
drawLock = true;
|
||||
$('.gx').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
// 关闭糟糕弹窗
|
||||
$('.zg').click(function () {
|
||||
drawLock = true;
|
||||
$('.zg').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
// 关闭宝箱记录弹窗
|
||||
$('.record_box').click(function () {
|
||||
$('.record_box').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
// 打开宝箱记录
|
||||
$('.page1 .diceBox .diceLeftBut').click(function () {
|
||||
page = 1;
|
||||
$('.record_box .record_box_in ul li').remove();
|
||||
pageRecord(page);
|
||||
})
|
||||
// 获取房间Uid接口
|
||||
function pageRecord (page) {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GEt',
|
||||
url: urlPrefix + '/act/2023Halloween/draw/pageRecord',
|
||||
data: { page, size: 20 },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
if (res.data.length == 0) {
|
||||
drawPageSizeLack = false;
|
||||
hideLoading(layerIndex)
|
||||
$('.record_box').show();
|
||||
return;
|
||||
}
|
||||
var str = '';
|
||||
res.data.forEach((res, i) => {
|
||||
str += `
|
||||
<li>
|
||||
<div class="left">
|
||||
<p>${dateFormat(res.createTime, 'yyyy/MM/dd')}</p>
|
||||
<b>${dateFormat(res.createTime, 'hh:mm:ss')}</b>
|
||||
</div>
|
||||
<div class="right">${res.rewardDesc}</div>
|
||||
</li>
|
||||
`
|
||||
})
|
||||
$('.record_box .record_box_in ul ').append(str);
|
||||
drawPageSizeLack = true;
|
||||
$('.record_box').show();
|
||||
bodyScroolFun(true);
|
||||
} else {
|
||||
drawPageSizeLack = true;
|
||||
toastMsg(res.message)
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
},
|
||||
error (err) {
|
||||
drawPageSizeLack = true;
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
//检测抽奖记录是否到达底部
|
||||
$(".record_box .record_box_in ul").scroll(function () {
|
||||
var divHeight = $(this).height();
|
||||
var nScrollHeight = $(this)[0].scrollHeight;
|
||||
var nScrollTop = $(this)[0].scrollTop;
|
||||
if (nScrollTop + divHeight + 50 >= nScrollHeight) {
|
||||
console.log("到达底部了");
|
||||
if (drawPageSizeLack) {
|
||||
drawPageSizeLack = false;
|
||||
page++;
|
||||
pageRecord(page);
|
||||
}
|
||||
}
|
||||
});
|
||||
// 骰子动画定义
|
||||
let player = new SVGA.Player('.diceSvga');
|
||||
let parser = new SVGA.Parser('.diceSvga');
|
||||
parser.load(`./images/sz.svga`, function (videoItem) {
|
||||
player.loops = 1;
|
||||
player.clearsAfterStop = false;
|
||||
player.setVideoItem(videoItem);
|
||||
player.startAnimation();
|
||||
player.setContentMode('AspectFill');
|
||||
})
|
||||
// 骰子动画函数
|
||||
function diceSvga () {
|
||||
$('.page1 .diceBox .diceSvga').show();
|
||||
$('.page1 .diceBox .dice').hide();
|
||||
parser.load(`./images/sz.svga`, function (videoItem) {
|
||||
player.loops = 1;
|
||||
player.clearsAfterStop = false;
|
||||
player.setVideoItem(videoItem);
|
||||
player.startAnimation();
|
||||
player.setContentMode('AspectFill');
|
||||
player.onFinished(() => {
|
||||
$('.page1 .diceBox .dice').show();
|
||||
$('.page1 .diceBox .diceSvga').hide();
|
||||
})
|
||||
})
|
||||
}
|
||||
// 摇骰子按钮
|
||||
$('.page1 .diceBox .dice').click(function () {
|
||||
if (drawLock) {
|
||||
if (candyNum < 1) {
|
||||
toastMsg('糖果券不足')
|
||||
return
|
||||
}
|
||||
draw(poolType, 1);
|
||||
}
|
||||
})
|
||||
// 全部投入
|
||||
$('.page1 .diceBox .diceRightBut').click(function () {
|
||||
if (drawLock) {
|
||||
if (candyNum < 1) {
|
||||
toastMsg('糖果券不足')
|
||||
return
|
||||
}
|
||||
draw(poolType, null);
|
||||
}
|
||||
})
|
||||
// 活动结束按钮
|
||||
$('.endActivity .endActivity_in .but').click(function () {
|
||||
$('.endActivity').hide();
|
||||
bodyScroolFun(false);
|
||||
$('.page1,.page2,.page3').hide();
|
||||
getRank(rankType, data);
|
||||
$('.page3').show();
|
||||
})
|
||||
// 宝箱开奖动画定义
|
||||
let boxBig1 = new SVGA.Player('.boxImgSvga_in1');
|
||||
let boxBigParser1 = new SVGA.Parser('.boxImgSvga_in1');
|
||||
boxBigParser1.load(`./images/boxBig1.svga`, function (videoItem) {
|
||||
boxBig1.loops = 1;
|
||||
boxBig1.clearsAfterStop = false;
|
||||
boxBig1.setVideoItem(videoItem);
|
||||
boxBig1.startAnimation();
|
||||
boxBig1.setContentMode('AspectFill');
|
||||
})
|
||||
// 宝箱开奖动画函数
|
||||
function boxBigSvga1 () {
|
||||
$('.boxImgSvgaA').show();
|
||||
boxBigParser1.load(`./images/boxBig1.svga`, function (videoItem) {
|
||||
boxBig1.loops = 1;
|
||||
boxBig1.clearsAfterStop = false;
|
||||
boxBig1.setVideoItem(videoItem);
|
||||
boxBig1.startAnimation();
|
||||
boxBig1.setContentMode('AspectFill');
|
||||
boxBig1.onFinished(() => {
|
||||
$('.boxImgSvgaA').hide();
|
||||
$('.gx').show();
|
||||
})
|
||||
})
|
||||
}
|
||||
// 宝箱开奖动画定义
|
||||
let boxBig2 = new SVGA.Player('.boxImgSvga_in2');
|
||||
let boxBigParser2 = new SVGA.Parser('.boxImgSvga_in2');
|
||||
boxBigParser2.load(`./images/boxBig2.svga`, function (videoItem) {
|
||||
boxBig2.loops = 1;
|
||||
boxBig2.clearsAfterStop = false;
|
||||
boxBig2.setVideoItem(videoItem);
|
||||
boxBig2.startAnimation();
|
||||
boxBig2.setContentMode('AspectFill');
|
||||
})
|
||||
// 宝箱开奖动画函数
|
||||
function boxBigSvga2 () {
|
||||
$('.boxImgSvgaB').show();
|
||||
boxBigParser2.load(`./images/boxBig2.svga`, function (videoItem) {
|
||||
boxBig2.loops = 1;
|
||||
boxBig2.clearsAfterStop = false;
|
||||
boxBig2.setVideoItem(videoItem);
|
||||
boxBig2.startAnimation();
|
||||
boxBig2.setContentMode('AspectFill');
|
||||
boxBig2.onFinished(() => {
|
||||
$('.boxImgSvgaB').hide();
|
||||
$('.gx').show();
|
||||
})
|
||||
})
|
||||
}
|
||||
// 宝箱开奖动画定义
|
||||
let boxBig3 = new SVGA.Player('.boxImgSvga_in3');
|
||||
let boxBigParser3 = new SVGA.Parser('.boxImgSvga_in3');
|
||||
boxBigParser2.load(`./images/boxBig3.svga`, function (videoItem) {
|
||||
boxBig3.loops = 1;
|
||||
boxBig3.clearsAfterStop = false;
|
||||
boxBig3.setVideoItem(videoItem);
|
||||
boxBig3.startAnimation();
|
||||
boxBig3.setContentMode('AspectFill');
|
||||
})
|
||||
// 宝箱开奖动画函数
|
||||
function boxBigSvga3 () {
|
||||
$('.boxImgSvgaC').show();
|
||||
boxBigParser2.load(`./images/boxBig3.svga`, function (videoItem) {
|
||||
boxBig3.loops = 1;
|
||||
boxBig3.clearsAfterStop = false;
|
||||
boxBig3.setVideoItem(videoItem);
|
||||
boxBig3.startAnimation();
|
||||
boxBig3.setContentMode('AspectFill');
|
||||
boxBig3.onFinished(() => {
|
||||
$('.boxImgSvgaC').hide();
|
||||
$('.gx').show();
|
||||
})
|
||||
})
|
||||
}
|
||||
// 抽奖接口
|
||||
function draw (poolType, num) {
|
||||
drawLock = false;
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GEt',
|
||||
url: urlPrefix + '/act/2023Halloween/draw/draw',
|
||||
data: { poolType, num },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
// 判断是否全部投入或单次投入
|
||||
if (num != null) {
|
||||
diceSvga();
|
||||
setTimeout(function () {
|
||||
res.data.step.forEach((res, index) => {
|
||||
console.log(res);
|
||||
setTimeout(function () {
|
||||
$('.page1 .road .gui').css({
|
||||
left: leftArr[res],
|
||||
bottom: bottArr[res],
|
||||
})
|
||||
}, (index + 1) * 300)
|
||||
});
|
||||
drawOut(res, res.data.step.length + 1, poolType);
|
||||
}, 1600);
|
||||
} else {
|
||||
drawOut(res, 0, poolType);
|
||||
}
|
||||
// 设置步数
|
||||
$('.page1 .diceBox .dice').attr('src', `./images/dice${res.data.step.length}.png`);
|
||||
} else if (res.code == 4000) {
|
||||
toastMsg(res.message);
|
||||
getConfig();
|
||||
drawLock = true;
|
||||
} else {
|
||||
drawLock = true;
|
||||
toastMsg(res.message)
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
},
|
||||
error (err) {
|
||||
drawLock = true;
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 中奖或未中奖渲染
|
||||
function drawOut (res, time, poolType) {
|
||||
//判断是否中奖
|
||||
if (res.data.hasReward) {
|
||||
// 渲染中奖列表<p>xxx头饰*1天</p>
|
||||
var str = '';
|
||||
$('.gx .gx_in .gxBox li').remove();
|
||||
res.data.rewardList.forEach((res, i) => {
|
||||
// 1头饰;2铭牌;3气泡;4座驾;5礼物;
|
||||
str += `
|
||||
<li>
|
||||
<img src="${res.pic}" alt="" class="gift ${res.type == 1 ? 'ts' : res.type == 2 ? 'mp' : res.type == 3 ? 'qp' : res.type == 4 ? 'zj' : 'lw'}">
|
||||
<p>${res.desc}</p>
|
||||
</li>
|
||||
`
|
||||
})
|
||||
$('.gx .gx_in .gxBox').append(str);
|
||||
setTimeout(function () {
|
||||
poolType == 1 ? boxBigSvga1() : poolType == 2 ? boxBigSvga2() : boxBigSvga3();
|
||||
$(`.page1 .road .boxImgs${res.data.step[res.data.step.length - 1]}`).attr('src', `./images/boxOpen${poolType}.png`);
|
||||
getConfig();
|
||||
// drawLock = true;
|
||||
}, time * 300)
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
$('.zg').show();
|
||||
// drawLock = true;
|
||||
getConfig();
|
||||
}, time * 300)
|
||||
}
|
||||
bodyScroolFun(true);
|
||||
}
|
||||
//返回页面 重新请求接口
|
||||
var hiddenProperty = 'hidden' in document ? 'hidden' :
|
||||
'webkitHidden' in document ? 'webkitHidden' :
|
||||
'mozHidden' in document ? 'mozHidden' : null;
|
||||
|
||||
var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange');
|
||||
var onVisibilityChange = function () {
|
||||
if (!document[hiddenProperty]) {
|
||||
getConfig();
|
||||
getTaskConfig();
|
||||
}
|
||||
}
|
||||
document.addEventListener(visibilityChangeEvent, onVisibilityChange);
|
14
view/yinmeng/activity/2023-halloween/js/swiper-bundle.min.js
vendored
Normal file
46
view/yinmeng/activity/2023-halloween/js/wow.js
Normal file
@@ -0,0 +1,46 @@
|
||||
var baba = document.querySelector('body');
|
||||
baba.addEventListener('click', function (e) {
|
||||
// $('body,html').css({ "width": "100%", "position": "relative", "overflow": "hidden" });
|
||||
tianJia(e);
|
||||
})
|
||||
|
||||
var erZi = [];
|
||||
function tianJia (e) {
|
||||
var sunZi = document.createElement('div');
|
||||
sunZi.className = 'rabbit';
|
||||
// sunZi.innerHTML = '<i class="iconfont icon-tuzi"></i>';
|
||||
sunZi.innerHTML = '<img src="./images/xx.png" alt="">';
|
||||
baba.appendChild(sunZi);
|
||||
erZi.push({
|
||||
el: sunZi,
|
||||
top: e.pageY - 30,
|
||||
left: e.pageX - 20,
|
||||
opacity: 1,
|
||||
scale: 1,
|
||||
color: `rgb(${255 * Math.random()},${255 * Math.random()},${255 * Math.random()})`
|
||||
});
|
||||
move();
|
||||
};
|
||||
function move () {
|
||||
for (var i = 0; i < erZi.length; i++) {
|
||||
if (erZi[i].opacity <= 0) {
|
||||
baba.removeChild(erZi[i].el);
|
||||
erZi.splice(i, 1);
|
||||
return;
|
||||
}
|
||||
erZi[i].top--;
|
||||
erZi[i].opacity = erZi[i].opacity - 0.04;
|
||||
// erZi[i].scale = erZi[i].scale + 0.0001;
|
||||
erZi[i].el.style.cssText = `
|
||||
top: ${erZi[i].top}px;
|
||||
left: ${erZi[i].left}px;
|
||||
color: ${erZi[i].color};
|
||||
opacity: ${erZi[i].opacity};
|
||||
transform: scale(${erZi[i].scale});
|
||||
position: absolute;
|
||||
`
|
||||
|
||||
}
|
||||
window.requestAnimationFrame(move);
|
||||
// $('body,html').css({ "width": "100%", "position": "relative", "overflow": "auto" });
|
||||
}
|
@@ -409,7 +409,7 @@ $('.toaks div span').click(function () {
|
||||
}
|
||||
}
|
||||
})
|
||||
// 老虎机兑换切换
|
||||
// 兑换机兑换切换
|
||||
$('.lhj .tab div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$('.lhjReward img').attr('src', `./images/lhjr${i}.png`);
|
||||
@@ -514,7 +514,7 @@ $('.lhj .lhjbut2').click(function () {
|
||||
toastMsg('月饼券不足');
|
||||
}
|
||||
})
|
||||
// 老虎机滑动
|
||||
// 兑换机滑动
|
||||
function letGo (type, res) {
|
||||
$(".num-con2").css({ "top": "0rem" });
|
||||
if (type == 1) {
|
||||
@@ -548,7 +548,7 @@ function letGo (type, res) {
|
||||
});
|
||||
}
|
||||
}
|
||||
// 老虎机奖励切换
|
||||
// 兑换机奖励切换
|
||||
$('.lhjReward .tab div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$('.lhjReward img').attr('src', `./images/lhjr${i}.png`);
|
||||
|
1478
view/yinmeng/activity/midAutumnFestival/css/index.css
Normal file
1502
view/yinmeng/activity/midAutumnFestival/css/index.scss
Normal file
13
view/yinmeng/activity/midAutumnFestival/css/swiper-bundle.min.css
vendored
Normal file
BIN
view/yinmeng/activity/midAutumnFestival/images/1.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
view/yinmeng/activity/midAutumnFestival/images/10.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
view/yinmeng/activity/midAutumnFestival/images/bRuleBg.png
Normal file
After Width: | Height: | Size: 164 KiB |
BIN
view/yinmeng/activity/midAutumnFestival/images/box.png
Normal file
After Width: | Height: | Size: 27 KiB |