Compare commits
22 Commits
2023-year
...
2024-lover
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f4a2bce138 | ||
![]() |
4b0993dee3 | ||
![]() |
ff64c396ec | ||
![]() |
3c195a0f6b | ||
![]() |
2d917ebbc3 | ||
![]() |
626bc1d02e | ||
![]() |
3f33eb88c9 | ||
![]() |
adc938511d | ||
![]() |
da5a6ca993 | ||
![]() |
2ed22d00fa | ||
![]() |
214c67d792 | ||
![]() |
1e97695c3e | ||
![]() |
008764107c | ||
![]() |
4bd5aa0804 | ||
![]() |
2a1eb57cb9 | ||
![]() |
a228ecd21d | ||
![]() |
180d06864e | ||
![]() |
f30a3f4e3f | ||
![]() |
1a48518d81 | ||
![]() |
45abdc199b | ||
![]() |
89297793fc | ||
![]() |
9ddc2235e1 |
@@ -104,6 +104,10 @@ body {
|
||||
color: #664324;
|
||||
}
|
||||
|
||||
.page1 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.page1 .box {
|
||||
width: 9.21333rem;
|
||||
height: 21.94667rem;
|
||||
@@ -1005,7 +1009,6 @@ body {
|
||||
width: 9.46667rem;
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.page3 .page3TitleIcon {
|
||||
|
@@ -110,7 +110,7 @@ body {
|
||||
}
|
||||
|
||||
.page1 {
|
||||
// display: none;
|
||||
display: none;
|
||||
|
||||
.box {
|
||||
width: px2rem(691);
|
||||
@@ -1015,7 +1015,7 @@ body {
|
||||
width: px2rem(710);
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
display: none;
|
||||
// display: none;
|
||||
|
||||
.page3TitleIcon {
|
||||
display: block;
|
||||
|
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 26 KiB |
@@ -21,9 +21,9 @@
|
||||
<!-- 宝箱任务 -->
|
||||
<img src="./images/toast.png" alt="" class="toast">
|
||||
<!-- tab切换 -->
|
||||
<div class="act tab tab1">年度挚友</div>
|
||||
<div class="tab tab1">年度挚友</div>
|
||||
<div class="tab tab2">礼物代言人</div>
|
||||
<div class="tab tab3">人气主播</div>
|
||||
<div class="act tab tab3">人气主播</div>
|
||||
<div class="tab tab4">名厅之战</div>
|
||||
<div class="tab tab5">年度神豪</div>
|
||||
</div>
|
||||
@@ -482,7 +482,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="tabBox2">
|
||||
<i class="text">新秀值:按照用户在任意房间收到钻石礼物获得贡献值,1钻石=1新秀值</i>
|
||||
<i class="text">新秀值:按照用户在任意房间收到钻石礼物获得新秀值,1钻石=1新秀值</i>
|
||||
<img src="./images/celebrationTaskLine.png" alt="" class="line">
|
||||
<div class="celebrationTaskBox">
|
||||
<div class="title">LV1</div>
|
||||
|
@@ -304,7 +304,7 @@ $(function () {
|
||||
})
|
||||
// getRoomUid();
|
||||
getTask();
|
||||
cpRank();
|
||||
popularGetRank();
|
||||
}, 100)
|
||||
})
|
||||
// tab总切换
|
||||
|
2024
view/yinmeng/activity/2024-lover/css/index.css
Normal file
2072
view/yinmeng/activity/2024-lover/css/index.scss
Normal file
BIN
view/yinmeng/activity/2024-lover/images/1.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
view/yinmeng/activity/2024-lover/images/2.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
view/yinmeng/activity/2024-lover/images/3.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
view/yinmeng/activity/2024-lover/images/4.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
view/yinmeng/activity/2024-lover/images/5.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
view/yinmeng/activity/2024-lover/images/6.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
view/yinmeng/activity/2024-lover/images/bottom.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
view/yinmeng/activity/2024-lover/images/buyBgPub.png
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
view/yinmeng/activity/2024-lover/images/buyTitle.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
view/yinmeng/activity/2024-lover/images/buy_z.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
view/yinmeng/activity/2024-lover/images/close.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
view/yinmeng/activity/2024-lover/images/diamond.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
view/yinmeng/activity/2024-lover/images/end.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
view/yinmeng/activity/2024-lover/images/endTitle.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
view/yinmeng/activity/2024-lover/images/failureBuyTitle.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
view/yinmeng/activity/2024-lover/images/giftNameBg.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
view/yinmeng/activity/2024-lover/images/header.png
Normal file
After Width: | Height: | Size: 202 KiB |
BIN
view/yinmeng/activity/2024-lover/images/logo.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
view/yinmeng/activity/2024-lover/images/loveBox.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
view/yinmeng/activity/2024-lover/images/love_h.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
view/yinmeng/activity/2024-lover/images/love_z.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
view/yinmeng/activity/2024-lover/images/mp.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
view/yinmeng/activity/2024-lover/images/myBg.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
view/yinmeng/activity/2024-lover/images/myBg2.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
view/yinmeng/activity/2024-lover/images/ok.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page1Bg1Title.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page1Bg2Title.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page1_bg1.png
Normal file
After Width: | Height: | Size: 218 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page1_bg2.png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page2Bg.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page2But.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page2Buy_icon.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page2RuleTitle.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page2Title.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page3Li.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page3RuleBg.png
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page3Rule_icon.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page3Rule_inBg.png
Normal file
After Width: | Height: | Size: 155 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page3Title.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page3Top1.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page3Top2.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page3Top3.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page3boxBg.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page3mp.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page3qp.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
view/yinmeng/activity/2024-lover/images/page3ts.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
view/yinmeng/activity/2024-lover/images/pageTop3.png
Normal file
After Width: | Height: | Size: 208 KiB |
BIN
view/yinmeng/activity/2024-lover/images/qp.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
view/yinmeng/activity/2024-lover/images/ruleTitle.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
view/yinmeng/activity/2024-lover/images/sureTitle.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
view/yinmeng/activity/2024-lover/images/tab1.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
view/yinmeng/activity/2024-lover/images/tab2.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
view/yinmeng/activity/2024-lover/images/tasks1.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
view/yinmeng/activity/2024-lover/images/tasks2.png
Normal file
After Width: | Height: | Size: 90 KiB |
BIN
view/yinmeng/activity/2024-lover/images/top.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
view/yinmeng/activity/2024-lover/images/travel/back.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
392
view/yinmeng/activity/2024-lover/index.html
Normal file
@@ -0,0 +1,392 @@
|
||||
<!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/index.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- 顶部返回 -->
|
||||
<div class="back">
|
||||
<img src="./images/travel/back.png" alt="">
|
||||
</div>
|
||||
|
||||
<!-- 头部 -->
|
||||
<div class="header">
|
||||
<div class="rule_icon"></div>
|
||||
</div>
|
||||
|
||||
<!-- tab切换 -->
|
||||
<div class="tab">
|
||||
<div class="act">萌动花盒</div>
|
||||
<div>甜蜜升温</div>
|
||||
<div>热恋时刻</div>
|
||||
</div>
|
||||
|
||||
<!-- 页面1 -->
|
||||
<div class="page1">
|
||||
<div class="bg1">
|
||||
<!-- 标题 -->
|
||||
<img src="./images/page1Bg1Title.png" alt="" class="title">
|
||||
<!-- 爱心盒子 -->
|
||||
<img src="./images/loveBox.png" alt="" class="loveBox">
|
||||
<!-- 文案 -->
|
||||
<p class="p1">活动期间,开出「萌动花盒」中的6种不同礼物</p>
|
||||
<p class="p2">可获得「初心萌动」限定铭牌</p>
|
||||
<p class="p3">今日奖励已发放</p>
|
||||
<p class="p4">奖励自动发放,每日仅可领取一次,点亮结果和奖励每日中午12点自动刷新</p>
|
||||
<!-- 铭牌 -->
|
||||
<img src="./images/mp.png" alt="" class="mp">
|
||||
<!-- 点亮列表 -->
|
||||
<div class="giftListBox">
|
||||
<div class="giftList giftList1 filter">
|
||||
<div class="qp"></div>
|
||||
<img src="./images/1.png" alt="" class="gift">
|
||||
<div class="giftName">白玫瑰</div>
|
||||
<div class="giftVAlue">1314钻</div>
|
||||
</div>
|
||||
<div class="giftList giftList2 filter">
|
||||
<div class="qp"></div>
|
||||
<img src="./images/2.png" alt="" class="gift">
|
||||
<div class="giftName">红玫瑰</div>
|
||||
<div class="giftVAlue">1314钻</div>
|
||||
</div>
|
||||
<div class="giftList giftList3 filter">
|
||||
<div class="qp"></div>
|
||||
<img src="./images/3.png" alt="" class="gift">
|
||||
<div class="giftName">粉玫瑰</div>
|
||||
<div class="giftVAlue">1314钻</div>
|
||||
</div>
|
||||
<div class="giftList giftList4 filter">
|
||||
<div class="qp"></div>
|
||||
<img src="./images/4.png" alt="" class="gift">
|
||||
<div class="giftName">彩玫瑰</div>
|
||||
<div class="giftVAlue">1314钻</div>
|
||||
</div>
|
||||
<div class="giftList giftList5 filter">
|
||||
<div class="qp"></div>
|
||||
<img src="./images/5.png" alt="" class="gift">
|
||||
<div class="giftName">炽热爱恋</div>
|
||||
<div class="giftVAlue">1314钻</div>
|
||||
</div>
|
||||
<div class="giftList giftList6 filter">
|
||||
<div class="qp"></div>
|
||||
<img src="./images/6.png" alt="" class="gift">
|
||||
<div class="giftName">纯白爱恋</div>
|
||||
<div class="giftVAlue">1314钻</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bg2">
|
||||
<!-- 标题 -->
|
||||
<img src="./images/page1Bg2Title.png" alt="" class="title">
|
||||
<!-- 列表 -->
|
||||
<ul>
|
||||
<li class="liTitle">
|
||||
<div>点亮时间</div>
|
||||
<div>获得奖励</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="left">
|
||||
<p>2024/2/1</p>
|
||||
<span>00:00:00</span>
|
||||
</div>
|
||||
<div>xxxx铭牌</div>
|
||||
</li>
|
||||
<li class="null">
|
||||
<div>暂无点亮记录,快去集齐礼物吧~</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 页面2 -->
|
||||
<div class="page2">
|
||||
<div class="box">
|
||||
<!-- 标题 -->
|
||||
<img src="./images/page2Title.png" alt="" class="title">
|
||||
<!-- 购买记录icon -->
|
||||
<img src="./images/page2Buy_icon.png" alt="" class="page2Buy_icon">
|
||||
<!-- 文案 -->
|
||||
<i class="i1">剩余时间:00天12时12分</i>
|
||||
<i class="i2">活动期间送礼到达指定任务值,可解锁超珍稀限时礼物直购权</i>
|
||||
<i class="i3">(1钻石送礼=1礼物值)</i>
|
||||
<!-- 任务 -->
|
||||
<div class="tasks tasks1 taskss">
|
||||
<div class="giftBox">
|
||||
<div class="qp"></div>
|
||||
<img src="./images/tasks1.png" alt="" class="gift">
|
||||
<div class="giftName">心动一刹</div>
|
||||
<div class="giftVAlue">13140钻</div>
|
||||
</div>
|
||||
<p class="p1">每达到52000礼物值,可解锁1次直购权</p>
|
||||
<p class="p2">礼物值</p>
|
||||
<p class="p3">当前可购买: X个</p>
|
||||
<div class="line">
|
||||
<span></span>
|
||||
<i class="i">0/1000</i>
|
||||
</div>
|
||||
<div class="buy">
|
||||
<img src="./images/diamond.png" alt="" class="diamond">
|
||||
1314购买
|
||||
</div>
|
||||
</div>
|
||||
<div class="tasks2 taskss">
|
||||
<div class="giftBox">
|
||||
<div class="qp"></div>
|
||||
<img src="./images/tasks2.png" alt="" class="gift">
|
||||
<div class="giftName">绝对宠溺</div>
|
||||
<div class="giftVAlue">33440钻</div>
|
||||
</div>
|
||||
<p class="p1">每达到1314520礼物值,可解锁1次直购权</p>
|
||||
<p class="p2">礼物值</p>
|
||||
<p class="p3">当前可购买: X个</p>
|
||||
<div class="line">
|
||||
<span></span>
|
||||
<i class="i">0/2000</i>
|
||||
</div>
|
||||
<div class="buy">
|
||||
<img src="./images/diamond.png" alt="" class="diamond">
|
||||
3344购买
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 页面3 -->
|
||||
<div class="page3">
|
||||
<!-- 奖励任务 -->
|
||||
<div class="box">
|
||||
<!-- 文案 -->
|
||||
<i class="i2">突破热恋值,领取限时装扮奖励!
|
||||
女性用户获得粉色装扮,男性用户获得蓝色装扮
|
||||
每个用户仅能获取1次,将自动发放至「我的装扮」</i>
|
||||
<!-- 任务 -->
|
||||
<div class="tasks tasks1">
|
||||
<div class="giftBox">
|
||||
<div class="qp"></div>
|
||||
<!-- <img src="./images/logo.png" alt="" class="gift"> -->
|
||||
<div class="giftName">糖果恋人头饰</div>
|
||||
<div class="giftVAlue">13140热恋值</div>
|
||||
</div>
|
||||
<p class="p1">糖果恋人头饰-情人节限定</p>
|
||||
<p class="p2">热恋值</p>
|
||||
<p class="p3">有效期:24H</p>
|
||||
<div class="line">
|
||||
<span></span>
|
||||
<i class="i">0/1000</i>
|
||||
</div>
|
||||
<div class="buy">
|
||||
未完成
|
||||
</div>
|
||||
</div>
|
||||
<div class="tasks2">
|
||||
<div class="giftBox">
|
||||
<div class="qp"></div>
|
||||
<!-- <img src="./images/logo.png" alt="" class="gift"> -->
|
||||
<div class="giftName">糖果恋人气泡</div>
|
||||
<div class="giftVAlue">33440热恋值</div>
|
||||
</div>
|
||||
<p class="p1">糖果恋人气泡·情人节限定</p>
|
||||
<p class="p2">热恋值</p>
|
||||
<p class="p3">有效期:24H</p>
|
||||
<div class="line">
|
||||
<span></span>
|
||||
<i class="i">0/1000</i>
|
||||
</div>
|
||||
<div class="buy">
|
||||
未完成
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 前三 -->
|
||||
<div class="top3">
|
||||
<!-- 标题 -->
|
||||
<div class="title">热恋榜单</div>
|
||||
<!-- 榜单奖励 -->
|
||||
<img src="./images/page3Rule_icon.png" alt="" class="rule_icon">
|
||||
<!-- 前三列表 -->
|
||||
<div class="no1">
|
||||
<img src="./images/page3Top1.png" alt="" class="ts">
|
||||
<img src="./images/logo.png" alt="" class="leftlogo">
|
||||
<img src="./images/logo.png" alt="" class="rightlogo">
|
||||
<div class="name">我是男用户6...<i> & </i>我是女用户6...</div>
|
||||
<span class="score">9999热恋值</span>
|
||||
</div>
|
||||
<div class="no2">
|
||||
<img src="./images/page3Top2.png" alt="" class="ts">
|
||||
<img src="./images/logo.png" alt="" class="leftlogo">
|
||||
<img src="./images/logo.png" alt="" class="rightlogo">
|
||||
<div class="name">我是男用户6...<i> & </i>我是女用户6...</div>
|
||||
<span class="score">9999热恋值</span>
|
||||
</div>
|
||||
<div class="no3">
|
||||
<img src="./images/page3Top3.png" alt="" class="ts">
|
||||
<img src="./images/logo.png" alt="" class="leftlogo">
|
||||
<img src="./images/logo.png" alt="" class="rightlogo">
|
||||
<div class="name">我是男用户6...<i> & </i>我是女用户6...</div>
|
||||
<span class="score">9999热恋值</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 非前三 -->
|
||||
<ul>
|
||||
<li>
|
||||
<div class="num">4</div>
|
||||
<img src="./images/logo.png" alt="" class="leftTx">
|
||||
<img src="./images/logo.png" alt="" class="rightTx">
|
||||
<div class="leftName">我是男用户的...</div>
|
||||
<div class="rightName">我是男用户的...</div>
|
||||
<div class="score">0</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- 自己组合 -->
|
||||
<div class="my">
|
||||
<img src="./images/top.png" alt="" class="icon">
|
||||
<div class="scroll">
|
||||
<div class="myBox">
|
||||
<div class="num">4</div>
|
||||
<img src="./images/logo.png" alt="" class="leftTx">
|
||||
<img src="./images/logo.png" alt="" class="rightTx">
|
||||
<div class="leftName">1我是男用户的...</div>
|
||||
<div class="rightName">1我是男用户的...</div>
|
||||
<div class="score">0</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 购买记录弹窗 -->
|
||||
<div class="buyRecords">
|
||||
<div class="buyRecords_in">
|
||||
<!-- 标题 -->
|
||||
<img src="./images/page2RuleTitle.png" alt="" class="title">
|
||||
<!-- 列表 -->
|
||||
<ul>
|
||||
<li class="liTitle">
|
||||
<div>购买时间</div>
|
||||
<div>购买礼物</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="left">
|
||||
<p>2024/2/1</p>
|
||||
<span>00:00:00</span>
|
||||
</div>
|
||||
<div>xxxx礼物*1个</div>
|
||||
</li>
|
||||
<li class="null">
|
||||
<div>暂无购买记录~</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 活动规则弹窗 -->
|
||||
<div class="rule">
|
||||
<div class="rule_in">
|
||||
<!-- 标题 -->
|
||||
<img src="./images/ruleTitle.png" alt="" class="title">
|
||||
<!-- 列表 -->
|
||||
<ul>
|
||||
<li>一、活动时间:</li>
|
||||
<li> 2024年2月12日12:00:00—2024年2月16日23:59:59</li>
|
||||
<li> 二、热恋情人节</li>
|
||||
<li> 1. 萌动花盒</li>
|
||||
<li> a. 活动期间,1314钻石萌动花盒幸运礼物限时上线,花盒内有6种不同礼物,每次送出随机解锁1种</li>
|
||||
<li> b.每送出花盒内的一种礼物皆可点亮对应拼图,所有拼图全部点亮即可获得24H【初心萌动】铭牌奖励</li>
|
||||
<li> c. 拼图进度每日中午12点重置,活动期间每天均可完成1次 </li>
|
||||
<li>2. 甜蜜升温</li>
|
||||
<li> a. 活动期间,超珍稀礼物直购限时开放,赠送礼物每达指定价值即可解锁直购</li>
|
||||
<li>b. 赠送礼物价值每满52000钻,即可购买【心动一刹13140钻】</li>
|
||||
<li>c. 赠送礼物价值每满1314520钻,即可购买【绝对宠溺33440钻】</li>
|
||||
<li>d. 购买的礼物将直接放入背包当中</li>
|
||||
<li>3. 热恋时刻</li>
|
||||
<li>a. 活动时间:2月14日0:00:00—2月14日23:59:59</li>
|
||||
<li>b. 活动时间内,比拼热恋值(收到1钻=1热恋值)</li>
|
||||
<li>c. 活动时间内,热恋值满13140,可获得24H【糖果恋人】头像框奖励;热恋值满33440,可获得24H【糖果恋人】气泡奖励</li>
|
||||
<li>d. 大头号(牌照房房主)和家族长不可以组成CP,不参与榜单活动排名</li>
|
||||
<li>e. 榜单奖励:TOP1可额外获得情侣靓号5203344&3344520*30天;TOP1-3均可获得【挚爱唯一】专属铭牌、头像框、资料卡、专属开屏1天</li>
|
||||
<li>三、特别说明</li>
|
||||
<li>1.靓号持有者需要在活动结束后2周内确认靓号,否则将自动过期无法使用</li>
|
||||
<li>2.本活动最终解释权归音萌所有,本活动以及奖励与苹果公司无关;</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 活动结束弹窗 -->
|
||||
<div class="end">
|
||||
<div class="end_in">
|
||||
<img src="./images/endTitle.png" alt="" class="title">
|
||||
<div class="but">查看榜单</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 购买失败弹窗 -->
|
||||
<div class="failureBuy">
|
||||
<div class="failureBuy_in">
|
||||
<img src="./images/failureBuyTitle.png" alt="" class="title">
|
||||
<div class="text">钻石余额不足</div>
|
||||
<div class="but close">关闭</div>
|
||||
<div class="but ok">前往充值</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 购买成功弹窗 -->
|
||||
<div class="success">
|
||||
<div class="success_in">
|
||||
<img src="./images/buyTitle.png" alt="" class="title">
|
||||
<div class="giftListSuccess">
|
||||
<div class="qp"></div>
|
||||
<img src="./images/logo.png" alt="" class="gift">
|
||||
<div class="giftName">礼物名称</div>
|
||||
<div class="giftVAlue">0钻</div>
|
||||
</div>
|
||||
<div class="text">xxxx礼物名*1已发放至「我的背包」</div>
|
||||
<div class="but">知道了</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 二次确认购买弹窗 -->
|
||||
<div class="sure">
|
||||
<div class="sure_in">
|
||||
<img src="./images/sureTitle.png" alt="" class="title">
|
||||
<div class="text">购买成功后将自动发放至「我的背包」</div>
|
||||
<div class="giftListSuccess">
|
||||
<div class="qp"></div>
|
||||
<img src="./images/logo.png" alt="" class="gift">
|
||||
<div class="giftName">礼物名称</div>
|
||||
<div class="giftVAlue">0钻</div>
|
||||
</div>
|
||||
<div class="but close">下次再说</div>
|
||||
<div class="but ok">立即购买</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 榜单奖励弹窗 -->
|
||||
<div class="page3Rule">
|
||||
<div class="page3Rule_in">
|
||||
<img src="./images/page3Title.png" alt="" class="title">
|
||||
<div class="box">
|
||||
<img src="./images/page3Rule_inBg.png" alt="">
|
||||
</div>
|
||||
</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/route-constant.js"></script>
|
||||
<script src="./js/index.js"></script>
|
515
view/yinmeng/activity/2024-lover/js/index.js
Normal file
@@ -0,0 +1,515 @@
|
||||
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 activityCode1;
|
||||
var activityCode2;
|
||||
var activityCode;
|
||||
var diamondNum;
|
||||
var taskCode;
|
||||
var taskIcon;
|
||||
var taskName;
|
||||
var showValue;
|
||||
var countupTime;
|
||||
// 初始化函数
|
||||
$(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)
|
||||
}
|
||||
})
|
||||
getTask_MENG_DONG_HUA_HE();
|
||||
getTask_TIAN_MI_SHENG_WEN();
|
||||
getRank();
|
||||
}, 100)
|
||||
})
|
||||
// 获取榜单接口
|
||||
function getRank () {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'get',
|
||||
url: urlPrefix + '/act/2024Valentines/cpRank/getRank',
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
// 处理任务
|
||||
res.data.cpTaskList.forEach((val, i) => {
|
||||
console.log(res.status);
|
||||
if (val.status == 2) {
|
||||
$(`.page3 .box .tasks${i + 1} .buy`).addClass("act");
|
||||
$(`.page3 .box .tasks${i + 1} .buy`).text("已完成");
|
||||
$(`.page3 .box .tasks${i + 1} .line .i`).text(`${res.data.score > val.score ? val.score : res.data.score}/${val.score}`);
|
||||
$(`.page3 .box .tasks${i + 1} .line span`).css('width', `${(res.data.score / val.score) * 100 >= 100 ? 98.8 : (res.data.score / val.score) * 100}%`)
|
||||
} else {
|
||||
$(`.page3 .box .tasks${i + 1} .buy`).removeClass("act");
|
||||
$(`.page3 .box .tasks${i + 1} .buy`).text("未完成");
|
||||
$(`.page3 .box .tasks${i + 1} .line .i`).text(`${res.data.score > val.score ? val.score : res.data.score}/${val.score}`);
|
||||
$(`.page3 .box .tasks${i + 1} .line span`).css('width', `${(res.data.score / val.score) * 100 >= 100 ? 98.8 : (res.data.score / val.score) * 100}%`)
|
||||
}
|
||||
});
|
||||
// 处理前三
|
||||
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({
|
||||
leftAvatar: './images/logo.png',
|
||||
rightAvatar: './images/logo.png',
|
||||
leftNick: '虚位以待',
|
||||
rightNick: '虚位以待',
|
||||
score: "0"
|
||||
})
|
||||
top3.push(...arr)
|
||||
}
|
||||
top3.forEach((res, i) => {
|
||||
$(`.page3 .top3 .no${i + 1} .leftlogo`).attr('src', res.leftAvatar);
|
||||
$(`.page3 .top3 .no${i + 1} .rightlogo`).attr('src', res.rightAvatar);
|
||||
$(`.page3 .top3 .no${i + 1} .name`).html(`${res.leftNick.length > 6 ? res.leftNick.slice(0, 6) + '...' : res.leftNick}<i> & </i>${res.rightNick.length > 6 ? res.rightNick.slice(0, 6) + '...' : res.rightNick}`);
|
||||
$(`.page3 .top3 .no${i + 1} .score`).text(unitProcessing(res.score, 10000, 1, 'w') + '热恋值')
|
||||
})
|
||||
// 非前三
|
||||
var str = '';
|
||||
$('.page3 ul li').remove();
|
||||
notTop3.forEach((res, i) => {
|
||||
str += `
|
||||
<li>
|
||||
<div class="num">${res.ranking}</div>
|
||||
<img src="${res.leftAvatar}" alt="" class="leftTx">
|
||||
<img src="${res.rightAvatar}" alt="" class="rightTx">
|
||||
<div class="leftName">${res.leftNick}</div>
|
||||
<div class="rightName">${res.rightNick}</div>
|
||||
<div class="score">${unitProcessing(res.score, 10000, 1, 'w')}</div>
|
||||
</li>
|
||||
`
|
||||
})
|
||||
$('.page3 ul').append(str);
|
||||
// 处理自己榜单排名
|
||||
$('.page3 .my .myBox').remove();
|
||||
var strMy = '';
|
||||
res.data.meRankList.forEach((res, i) => {
|
||||
strMy += `
|
||||
<div class="myBox">
|
||||
<div class="num">${res.ranking == 0 ? '未上榜' : res.ranking}</div>
|
||||
<img src="${res.leftAvatar}" alt="" class="leftTx">
|
||||
<img src="${res.rightAvatar}" alt="" class="rightTx">
|
||||
<div class="leftName">${res.leftNick}</div>
|
||||
<div class="rightName">${res.rightNick}</div>
|
||||
<div class="score">${unitProcessing(res.score, 10000, 1, 'w')}</div>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
$('.page3 .my .scroll').append(strMy)
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 获取萌动礼盒点亮任务接口
|
||||
function activityInfo () {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'get',
|
||||
url: urlPrefix + '/activity/info',
|
||||
data: { activityCode: activityCode2 },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
if (res.data.endTime - res.timestamp > 0) {
|
||||
countup(res.data.endTime - res.timestamp);
|
||||
} else {
|
||||
$('.end').show();
|
||||
bodyScroolFun(true);
|
||||
}
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 倒计时
|
||||
function countup (leftTime) {
|
||||
clearTimeout(countupTime)
|
||||
//获取当前时间
|
||||
// var now = nowTime;
|
||||
var d = 0;
|
||||
var h = 0;
|
||||
var m = 0;
|
||||
var s = 0;
|
||||
//定义变量 d,h,m,s保存倒计时的时间
|
||||
var d, h, m, s;
|
||||
//递归每秒调⽤countTime⽅法,显⽰动态时间效果
|
||||
if (leftTime > 0) {
|
||||
d = getzf(Math.floor(leftTime / 1000 / 60 / 60 / 24));
|
||||
h = getzf(Math.floor(leftTime / 1000 / 60 / 60 % 24));
|
||||
m = getzf(Math.floor(leftTime / 1000 / 60 % 60));
|
||||
s = getzf(Math.floor(leftTime / 1000 % 60));
|
||||
//将倒计时赋值到div中
|
||||
$('.page2 .box .i1').text(`剩余时间:${d}天${h}时${m}分${s}秒`);
|
||||
} else {
|
||||
$('.page2 .box .i1').text(`剩余时间:已结束`);
|
||||
|
||||
}
|
||||
if (leftTime > 0) {
|
||||
leftTime = leftTime - 1000;
|
||||
}
|
||||
countupTime = setTimeout(function () {
|
||||
countup(leftTime);
|
||||
}, 1000);
|
||||
}
|
||||
// 获取萌动礼盒点亮任务接口
|
||||
function getTask_MENG_DONG_HUA_HE () {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'get',
|
||||
url: urlPrefix + '/activity/task/user',
|
||||
data: { componentCode: "MENG_DONG_HUA_HE" },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
// 渲染合成列表
|
||||
$('.page1 .bg1 .giftListBox .giftList').remove();
|
||||
var str = '';
|
||||
res.data[0].children.forEach((res, i) => {
|
||||
str += `
|
||||
<div class="giftList giftList${i + 1} ${res.completed ? '' : 'filter'}">
|
||||
<div class="qp"></div>
|
||||
<img src="${res.taskIcon}" alt="" class="gift">
|
||||
<div class="giftName">${res.taskName}</div>
|
||||
<div class="giftVAlue">${res.taskValue}钻</div>
|
||||
</div>
|
||||
`
|
||||
});
|
||||
$('.page1 .bg1 .giftListBox').append(str);
|
||||
activityCode1 = 'ACT_2024_VALENTINES_DAY';
|
||||
recordPage(activityCode1, 'MENG_DONG_HUA_HE',);
|
||||
if (res.data[0].reward.granted) {
|
||||
$('.page1 .bg1 .p3').show();
|
||||
} else {
|
||||
$('.page1 .bg1 .p3').hide();
|
||||
}
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 获取甜蜜升温任务接口
|
||||
function getTask_TIAN_MI_SHENG_WEN () {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'get',
|
||||
url: urlPrefix + '/activity/task/user',
|
||||
data: { componentCode: "TIAN_MI_SHENG_WEN" },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
activityCode2 = 'ACT_2024_VALENTINES_DAY';
|
||||
res.data.forEach((res, i) => {
|
||||
$(`.page2 .box .tasks${i + 1} .giftBox .gift`).attr('src', res.taskIcon);
|
||||
$(`.page2 .box .tasks${i + 1} .giftBox .giftName`).text(res.reward.rewardName);
|
||||
$(`.page2 .box .tasks${i + 1} .giftBox .giftVAlue`).text(res.reward.showValue + '钻');
|
||||
$(`.page2 .box .tasks${i + 1} .p1`).text(`每达到${res.taskValue}礼物值,可解锁1次直购权`);
|
||||
$(`.page2 .box .tasks${i + 1} .line .i`).text(`${res.completeValue % res.taskValue}/${res.taskValue}`);
|
||||
$(`.page2 .box .tasks${i + 1} .line span`).css('width', `${(res.completeValue % res.taskValue / res.taskValue) * 100 >= 100 ? 98.8 : (res.completeValue % res.taskValue / res.taskValue) * 100}%`);
|
||||
$(`.page2 .box .tasks${i + 1} .p3`).text(`当前可购买: ${Math.floor(res.activityValue / res.taskValue)}个`);
|
||||
$(`.page2 .box .tasks${i + 1} .buy`).html(`<img src="./images/diamond.png" alt="" class="diamond">
|
||||
${res.reward.showValue}购买`);
|
||||
$(`.page2 .box .tasks${i + 1} .buy`).attr('activityCode', res.activityCode);
|
||||
$(`.page2 .box .tasks${i + 1} .buy`).attr('taskCode', res.taskCode);
|
||||
$(`.page2 .box .tasks${i + 1} .buy`).attr('diamondNum', res.reward.showValue);
|
||||
$(`.page2 .box .tasks${i + 1} .buy`).attr('num', Math.floor(res.activityValue / res.taskValue));
|
||||
$(`.page2 .box .tasks${i + 1} .buy`).attr('taskIcon', res.taskIcon);
|
||||
$(`.page2 .box .tasks${i + 1} .buy`).attr('taskName', res.reward.rewardName);
|
||||
$(`.page2 .box .tasks${i + 1} .buy`).attr('showValue', res.reward.showValue);
|
||||
})
|
||||
activityInfo();
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 购买接口
|
||||
function exchange (activityCode, diamondNum, taskCode, taskIcon, taskName, showValue) {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'post',
|
||||
url: urlPrefix + '/activity/task/exchange',
|
||||
data: { activityCode, diamondNum, taskCode, num: 1 },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
$('.success .success_in .giftListSuccess .gift').attr('src', taskIcon);
|
||||
$('.success .success_in .giftListSuccess .giftName').text(taskName);
|
||||
$('.success .success_in .giftListSuccess .giftVAlue').text(`${showValue}钻`);
|
||||
$('.success .success_in .text').text(`${taskName}*1已发放至「我的背包」`);
|
||||
$('.success').show();
|
||||
getTask_TIAN_MI_SHENG_WEN();
|
||||
bodyScroolFun(true);
|
||||
} else if (res.code == 31005) {
|
||||
$('.failureBuy').show();
|
||||
bodyScroolFun(true);
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 购买礼物按钮
|
||||
$(`.page2 .box .taskss .buy`).click(function () {
|
||||
var num = $(this).attr('num');
|
||||
activityCode = $(this).attr('activityCode');
|
||||
diamondNum = $(this).attr('diamondNum');
|
||||
taskCode = $(this).attr('taskCode');
|
||||
taskIcon = $(this).attr('taskIcon');
|
||||
taskName = $(this).attr('taskName');
|
||||
showValue = $(this).attr('showValue');
|
||||
if (num > 0) {//true
|
||||
$('.sure .sure_in .giftListSuccess .gift').attr('src', taskIcon);
|
||||
$('.sure .sure_in .giftListSuccess .giftName').text(taskName);
|
||||
$('.sure .sure_in .giftListSuccess .giftVAlue').text(showValue + '钻');
|
||||
$('.sure').show();
|
||||
bodyScroolFun(true);
|
||||
} else {
|
||||
toastMsg('当前购买次数不足~')
|
||||
}
|
||||
});
|
||||
// 二次确认弹窗
|
||||
$('.sure .sure_in .ok').click(function () {
|
||||
exchange(activityCode, diamondNum, taskCode, taskIcon, taskName, showValue);
|
||||
$('.sure').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
// tab切换
|
||||
$('.tab div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$('.page1,.page2,.page3').hide();
|
||||
$(`.page${i}`).show();
|
||||
$(this).addClass(`act`).siblings().removeClass('act')
|
||||
if (i == 3) {
|
||||
getRank();
|
||||
}
|
||||
})
|
||||
// 记录接口
|
||||
function recordPage (activityCode, componentCode) {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'get',
|
||||
url: urlPrefix + '/activity/task/user/record/page',
|
||||
data: { activityCode, componentCode, pageNum: 1, pageSize: 9999 },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
var str = '';
|
||||
if (componentCode == 'MENG_DONG_HUA_HE') {
|
||||
$('.page1 .bg2 ul li').remove()
|
||||
if (res.data.records.length <= 0) {
|
||||
str = `<li class="null"><div>暂无点亮记录,快去集齐礼物吧~</div></li>`
|
||||
} else {
|
||||
res.data.records.forEach(res => {
|
||||
str += `
|
||||
<li class="liTitle">
|
||||
<div>点亮时间</div>
|
||||
<div>获得奖励</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="left">
|
||||
<p>${dateFormat(res.createTime, 'yyyy/MM/dd')}</p>
|
||||
<span>${dateFormat(res.createTime, 'hh/mm/ss')}</span>
|
||||
</div>
|
||||
<div>${res.rewardName}铭牌</div>
|
||||
</li>
|
||||
`})
|
||||
}
|
||||
$('.page1 .bg2 ul').append(str);
|
||||
} else if (componentCode == 'TIAN_MI_SHENG_WEN') {
|
||||
$('.buyRecords .buyRecords_in ul li').remove();
|
||||
if (res.data.records.length <= 0) {
|
||||
str = `<li class="null"><div>暂无购买记录~</div></li>`
|
||||
} else {
|
||||
res.data.records.forEach(res => {
|
||||
str += `
|
||||
<li class="liTitle">
|
||||
<div>购买时间</div>
|
||||
<div>购买礼物</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="left">
|
||||
<p>${dateFormat(res.createTime, 'yyyy/MM/dd')}</p>
|
||||
<span>${dateFormat(res.createTime, 'hh/mm/ss')}</span>
|
||||
</div>
|
||||
<div>${res.rewardName}礼物*1个</div>
|
||||
</li>
|
||||
`})
|
||||
}
|
||||
$('.buyRecords .buyRecords_in ul').append(str);
|
||||
}
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 打开购买记录
|
||||
$('.page2 .box .page2Buy_icon').click(function () {
|
||||
recordPage(activityCode2, 'TIAN_MI_SHENG_WEN',);
|
||||
$('.buyRecords').show();
|
||||
bodyScroolFun(true);
|
||||
})
|
||||
|
||||
// 关闭购买记录
|
||||
$('.buyRecords').click(function () {
|
||||
$('.buyRecords').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
|
||||
// 打开规则记录
|
||||
$('.header .rule_icon').click(function () {
|
||||
$('.rule').show();
|
||||
bodyScroolFun(true);
|
||||
})
|
||||
|
||||
// 关闭规则记录
|
||||
$('.rule').click(function () {
|
||||
$('.rule').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
|
||||
// 自己榜单展开按钮
|
||||
var scrollBool = true;
|
||||
$('.page3 .my .icon').click(function () {
|
||||
$('.page3 .my .scroll').scrollTop(0)
|
||||
if (scrollBool) {
|
||||
$('.page3 .my').css({ "height": "8.74667rem", "background": "url(./images/myBg.png) no-repeat", "background-size": "100% 100%" })
|
||||
$('.page3 .my .scroll').css({ "overflow-y": "scroll" })
|
||||
$('.page3 .my .icon').attr('src', './images/bottom.png')
|
||||
bodyScroolFun(true);
|
||||
} else {
|
||||
$('.page3 .my').css({ "height": "2.2rem", "background": "url(./images/myBg2.png) no-repeat", "background-size": "100% 100%" })
|
||||
$('.page3 .my .scroll').css({ "overflow-y": "hidden" })
|
||||
$('.page3 .my .icon').attr('src', './images/top.png')
|
||||
bodyScroolFun(false);
|
||||
}
|
||||
scrollBool = !scrollBool;
|
||||
})
|
||||
|
||||
// 关闭活动结束弹窗
|
||||
$('.end .end_in .but').click(function () {
|
||||
$('.page1,.page2,.page3').hide();
|
||||
$(`.page${3}`).show();
|
||||
$('.tab div').removeClass('act');
|
||||
$('.tab div').eq(2).addClass('act');
|
||||
$('.end').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
|
||||
// 关闭充值弹窗
|
||||
$('.failureBuy .failureBuy_in .close').click(function () {
|
||||
$('.failureBuy').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
|
||||
// 跳转充值弹窗
|
||||
$('.failureBuy .failureBuy_in .ok').click(function () {
|
||||
$('.failureBuy').hide();
|
||||
bodyScroolFun(false);
|
||||
if (browser.android) {
|
||||
window.androidJsObj.openChargePage()
|
||||
// tools.nativeUtils.jumpAppointPage('RECHARGE_PAGE')
|
||||
} else if (browser.ios) {
|
||||
window.webkit.messageHandlers.openChargePage.postMessage(null)
|
||||
}
|
||||
})
|
||||
|
||||
// 关闭购买成功弹窗
|
||||
$('.success .success_in .but').click(function () {
|
||||
$('.success').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
|
||||
// 关闭二次确认弹窗
|
||||
$('.sure .sure_in .close').click(function () {
|
||||
$('.sure').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
|
||||
// 关闭榜单奖励
|
||||
$('.page3Rule').click(function () {
|
||||
$('.page3Rule').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
|
||||
// 打开榜单奖励
|
||||
$('.page3 .top3 .rule_icon').click(function () {
|
||||
$('.page3Rule').show();
|
||||
bodyScroolFun(true);
|
||||
})
|
||||
|
||||
//补0操作
|
||||
function getzf (num) {
|
||||
if (parseInt(num) < 10) {
|
||||
num = '0' + num;
|
||||
}
|
||||
return num;
|
||||
}
|
564
view/yinmeng/activity/2024-yearBenefits/css/index.css
Normal file
@@ -0,0 +1,564 @@
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
background: linear-gradient(0deg, #FB88A9 0%, #FFBECE 61%);
|
||||
}
|
||||
|
||||
.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: 8.4rem;
|
||||
position: relative;
|
||||
margin: 0 auto 0;
|
||||
background: url(../images/header.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.header .rule_icon {
|
||||
width: 0.62667rem;
|
||||
height: 1.73333rem;
|
||||
position: absolute;
|
||||
top: 2.57333rem;
|
||||
right: 0rem;
|
||||
}
|
||||
|
||||
.tab {
|
||||
width: 8rem;
|
||||
height: 1.17333rem;
|
||||
line-height: 1.17333rem;
|
||||
margin: 0.10667rem auto 0.58667rem;
|
||||
background: #fff;
|
||||
border-radius: 1.17333rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.tab div {
|
||||
color: #BB4A56;
|
||||
font-size: 0.4rem;
|
||||
text-align: center;
|
||||
width: 4rem;
|
||||
height: 1.17333rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.tab .tab1 {
|
||||
background: url(../images/tab1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.tab .tab2 {
|
||||
background: url(../images/tab2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.page1 .pageImg1 {
|
||||
display: block;
|
||||
width: 9.2rem;
|
||||
height: 20.58667rem;
|
||||
margin: 0 auto 0.34667rem;
|
||||
}
|
||||
|
||||
.page1 .pageImg2 {
|
||||
display: block;
|
||||
width: 9.2rem;
|
||||
height: 16.33333rem;
|
||||
margin: 0 auto 0.46667rem;
|
||||
}
|
||||
|
||||
.page2 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.page2 .box {
|
||||
width: 9.2rem;
|
||||
height: 17.14667rem;
|
||||
background: url(../images/page2Bg.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
margin: 0 auto 0.48rem;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.page2 .box .listTab {
|
||||
width: 7.38667rem;
|
||||
height: 1.17333rem;
|
||||
line-height: 1.17333rem;
|
||||
border-radius: 1.17333rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 0.58667rem auto 2.06667rem;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.page2 .box .listTab div {
|
||||
width: 3.72rem;
|
||||
color: #BB4A56;
|
||||
font-size: 0.4rem;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.page2 .box .listTab .listTab1 {
|
||||
background: url(../images/listTab1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.page2 .box .listTab .listTab2 {
|
||||
background: url(../images/listTab2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.page2 .box .topBox {
|
||||
position: relative;
|
||||
width: 8.26667rem;
|
||||
height: 5.33333rem;
|
||||
margin: 0 auto -0.8rem;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top1 {
|
||||
width: 2.54667rem;
|
||||
height: 2.78667rem;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: -1.25333rem;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top1 .ts {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top1 .tx {
|
||||
width: 2.25333rem;
|
||||
height: 2.18667rem;
|
||||
position: absolute;
|
||||
top: 0.05333rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top1 .name {
|
||||
width: 100%;
|
||||
height: 1.12rem;
|
||||
line-height: 1.12rem;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
font-size: 0.32rem;
|
||||
font-weight: 400;
|
||||
background: url(../images/name1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: absolute;
|
||||
top: 2.66667rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top1 .score {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #AD4868;
|
||||
font-size: 0.29333rem;
|
||||
font-weight: 400;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 3.9rem;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top2 {
|
||||
width: 2.09333rem;
|
||||
height: 2.28rem;
|
||||
position: absolute;
|
||||
left: 0.33333rem;
|
||||
top: -0.37333rem;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top2 .ts {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top2 .tx {
|
||||
width: 1.8rem;
|
||||
height: 1.76rem;
|
||||
position: absolute;
|
||||
top: 0.05333rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top2 .name {
|
||||
width: 100%;
|
||||
height: 1.12rem;
|
||||
line-height: 1.12rem;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
font-size: 0.32rem;
|
||||
font-weight: 400;
|
||||
background: url(../images/name2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: absolute;
|
||||
top: 2.26667rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top2 .score {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #AD4868;
|
||||
font-size: 0.29333rem;
|
||||
font-weight: 400;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 3.5rem;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top3 {
|
||||
width: 2.09333rem;
|
||||
height: 2.28rem;
|
||||
position: absolute;
|
||||
right: 0.33333rem;
|
||||
top: -0.37333rem;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top3 .ts {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top3 .tx {
|
||||
width: 1.8rem;
|
||||
height: 1.76rem;
|
||||
position: absolute;
|
||||
top: 0.05333rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top3 .name {
|
||||
width: 100%;
|
||||
height: 1.12rem;
|
||||
line-height: 1.12rem;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
font-size: 0.32rem;
|
||||
font-weight: 400;
|
||||
background: url(../images/name3.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: absolute;
|
||||
top: 2.26667rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.page2 .box .topBox .top3 .score {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #AD4868;
|
||||
font-size: 0.29333rem;
|
||||
font-weight: 400;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 3.5rem;
|
||||
}
|
||||
|
||||
.page2 .box ul {
|
||||
width: 8.56rem;
|
||||
margin: 0 auto 1.84rem;
|
||||
overflow-y: scroll;
|
||||
height: 6.6rem;
|
||||
}
|
||||
|
||||
.page2 .box ul::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.page2 .box ul li {
|
||||
width: 100%;
|
||||
height: 1.6rem;
|
||||
line-height: 1.6rem;
|
||||
margin-bottom: 0.2rem;
|
||||
background: #FFF7F9;
|
||||
border-radius: 0.16rem;
|
||||
}
|
||||
|
||||
.page2 .box ul li .num {
|
||||
width: 0.8rem;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
color: #AD4868;
|
||||
font-size: 0.48rem;
|
||||
font-weight: bold;
|
||||
float: left;
|
||||
margin-right: 0.29333rem;
|
||||
}
|
||||
|
||||
.page2 .box ul li .tx {
|
||||
width: 1.09333rem;
|
||||
height: 1.09333rem;
|
||||
box-sizing: border-box;
|
||||
border: 0.01333rem solid #FE71B8;
|
||||
float: left;
|
||||
margin-top: 0.25333rem;
|
||||
margin-right: 0.22667rem;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.page2 .box ul li .name {
|
||||
width: 2.06667rem;
|
||||
height: 100%;
|
||||
color: #AD4868;
|
||||
font-size: 0.34667rem;
|
||||
font-weight: 500;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.page2 .box ul li .score {
|
||||
float: right;
|
||||
color: #AD4868;
|
||||
font-size: 0.29333rem;
|
||||
font-weight: 400;
|
||||
margin-right: 0.37333rem;
|
||||
}
|
||||
|
||||
.page2 .box .my {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 1.84rem;
|
||||
line-height: 1.84rem;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: url(../images/my.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.page2 .box .my .num {
|
||||
width: 0.8rem;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
color: #AD4868;
|
||||
font-size: 0.26667rem;
|
||||
font-weight: 400;
|
||||
float: left;
|
||||
margin-right: 0.29333rem;
|
||||
margin-left: 0.32rem;
|
||||
}
|
||||
|
||||
.page2 .box .my .tx {
|
||||
width: 1.09333rem;
|
||||
height: 1.09333rem;
|
||||
box-sizing: border-box;
|
||||
border: 0.01333rem solid #FE71B8;
|
||||
float: left;
|
||||
margin-top: 0.38667rem;
|
||||
margin-right: 0.22667rem;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.page2 .box .my .name {
|
||||
width: 2.06667rem;
|
||||
height: 100%;
|
||||
color: #AD4868;
|
||||
font-size: 0.34667rem;
|
||||
font-weight: 500;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.page2 .box .my .score {
|
||||
float: right;
|
||||
color: #AD4868;
|
||||
font-size: 0.29333rem;
|
||||
font-weight: 400;
|
||||
margin-right: 0.37333rem;
|
||||
}
|
||||
|
||||
.bootom {
|
||||
margin-bottom: 0.26667rem;
|
||||
}
|
||||
|
||||
.bootom p {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #7E0033;
|
||||
font-size: 0.32rem;
|
||||
font-weight: 400;
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
|
||||
.rule {
|
||||
display: none;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
.rule .rule_in {
|
||||
width: 8.18667rem;
|
||||
height: 13.53333rem;
|
||||
background: url(../images/rule_bg.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.rule .rule_in .tabRule {
|
||||
width: 6.50667rem;
|
||||
height: 1.01333rem;
|
||||
line-height: 1.01333rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
border-radius: 0.64rem;
|
||||
background: #fff;
|
||||
margin: 0.6rem auto 0.25333rem;
|
||||
}
|
||||
|
||||
.rule .rule_in .tabRule div {
|
||||
text-align: center;
|
||||
color: #CA5987;
|
||||
font-size: 0.37333rem;
|
||||
font-weight: 500;
|
||||
width: 3.25333rem;
|
||||
}
|
||||
|
||||
.rule .rule_in .tabRule .act {
|
||||
background: url(../images/rule_act.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.rule .rule_in .box1 {
|
||||
width: 7.34667rem;
|
||||
height: 11.4rem;
|
||||
overflow-y: scroll;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.rule .rule_in .box1::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rule .rule_in .box1 img {
|
||||
display: block;
|
||||
width: 7.25333rem;
|
||||
}
|
||||
|
||||
.rule .rule_in .box2 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rule .rule_in .box2 .box2Tab {
|
||||
width: 4.74667rem;
|
||||
height: 0.8rem;
|
||||
margin: 0 auto 0.26667rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.rule .rule_in .box2 .box2Tab div {
|
||||
width: 2.34667rem;
|
||||
}
|
||||
|
||||
.rule .rule_in .box2 .box2Tab .tab1 {
|
||||
background: url(../images/box2tab1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.rule .rule_in .box2 .box2Tab .tab2 {
|
||||
background: url(../images/box2tab2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.rule .rule_in .box2 .box2Tab .act1 {
|
||||
background: url(../images/box2tabAct1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.rule .rule_in .box2 .box2Tab .act2 {
|
||||
background: url(../images/box2tabAct2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.rule .rule_in .box2 .imgBox {
|
||||
width: 7.52rem;
|
||||
height: 10rem;
|
||||
margin: 0 auto;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.rule .rule_in .box2 .imgBox::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rule .rule_in .box2 .imgBox img {
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
581
view/yinmeng/activity/2024-yearBenefits/css/index.scss
Normal file
@@ -0,0 +1,581 @@
|
||||
@function px2rem($px) {
|
||||
@return $px / 75+rem;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
background: linear-gradient(0deg, #FB88A9 0%, #FFBECE 61%);
|
||||
}
|
||||
|
||||
// 返回按钮
|
||||
.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(630);
|
||||
position: relative;
|
||||
margin: 0 auto 0;
|
||||
background: url(../images/header.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
|
||||
.rule_icon {
|
||||
width: px2rem(47);
|
||||
height: px2rem(130);
|
||||
position: absolute;
|
||||
top: px2rem(193);
|
||||
right: px2rem(0);
|
||||
}
|
||||
}
|
||||
|
||||
.tab {
|
||||
width: px2rem(600);
|
||||
height: px2rem(88);
|
||||
line-height: px2rem(88);
|
||||
margin: px2rem(8) auto px2rem(44);
|
||||
background: #fff;
|
||||
border-radius: px2rem(88);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
div {
|
||||
color: #BB4A56;
|
||||
font-size: px2rem(30);
|
||||
text-align: center;
|
||||
width: px2rem(300);
|
||||
height: px2rem(88);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.tab1 {
|
||||
background: url(../images/tab1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
color: rgba(0, 0, 0, .0);
|
||||
}
|
||||
|
||||
.tab2 {
|
||||
background: url(../images/tab2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
color: rgba(0, 0, 0, .0);
|
||||
}
|
||||
}
|
||||
|
||||
.page1 {
|
||||
// display: none;
|
||||
|
||||
.pageImg1 {
|
||||
display: block;
|
||||
width: px2rem(690);
|
||||
height: px2rem(1544);
|
||||
margin: 0 auto px2rem(26);
|
||||
}
|
||||
|
||||
.pageImg2 {
|
||||
display: block;
|
||||
width: px2rem(690);
|
||||
height: px2rem(1225);
|
||||
margin: 0 auto px2rem(35);
|
||||
}
|
||||
}
|
||||
|
||||
.page2 {
|
||||
display: none;
|
||||
|
||||
.box {
|
||||
width: px2rem(690);
|
||||
height: px2rem(1286);
|
||||
background: url(../images/page2Bg.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
margin: 0 auto px2rem(36);
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
||||
.listTab {
|
||||
width: px2rem(554);
|
||||
height: px2rem(88);
|
||||
line-height: px2rem(88);
|
||||
border-radius: px2rem(88);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: px2rem(44) auto px2rem(155);
|
||||
background: #fff;
|
||||
|
||||
div {
|
||||
width: px2rem(279);
|
||||
color: #BB4A56;
|
||||
font-size: px2rem(30);
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.listTab1 {
|
||||
background: url(../images/listTab1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
color: rgba(0, 0, 0, .0);
|
||||
}
|
||||
|
||||
.listTab2 {
|
||||
background: url(../images/listTab2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
;
|
||||
color: rgba(0, 0, 0, .0);
|
||||
}
|
||||
}
|
||||
|
||||
.topBox {
|
||||
position: relative;
|
||||
width: px2rem(620);
|
||||
height: px2rem(400);
|
||||
margin: 0 auto px2rem(-60);
|
||||
|
||||
.top1 {
|
||||
width: px2rem(191);
|
||||
height: px2rem(209);
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: px2rem(-94);
|
||||
|
||||
.ts {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tx {
|
||||
width: px2rem(169);
|
||||
height: px2rem(164);
|
||||
position: absolute;
|
||||
top: px2rem(4);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.name {
|
||||
width: 100%;
|
||||
height: px2rem(84);
|
||||
line-height: px2rem(84);
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
font-size: px2rem(24);
|
||||
font-weight: 400;
|
||||
background: url(../images/name1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: absolute;
|
||||
top: px2rem(200);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.score {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #AD4868;
|
||||
font-size: px2rem(22);
|
||||
font-weight: 400;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 3.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
.top2 {
|
||||
width: px2rem(157);
|
||||
height: px2rem(171);
|
||||
position: absolute;
|
||||
left: px2rem(25);
|
||||
top: px2rem(-28);
|
||||
|
||||
.ts {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tx {
|
||||
width: px2rem(135);
|
||||
height: px2rem(132);
|
||||
position: absolute;
|
||||
top: px2rem(4);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.name {
|
||||
width: 100%;
|
||||
height: px2rem(84);
|
||||
line-height: px2rem(84);
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
font-size: px2rem(24);
|
||||
font-weight: 400;
|
||||
background: url(../images/name2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: absolute;
|
||||
top: px2rem(170);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.score {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #AD4868;
|
||||
font-size: px2rem(22);
|
||||
font-weight: 400;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 3.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.top3 {
|
||||
width: px2rem(157);
|
||||
height: px2rem(171);
|
||||
position: absolute;
|
||||
right: px2rem(25);
|
||||
top: px2rem(-28);
|
||||
|
||||
.ts {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tx {
|
||||
width: px2rem(135);
|
||||
height: px2rem(132);
|
||||
position: absolute;
|
||||
top: px2rem(4);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.name {
|
||||
width: 100%;
|
||||
height: px2rem(84);
|
||||
line-height: px2rem(84);
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
font-size: px2rem(24);
|
||||
font-weight: 400;
|
||||
background: url(../images/name3.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: absolute;
|
||||
top: px2rem(170);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.score {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #AD4868;
|
||||
font-size: px2rem(22);
|
||||
font-weight: 400;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 3.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
width: px2rem(642);
|
||||
margin: 0 auto px2rem(138);
|
||||
overflow-y: scroll;
|
||||
height: 6.6rem;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
li {
|
||||
width: 100%;
|
||||
height: px2rem(120);
|
||||
line-height: px2rem(120);
|
||||
margin-bottom: px2rem(15);
|
||||
background: #FFF7F9;
|
||||
border-radius: px2rem(12);
|
||||
|
||||
.num {
|
||||
width: px2rem(60);
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
color: #AD4868;
|
||||
font-size: px2rem(36);
|
||||
font-weight: bold;
|
||||
float: left;
|
||||
margin-right: px2rem(22);
|
||||
}
|
||||
|
||||
.tx {
|
||||
width: px2rem(82);
|
||||
height: px2rem(82);
|
||||
box-sizing: border-box;
|
||||
border: px2rem(1) solid #FE71B8;
|
||||
float: left;
|
||||
margin-top: px2rem(19);
|
||||
margin-right: px2rem(17);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.name {
|
||||
width: px2rem(155);
|
||||
height: 100%;
|
||||
color: #AD4868;
|
||||
font-size: px2rem(26);
|
||||
font-weight: 500;
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.score {
|
||||
float: right;
|
||||
color: #AD4868;
|
||||
font-size: px2rem(22);
|
||||
font-weight: 400;
|
||||
margin-right: px2rem(28);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.my {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: px2rem(138);
|
||||
line-height: px2rem(138);
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: url(../images/my.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
overflow: hidden;
|
||||
|
||||
.num {
|
||||
width: px2rem(60);
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
color: #AD4868;
|
||||
font-size: px2rem(20);
|
||||
font-weight: 400;
|
||||
float: left;
|
||||
margin-right: px2rem(22);
|
||||
margin-left: px2rem(24);
|
||||
}
|
||||
|
||||
.tx {
|
||||
width: px2rem(82);
|
||||
height: px2rem(82);
|
||||
box-sizing: border-box;
|
||||
border: px2rem(1) solid #FE71B8;
|
||||
float: left;
|
||||
margin-top: px2rem(29);
|
||||
margin-right: px2rem(17);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.name {
|
||||
width: px2rem(155);
|
||||
height: 100%;
|
||||
color: #AD4868;
|
||||
font-size: px2rem(26);
|
||||
font-weight: 500;
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.score {
|
||||
float: right;
|
||||
color: #AD4868;
|
||||
font-size: px2rem(22);
|
||||
font-weight: 400;
|
||||
margin-right: px2rem(28);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bootom {
|
||||
margin-bottom: px2rem(20);
|
||||
|
||||
p {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #7E0033;
|
||||
font-size: px2rem(24);
|
||||
font-weight: 400;
|
||||
margin-bottom: px2rem(15);
|
||||
}
|
||||
}
|
||||
|
||||
.rule {
|
||||
display: none;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, .8);
|
||||
z-index: 99;
|
||||
|
||||
.rule_in {
|
||||
width: px2rem(614);
|
||||
height: px2rem(1015);
|
||||
background: url(../images/rule_bg.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
overflow: hidden;
|
||||
|
||||
.tabRule {
|
||||
width: px2rem(488);
|
||||
height: px2rem(76);
|
||||
line-height: px2rem(76);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
border-radius: px2rem(48);
|
||||
background: #fff;
|
||||
margin: px2rem(45) auto px2rem(19);
|
||||
|
||||
div {
|
||||
text-align: center;
|
||||
color: #CA5987;
|
||||
font-size: px2rem(28);
|
||||
font-weight: 500;
|
||||
width: px2rem(244);
|
||||
}
|
||||
|
||||
.act {
|
||||
background: url(../images/rule_act.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.box1 {
|
||||
width: px2rem(551);
|
||||
height: 11.4rem;
|
||||
overflow-y: scroll;
|
||||
margin: 0 auto;
|
||||
// display: none;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: px2rem(544);
|
||||
}
|
||||
}
|
||||
|
||||
.box2 {
|
||||
display: none;
|
||||
|
||||
.box2Tab {
|
||||
width: px2rem(356);
|
||||
height: px2rem(60);
|
||||
margin: 0 auto px2rem(20);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
div {
|
||||
width: px2rem(176);
|
||||
}
|
||||
|
||||
.tab1 {
|
||||
background: url(../images/box2tab1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.tab2 {
|
||||
background: url(../images/box2tab2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.act1 {
|
||||
background: url(../images/box2tabAct1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.act2 {
|
||||
background: url(../images/box2tabAct2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.imgBox {
|
||||
width: px2rem(564);
|
||||
height: 10rem;
|
||||
margin: 0 auto;
|
||||
overflow-y: scroll;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
BIN
view/yinmeng/activity/2024-yearBenefits/images/box2tab1.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/box2tab2.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/box2tabAct1.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/box2tabAct2.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/header.png
Normal file
After Width: | Height: | Size: 461 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/img1.png
Normal file
After Width: | Height: | Size: 192 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/img2.png
Normal file
After Width: | Height: | Size: 223 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/listTab1.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/listTab2.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/logo.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/my.png
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/name1.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/name2.png
Normal file
After Width: | Height: | Size: 9.6 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/name3.png
Normal file
After Width: | Height: | Size: 9.7 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/page2Bg.png
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/pageImg1.png
Normal file
After Width: | Height: | Size: 700 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/pageImg2.png
Normal file
After Width: | Height: | Size: 323 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/rule1.png
Normal file
After Width: | Height: | Size: 400 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/rule_act.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/rule_bg.png
Normal file
After Width: | Height: | Size: 380 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/rule_icon.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/tab1.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/tab2.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/travel/back.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/ts1.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/ts2.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
view/yinmeng/activity/2024-yearBenefits/images/ts3.png
Normal file
After Width: | Height: | Size: 16 KiB |
113
view/yinmeng/activity/2024-yearBenefits/index.html
Normal file
@@ -0,0 +1,113 @@
|
||||
<!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/index.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- 顶部返回 -->
|
||||
<div class="back">
|
||||
<img src="./images/travel/back.png" alt="">
|
||||
</div>
|
||||
<!-- 头部 -->
|
||||
<div class="header">
|
||||
<img src="./images/rule_icon.png" alt="" class="rule_icon">
|
||||
</div>
|
||||
<!-- tab -->
|
||||
<div class="tab">
|
||||
<div class="tab1">新春福利</div>
|
||||
<div class="">新春榜单</div>
|
||||
</div>
|
||||
<!-- 页面1 -->
|
||||
<div class="page1">
|
||||
<img src="./images/pageImg1.png" alt="" class="pageImg1">
|
||||
<img src="./images/pageImg2.png" alt="" class="pageImg2">
|
||||
</div>
|
||||
<!-- 页面2 -->
|
||||
<div class="page2">
|
||||
<div class="box">、
|
||||
<!-- 切换 -->
|
||||
<div class="listTab">
|
||||
<div class="listTab1">财气榜</div>
|
||||
<div class="">福气榜</div>
|
||||
</div>
|
||||
<!-- 前三 -->
|
||||
<div class="topBox">
|
||||
<div class="top1">
|
||||
<img src="./images/ts1.png" alt="" class="ts">
|
||||
<img src="./images/logo.png" alt="" class="tx">
|
||||
<div class="name">用户昵称</div>
|
||||
<div class="score">财气值: <b>0</b></div>
|
||||
</div>
|
||||
<div class="top2">
|
||||
<img src="./images/ts2.png" alt="" class="ts">
|
||||
<img src="./images/logo.png" alt="" class="tx">
|
||||
<div class="name">用户昵称</div>
|
||||
<div class="score">财气值: <b>0</b></div>
|
||||
</div>
|
||||
<div class="top3">
|
||||
<img src="./images/ts3.png" alt="" class="ts">
|
||||
<img src="./images/logo.png" alt="" class="tx">
|
||||
<div class="name">用户昵称</div>
|
||||
<div class="score">财气值: <b>0</b></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 非前三 -->
|
||||
<ul>
|
||||
<li>
|
||||
<div class="num">4</div>
|
||||
<img src="./images/logo.png" alt="" class="tx">
|
||||
<div class="name">用户昵称</div>
|
||||
<div class="score">財氣值:999999999</div>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="my">
|
||||
<div class="num">未上榜</div>
|
||||
<img src="./images/logo.png" alt="" class="tx">
|
||||
<div class="name">用户昵称</div>
|
||||
<div class="score">財氣值:999999999</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 免责声明 -->
|
||||
<div class="bootom">
|
||||
|
||||
<p>本活动最终解释权归官方所有</p>
|
||||
<p>本活动以及奖励与苹果公司无关</p>
|
||||
</div>
|
||||
<!-- 弹窗规则 -->
|
||||
<div class="rule">
|
||||
<div class="rule_in">
|
||||
<div class="tabRule">
|
||||
<div class="act">活动规则</div>
|
||||
<div>活动奖励</div>
|
||||
</div>
|
||||
<div class="box1">
|
||||
<img src="./images/rule1.png" alt="">
|
||||
</div>
|
||||
<div class="box2">
|
||||
<div class="box2Tab">
|
||||
<div class="tab1 act1"></div>
|
||||
<div class="tab2"></div>
|
||||
</div>
|
||||
<div class="imgBox">
|
||||
<img src="./images/img1.png" alt="" srcset="">
|
||||
</div>
|
||||
</div>
|
||||
</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/route-constant.js"></script>
|
||||
<script src="./js/index.js"></script>
|
158
view/yinmeng/activity/2024-yearBenefits/js/index.js
Normal file
@@ -0,0 +1,158 @@
|
||||
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: rankType, page: 1, 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, index) => {
|
||||
$(`.page2 .box .topBox .top${index + 1} .tx`).attr('src', res.avatar);
|
||||
$(`.page2 .box .topBox .top${index + 1} .name`).text(res.nick);
|
||||
$(`.page2 .box .topBox .top${index + 1} .score`).text(`${rankType == 2 ? "财气值:" : "福气值:"}${unitProcessing(res.score, 10000, 1, 'w')}`);
|
||||
})
|
||||
// 处理非前三
|
||||
var str = '';
|
||||
$('.page2 .box ul li').remove();
|
||||
notTop3.forEach((res, i) => {
|
||||
str += `
|
||||
<li>
|
||||
<div class="num">${res.ranking}</div>
|
||||
<img src="${res.avatar}" alt="" class="tx">
|
||||
<div class="name">${res.nick}</div>
|
||||
<div class="score">${rankType == 2 ? "财气值:" : "福气值:"}${unitProcessing(res.score, 10000, 1, 'w')}</div>
|
||||
</li>
|
||||
`
|
||||
})
|
||||
$('.page2 .box ul').append(str);
|
||||
// 处理自己
|
||||
$('.page2 .box .my .tx').attr('src', res.data.meRank.avatar);
|
||||
$('.page2 .box .my .num').text(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking);
|
||||
$('.page2 .box .my .name').text(res.data.meRank.nick);
|
||||
$('.page2 .box .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切换
|
||||
$('.tab div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$('.page1,.page2').hide();
|
||||
$(`.page${i}`).show();
|
||||
$('.tab div').removeClass('tab1').removeClass('tab2');
|
||||
$(this).addClass(`tab${i}`);
|
||||
if (i == 2) {
|
||||
getRank();
|
||||
}
|
||||
})
|
||||
// 榜单切换
|
||||
$('.page2 .box .listTab div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$('.page2 .box .listTab div').removeClass('listTab1').removeClass('listTab2');
|
||||
$(this).addClass(`listTab${i}`);
|
||||
if (i == 1) {
|
||||
rankType = 2;
|
||||
} else {
|
||||
rankType = 4;
|
||||
}
|
||||
getRank()
|
||||
})
|
||||
|
||||
// 规则切换
|
||||
$('.rule .rule_in .tabRule div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$(this).addClass('act').siblings().removeClass('act');
|
||||
$('.rule .rule_in .box1,.rule .rule_in .box2').hide();
|
||||
$(`.rule .rule_in .box${i}`).show();
|
||||
return false;
|
||||
})
|
||||
$('.rule .rule_in .box2 .box2Tab div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$('.rule .rule_in .box2 .box2Tab div').removeClass('act1').removeClass('act2')
|
||||
$(this).addClass(`act${i}`);
|
||||
$('.rule .rule_in .box2 .imgBox img').attr('src', `./images/img${i}.png`)
|
||||
return false;
|
||||
})
|
||||
// 打开规则
|
||||
$('.header .rule_icon').click(function () {
|
||||
$('.rule').show();
|
||||
bodyScroolFun(true);
|
||||
})
|
||||
// 关闭规则
|
||||
$('.rule').click(function () {
|
||||
$('.rule').hide();
|
||||
bodyScroolFun(false);
|
||||
return false;
|
||||
})
|
700
view/yinmeng/activity/billiard/css/index.css
Normal file
@@ -0,0 +1,700 @@
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
background: #05341F;
|
||||
}
|
||||
|
||||
.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: 8.24rem;
|
||||
background: url(../images/header.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
margin: 0 auto 0;
|
||||
}
|
||||
|
||||
.header .rule_icon {
|
||||
width: 0.72rem;
|
||||
height: 1.92rem;
|
||||
position: absolute;
|
||||
top: 2.61333rem;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.header div {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-size: 0.37333rem;
|
||||
color: #FFFCE6;
|
||||
position: absolute;
|
||||
top: 0.81333rem;
|
||||
left: 0;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.tabBox {
|
||||
width: 9.52rem;
|
||||
height: 1.66667rem;
|
||||
background: url(../images/tabBox.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
margin: -0.53333rem auto 0.18667rem;
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 0.37333rem;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.tabBox div {
|
||||
width: 2.69333rem;
|
||||
height: 1.12rem;
|
||||
margin-top: 0.28rem;
|
||||
}
|
||||
|
||||
.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 .tab3 {
|
||||
background: url(../images/tab3.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%;
|
||||
}
|
||||
|
||||
.tabBox .tabAct3 {
|
||||
background: url(../images/tabAct3.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.page1 .time {
|
||||
width: 100%;
|
||||
height: 0.98667rem;
|
||||
line-height: 0.98667rem;
|
||||
text-align: center;
|
||||
color: #FFEDBB;
|
||||
font-size: 0.32rem;
|
||||
}
|
||||
|
||||
.page1 .time span {
|
||||
width: 0.98667rem;
|
||||
margin: 0 0.12rem;
|
||||
color: #FFF;
|
||||
font-size: 0.42667rem;
|
||||
background: url(../images/num.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.page1 .top {
|
||||
width: 100%;
|
||||
height: 5.12rem;
|
||||
margin: 0 auto 0.26667rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.page1 .top .no1 {
|
||||
width: 2.98667rem;
|
||||
height: 5.12rem;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 0;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.page1 .top .no1 .ts {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.page1 .top .no1 .tx {
|
||||
width: 2.21333rem;
|
||||
height: 2.21333rem;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: 0.77333rem;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.page1 .top .no1 p {
|
||||
width: 81%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
color: #663208;
|
||||
font-size: 0.34667rem;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: 3.16rem;
|
||||
z-index: 2;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.page1 .top .no1 span {
|
||||
width: 81%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
color: #663208;
|
||||
font-size: 0.29333rem;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: 3.64rem;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.page1 .top .no1 .score {
|
||||
width: 2.45333rem;
|
||||
height: 0.61333rem;
|
||||
line-height: 0.61333rem;
|
||||
text-align: center;
|
||||
color: #FFF1D8;
|
||||
font-size: 0.29333rem;
|
||||
background: url(../images/win.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: 4rem;
|
||||
}
|
||||
|
||||
.page1 .top .no1 .score b {
|
||||
color: #fff;
|
||||
font-size: 0.32rem;
|
||||
}
|
||||
|
||||
.page1 .top .no2 {
|
||||
width: 2.98667rem;
|
||||
height: 5.12rem;
|
||||
position: absolute;
|
||||
left: 0.32rem;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.page1 .top .no2 .ts {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.page1 .top .no2 .tx {
|
||||
width: 1.94667rem;
|
||||
height: 1.94667rem;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: 1.06667rem;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.page1 .top .no2 p {
|
||||
width: 81%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
color: #663208;
|
||||
font-size: 0.34667rem;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: 3.16rem;
|
||||
z-index: 2;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.page1 .top .no2 span {
|
||||
width: 81%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
color: #663208;
|
||||
font-size: 0.29333rem;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: 3.64rem;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.page1 .top .no2 .score {
|
||||
width: 2.45333rem;
|
||||
height: 0.61333rem;
|
||||
line-height: 0.61333rem;
|
||||
text-align: center;
|
||||
color: #FFF1D8;
|
||||
font-size: 0.29333rem;
|
||||
background: url(../images/win2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: 4rem;
|
||||
}
|
||||
|
||||
.page1 .top .no2 .score b {
|
||||
color: #fff;
|
||||
font-size: 0.32rem;
|
||||
}
|
||||
|
||||
.page1 .top .no3 {
|
||||
width: 2.98667rem;
|
||||
height: 5.12rem;
|
||||
position: absolute;
|
||||
right: 0.32rem;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.page1 .top .no3 .ts {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.page1 .top .no3 .tx {
|
||||
width: 1.94667rem;
|
||||
height: 1.94667rem;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: 1.06667rem;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.page1 .top .no3 p {
|
||||
width: 81%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
color: #663208;
|
||||
font-size: 0.34667rem;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: 3.16rem;
|
||||
z-index: 2;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.page1 .top .no3 span {
|
||||
width: 81%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
color: #663208;
|
||||
font-size: 0.29333rem;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: 3.64rem;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.page1 .top .no3 .score {
|
||||
width: 2.45333rem;
|
||||
height: 0.61333rem;
|
||||
line-height: 0.61333rem;
|
||||
text-align: center;
|
||||
color: #FFF1D8;
|
||||
font-size: 0.29333rem;
|
||||
background: url(../images/win3.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: 4rem;
|
||||
}
|
||||
|
||||
.page1 .top .no3 .score b {
|
||||
color: #fff;
|
||||
font-size: 0.32rem;
|
||||
}
|
||||
|
||||
.page1 ul {
|
||||
width: 9.30667rem;
|
||||
margin: 0 auto 2rem;
|
||||
}
|
||||
|
||||
.page1 ul li {
|
||||
width: 100%;
|
||||
height: 1.81333rem;
|
||||
background: url(../images/li.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.page1 ul li .num {
|
||||
width: 1rem;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 0.53333rem;
|
||||
font-weight: bold;
|
||||
float: left;
|
||||
height: 100%;
|
||||
line-height: 1.81333rem;
|
||||
margin-right: 0.18667rem;
|
||||
}
|
||||
|
||||
.page1 ul li .tx {
|
||||
width: 1.30667rem;
|
||||
height: 1.30667rem;
|
||||
border-radius: 50%;
|
||||
float: left;
|
||||
display: block;
|
||||
margin-top: 0.25333rem;
|
||||
margin-right: 0.30667rem;
|
||||
}
|
||||
|
||||
.page1 ul li .user {
|
||||
width: 3.12rem;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.page1 ul li .user p {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
color: #FFFFFF;
|
||||
font-size: 0.37333rem;
|
||||
margin-top: 0.50667rem;
|
||||
margin-bottom: 0.18667rem;
|
||||
}
|
||||
|
||||
.page1 ul li .user span {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
color: #B8BCBB;
|
||||
font-size: 0.32rem;
|
||||
}
|
||||
|
||||
.page1 ul li .score {
|
||||
float: right;
|
||||
height: 100%;
|
||||
line-height: 1.81333rem;
|
||||
color: #FFE04E;
|
||||
font-size: 0.29333rem;
|
||||
margin-right: 0.48rem;
|
||||
}
|
||||
|
||||
.page1 .my {
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
height: 1.81333rem;
|
||||
background: url(../images/my.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.page1 .my .num {
|
||||
width: 1rem;
|
||||
text-align: center;
|
||||
color: #D7D1CE;
|
||||
font-size: 0.32rem;
|
||||
font-weight: bold;
|
||||
float: left;
|
||||
height: 100%;
|
||||
line-height: 1.81333rem;
|
||||
margin-right: 0.18667rem;
|
||||
margin-left: 0.44rem;
|
||||
}
|
||||
|
||||
.page1 .my .tx {
|
||||
width: 1.30667rem;
|
||||
height: 1.30667rem;
|
||||
border-radius: 50%;
|
||||
float: left;
|
||||
display: block;
|
||||
margin-top: 0.25333rem;
|
||||
margin-right: 0.30667rem;
|
||||
}
|
||||
|
||||
.page1 .my .user {
|
||||
width: 3.12rem;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.page1 .my .user p {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
color: #FFFFFF;
|
||||
font-size: 0.37333rem;
|
||||
line-height: 1.81333rem;
|
||||
}
|
||||
|
||||
.page1 .my .user span {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
color: #B8BCBB;
|
||||
font-size: 0.32rem;
|
||||
}
|
||||
|
||||
.page1 .my .score {
|
||||
float: right;
|
||||
height: 100%;
|
||||
line-height: 1.81333rem;
|
||||
color: #FFE04E;
|
||||
font-size: 0.29333rem;
|
||||
margin-right: 0.48rem;
|
||||
}
|
||||
|
||||
.page2 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.page2 .timeShow {
|
||||
width: 9.36rem;
|
||||
height: 1.70667rem;
|
||||
background: #032417;
|
||||
margin: 0 auto 0.16rem;
|
||||
overflow: hidden;
|
||||
border-radius: 0.10667rem;
|
||||
}
|
||||
|
||||
.page2 .timeShow p {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #FFEDBB;
|
||||
font-size: 0.4rem;
|
||||
margin-top: 0.37333rem;
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
|
||||
.page2 .timeShow p b {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.page2 .timeShow span {
|
||||
width: 100%;
|
||||
display: block;
|
||||
text-align: center;
|
||||
color: #FFEDBB;
|
||||
font-size: 0.4rem;
|
||||
}
|
||||
|
||||
.page2 .timeShow span b {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.page2 .page2GoToRoom {
|
||||
width: 8.58667rem;
|
||||
height: 0.65333rem;
|
||||
display: block;
|
||||
margin: 0 auto 0.61333rem;
|
||||
}
|
||||
|
||||
.page2 .line {
|
||||
width: 10rem;
|
||||
height: 0.4rem;
|
||||
margin: 0 auto 0.41333rem;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.page2 .page2Bg {
|
||||
width: 10rem;
|
||||
display: block;
|
||||
margin: 0 auto 1.16rem;
|
||||
}
|
||||
|
||||
.page3 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.page3 .timeShow {
|
||||
width: 9.36rem;
|
||||
height: 1.70667rem;
|
||||
background: #032417;
|
||||
margin: 0 auto 0.16rem;
|
||||
overflow: hidden;
|
||||
border-radius: 0.10667rem;
|
||||
}
|
||||
|
||||
.page3 .timeShow p {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #FFEDBB;
|
||||
font-size: 0.4rem;
|
||||
margin-top: 0.37333rem;
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
|
||||
.page3 .timeShow p b {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.page3 .timeShow span {
|
||||
width: 100%;
|
||||
display: block;
|
||||
text-align: center;
|
||||
color: #FFEDBB;
|
||||
font-size: 0.4rem;
|
||||
}
|
||||
|
||||
.page3 .timeShow span b {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.page3 .page2GoToRoom {
|
||||
width: 8.58667rem;
|
||||
height: 0.65333rem;
|
||||
display: block;
|
||||
margin: 0 auto 0.61333rem;
|
||||
}
|
||||
|
||||
.page3 .line {
|
||||
width: 10rem;
|
||||
height: 0.4rem;
|
||||
margin: 0 auto 0.41333rem;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.page3 .page2Bg {
|
||||
width: 10rem;
|
||||
display: block;
|
||||
margin-bottom: 1.16rem;
|
||||
}
|
||||
|
||||
.page3 .swiper {
|
||||
width: 10rem;
|
||||
height: 12.5rem;
|
||||
margin-bottom: 1.37333rem;
|
||||
}
|
||||
|
||||
.page3 .swiper .swiper-slide,
|
||||
.page3 .swiper .img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.page3 .swiper .swiper-pagination-bullet {
|
||||
background: #507163;
|
||||
}
|
||||
|
||||
.page3 .swiper .swiper-pagination-bullet-active {
|
||||
background: #FFEC4B;
|
||||
}
|
||||
|
||||
.rule {
|
||||
position: fixed;
|
||||
z-index: 999;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rule .rule_in {
|
||||
width: 9.25333rem;
|
||||
height: 14.36rem;
|
||||
position: relative;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background: url(../images/ruleBG.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.rule .rule_in .tab {
|
||||
width: 7.22667rem;
|
||||
height: 0.88rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 0.02667rem auto 0.64rem;
|
||||
}
|
||||
|
||||
.rule .rule_in .tab div {
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.rule .rule_in .tab1 {
|
||||
background: url(../images/ruleTab1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.rule .rule_in .tab2 {
|
||||
background: url(../images/ruleTab2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.rule .rule_in .box {
|
||||
width: 7.76rem;
|
||||
height: 12.3rem;
|
||||
margin: 0 auto;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.rule .rule_in .box::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rule .rule_in .box img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
720
view/yinmeng/activity/billiard/css/index.scss
Normal file
@@ -0,0 +1,720 @@
|
||||
@function px2rem($px) {
|
||||
@return $px / 75+rem;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
// background: radial-gradient(circle, #32140C 0%, #05040A 100%);
|
||||
background: #05341F;
|
||||
}
|
||||
|
||||
.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(618);
|
||||
background: url(../images/header.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
margin: 0 auto 0;
|
||||
|
||||
.rule_icon {
|
||||
width: px2rem(54);
|
||||
height: px2rem(144);
|
||||
position: absolute;
|
||||
top: px2rem(196);
|
||||
right: 0;
|
||||
}
|
||||
|
||||
div {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-size: px2rem(28);
|
||||
color: #FFFCE6;
|
||||
position: absolute;
|
||||
top: px2rem(61);
|
||||
left: 0;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.tabBox {
|
||||
width: px2rem(714);
|
||||
height: px2rem(125);
|
||||
background: url(../images/tabBox.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
margin: px2rem(-40) auto px2rem(14);
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 px2rem(28);
|
||||
box-sizing: border-box;
|
||||
|
||||
div {
|
||||
width: px2rem(202);
|
||||
height: px2rem(84);
|
||||
margin-top: px2rem(21);
|
||||
}
|
||||
|
||||
.tab1 {
|
||||
background: url(../images/tab1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.tab2 {
|
||||
background: url(../images/tab2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.tab3 {
|
||||
background: url(../images/tab3.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%;
|
||||
}
|
||||
|
||||
.tabAct3 {
|
||||
background: url(../images/tabAct3.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.page1 {
|
||||
// display: none;
|
||||
|
||||
.time {
|
||||
width: 100%;
|
||||
height: px2rem(74);
|
||||
line-height: px2rem(74);
|
||||
text-align: center;
|
||||
color: #FFEDBB;
|
||||
font-size: px2rem(24);
|
||||
|
||||
span {
|
||||
width: px2rem(74);
|
||||
margin: 0 px2rem(9);
|
||||
color: #FFF;
|
||||
font-size: px2rem(32);
|
||||
background: url(../images/num.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.top {
|
||||
width: 100%;
|
||||
height: px2rem(384);
|
||||
margin: 0 auto px2rem(20);
|
||||
position: relative;
|
||||
|
||||
.no1 {
|
||||
width: px2rem(224);
|
||||
height: px2rem(384);
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 0;
|
||||
transform: translateX(-50%);
|
||||
|
||||
.ts {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tx {
|
||||
width: px2rem(166);
|
||||
height: px2rem(166);
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: px2rem(58);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
p {
|
||||
width: 81%;
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
color: #663208;
|
||||
font-size: px2rem(26);
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: px2rem(237);
|
||||
z-index: 2;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
span {
|
||||
width: 81%;
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
color: #663208;
|
||||
font-size: px2rem(22);
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: px2rem(273);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.score {
|
||||
width: px2rem(184);
|
||||
height: px2rem(46);
|
||||
line-height: px2rem(46);
|
||||
text-align: center;
|
||||
color: #FFF1D8;
|
||||
font-size: px2rem(22);
|
||||
background: url(../images/win.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: px2rem(300);
|
||||
|
||||
b {
|
||||
color: #fff;
|
||||
font-size: px2rem(24);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.no2 {
|
||||
width: px2rem(224);
|
||||
height: px2rem(384);
|
||||
position: absolute;
|
||||
left: px2rem(24);
|
||||
top: 0;
|
||||
|
||||
.ts {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tx {
|
||||
width: px2rem(146);
|
||||
height: px2rem(146);
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: px2rem(80);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
p {
|
||||
width: 81%;
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
color: #663208;
|
||||
font-size: px2rem(26);
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: px2rem(237);
|
||||
z-index: 2;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
span {
|
||||
width: 81%;
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
color: #663208;
|
||||
font-size: px2rem(22);
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: px2rem(273);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.score {
|
||||
width: px2rem(184);
|
||||
height: px2rem(46);
|
||||
line-height: px2rem(46);
|
||||
text-align: center;
|
||||
color: #FFF1D8;
|
||||
font-size: px2rem(22);
|
||||
background: url(../images/win2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: px2rem(300);
|
||||
|
||||
b {
|
||||
color: #fff;
|
||||
font-size: px2rem(24);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.no3 {
|
||||
width: px2rem(224);
|
||||
height: px2rem(384);
|
||||
position: absolute;
|
||||
right: px2rem(24);
|
||||
top: 0;
|
||||
|
||||
.ts {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tx {
|
||||
width: px2rem(146);
|
||||
height: px2rem(146);
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: px2rem(80);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
p {
|
||||
width: 81%;
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
color: #663208;
|
||||
font-size: px2rem(26);
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: px2rem(237);
|
||||
z-index: 2;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
span {
|
||||
width: 81%;
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
color: #663208;
|
||||
font-size: px2rem(22);
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: px2rem(273);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.score {
|
||||
width: px2rem(184);
|
||||
height: px2rem(46);
|
||||
line-height: px2rem(46);
|
||||
text-align: center;
|
||||
color: #FFF1D8;
|
||||
font-size: px2rem(22);
|
||||
background: url(../images/win3.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: px2rem(300);
|
||||
|
||||
b {
|
||||
color: #fff;
|
||||
font-size: px2rem(24);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
width: px2rem(698);
|
||||
// height: px2rem(136);
|
||||
margin: 0 auto px2rem(150);
|
||||
|
||||
li {
|
||||
width: 100%;
|
||||
height: px2rem(136);
|
||||
background: url(../images/li.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
|
||||
.num {
|
||||
width: px2rem(75);
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: px2rem(40);
|
||||
font-weight: bold;
|
||||
float: left;
|
||||
height: 100%;
|
||||
line-height: px2rem(136);
|
||||
margin-right: px2rem(14);
|
||||
}
|
||||
|
||||
.tx {
|
||||
width: px2rem(98);
|
||||
height: px2rem(98);
|
||||
border-radius: 50%;
|
||||
float: left;
|
||||
display: block;
|
||||
margin-top: px2rem(19);
|
||||
margin-right: px2rem(23);
|
||||
}
|
||||
|
||||
.user {
|
||||
width: px2rem(234);
|
||||
float: left;
|
||||
|
||||
p {
|
||||
width: 100%;
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
color: #FFFFFF;
|
||||
font-size: px2rem(28);
|
||||
margin-top: px2rem(38);
|
||||
margin-bottom: px2rem(14);
|
||||
}
|
||||
|
||||
span {
|
||||
width: 100%;
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
color: #B8BCBB;
|
||||
font-size: px2rem(24);
|
||||
}
|
||||
}
|
||||
|
||||
.score {
|
||||
float: right;
|
||||
height: 100%;
|
||||
line-height: px2rem(136);
|
||||
color: #FFE04E;
|
||||
font-size: px2rem(22);
|
||||
margin-right: px2rem(36);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.my {
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
height: px2rem(136);
|
||||
background: url(../images/my.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
|
||||
.num {
|
||||
width: px2rem(75);
|
||||
text-align: center;
|
||||
color: #D7D1CE;
|
||||
font-size: px2rem(24);
|
||||
font-weight: bold;
|
||||
float: left;
|
||||
height: 100%;
|
||||
line-height: px2rem(136);
|
||||
margin-right: px2rem(14);
|
||||
margin-left: px2rem(33);
|
||||
}
|
||||
|
||||
.tx {
|
||||
width: px2rem(98);
|
||||
height: px2rem(98);
|
||||
border-radius: 50%;
|
||||
float: left;
|
||||
display: block;
|
||||
margin-top: px2rem(19);
|
||||
margin-right: px2rem(23);
|
||||
}
|
||||
|
||||
.user {
|
||||
width: px2rem(234);
|
||||
float: left;
|
||||
|
||||
p {
|
||||
width: 100%;
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
color: #FFFFFF;
|
||||
font-size: px2rem(28);
|
||||
line-height: px2rem(136);
|
||||
}
|
||||
|
||||
span {
|
||||
width: 100%;
|
||||
//超出省略号
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
color: #B8BCBB;
|
||||
font-size: px2rem(24);
|
||||
}
|
||||
}
|
||||
|
||||
.score {
|
||||
float: right;
|
||||
height: 100%;
|
||||
line-height: px2rem(136);
|
||||
color: #FFE04E;
|
||||
font-size: px2rem(22);
|
||||
margin-right: px2rem(36);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.page2 {
|
||||
display: none;
|
||||
|
||||
.timeShow {
|
||||
width: px2rem(702);
|
||||
height: px2rem(128);
|
||||
background: #032417;
|
||||
margin: 0 auto px2rem(12);
|
||||
overflow: hidden;
|
||||
border-radius: px2rem(8);
|
||||
|
||||
p {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #FFEDBB;
|
||||
font-size: px2rem(30);
|
||||
margin-top: px2rem(28);
|
||||
margin-bottom: px2rem(15);
|
||||
|
||||
b {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
width: 100%;
|
||||
display: block;
|
||||
text-align: center;
|
||||
color: #FFEDBB;
|
||||
font-size: px2rem(30);
|
||||
|
||||
b {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.page2GoToRoom {
|
||||
width: px2rem(644);
|
||||
height: px2rem(49);
|
||||
display: block;
|
||||
margin: 0 auto px2rem(46);
|
||||
}
|
||||
|
||||
.line {
|
||||
width: px2rem(750);
|
||||
height: px2rem(30);
|
||||
margin: 0 auto px2rem(31);
|
||||
display: block;
|
||||
}
|
||||
|
||||
.page2Bg {
|
||||
width: px2rem(750);
|
||||
display: block;
|
||||
margin: 0 auto px2rem(87);
|
||||
}
|
||||
}
|
||||
|
||||
.page3 {
|
||||
display: none;
|
||||
|
||||
.timeShow {
|
||||
width: px2rem(702);
|
||||
height: px2rem(128);
|
||||
background: #032417;
|
||||
margin: 0 auto px2rem(12);
|
||||
overflow: hidden;
|
||||
border-radius: px2rem(8);
|
||||
|
||||
p {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #FFEDBB;
|
||||
font-size: px2rem(30);
|
||||
margin-top: px2rem(28);
|
||||
margin-bottom: px2rem(15);
|
||||
|
||||
b {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
width: 100%;
|
||||
display: block;
|
||||
text-align: center;
|
||||
color: #FFEDBB;
|
||||
font-size: px2rem(30);
|
||||
|
||||
b {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.page2GoToRoom {
|
||||
width: px2rem(644);
|
||||
height: px2rem(49);
|
||||
display: block;
|
||||
margin: 0 auto px2rem(46);
|
||||
}
|
||||
|
||||
.line {
|
||||
width: px2rem(750);
|
||||
height: px2rem(30);
|
||||
margin: 0 auto px2rem(31);
|
||||
display: block;
|
||||
}
|
||||
|
||||
.page2Bg {
|
||||
width: px2rem(750);
|
||||
display: block;
|
||||
margin-bottom: px2rem(87);
|
||||
}
|
||||
|
||||
.swiper {
|
||||
width: px2rem(750);
|
||||
height: 12.5rem;
|
||||
margin-bottom: px2rem(103);
|
||||
|
||||
.swiper-slide,
|
||||
.img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.swiper-pagination-bullet {
|
||||
background: #507163;
|
||||
}
|
||||
|
||||
.swiper-pagination-bullet-active {
|
||||
background: #FFEC4B;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.rule {
|
||||
position: fixed;
|
||||
z-index: 999;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background: rgba(0, 0, 0, .6);
|
||||
display: none;
|
||||
|
||||
.rule_in {
|
||||
width: px2rem(694);
|
||||
height: px2rem(1077);
|
||||
position: relative;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background: url(../images/ruleBG.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
|
||||
.tab {
|
||||
width: px2rem(542);
|
||||
height: px2rem(66);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: px2rem(2) auto px2rem(48);
|
||||
|
||||
div {
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.tab1 {
|
||||
background: url(../images/ruleTab1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.tab2 {
|
||||
background: url(../images/ruleTab2.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.box {
|
||||
width: px2rem(582);
|
||||
height: 12.3rem;
|
||||
margin: 0 auto;
|
||||
overflow-y: scroll;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|