换皮:新增peko
@@ -2,13 +2,13 @@
|
||||
var api = locateJudge();
|
||||
var browser = checkVersion();
|
||||
var info = {};
|
||||
var betaUrl = 'https://yeying.api.shengxuanwangluo.com/peko/activity/act-61/index.html';
|
||||
var betaUrl = 'https://beta.api.pekolive.com/peko/activity/act-61/index.html';
|
||||
var realUrl = tranUrl + '/peko/activity/act-61/index.html';
|
||||
var share = {
|
||||
title: '纯真年代',
|
||||
link: tranUrl + '/peko/activity/act-61/index.html',
|
||||
// imgUrl: 'https://img.letusmix.com/new_logo.png',
|
||||
imgUrl: 'https://yeying.api.shengxuanwangluo.com/peko/modules/wxPubPay/images/logo.png',
|
||||
imgUrl: 'https://api.lecheng163.com/peko/modules/wxPubPay/images/logo.png',
|
||||
desc: '限定铭牌萌趣降临',// 分享描述
|
||||
};
|
||||
if (EnvCheck() == 'test') {
|
||||
|
@@ -28,7 +28,7 @@ $(function () {
|
||||
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
// url: 'https://yeying.api.shengxuanwangluo.com/carActivity/user',
|
||||
// url: 'https://beta.api.pekolive.com/carActivity/user',
|
||||
url: '/carActivity/user',
|
||||
headers: {
|
||||
pub_uid: info.uid,
|
||||
|
@@ -76,7 +76,7 @@
|
||||
<div class="tab2_contain">
|
||||
<div class="rule_wrap">
|
||||
<p class="rule_item">
|
||||
活动期间,每日登录夜莺App即可免费获赠一个魔法棒(每台设备每日限一次)
|
||||
活动期间,每日登录pekoApp即可免费获赠一个魔法棒(每台设备每日限一次)
|
||||
</p>
|
||||
</div>
|
||||
<div class="panel_wrap">
|
||||
|
1120
view/peko/activity/act-magicSchool/css/index.css
Normal file
1278
view/peko/activity/act-magicSchool/css/index.scss
Normal file
BIN
view/peko/activity/act-magicSchool/images/actOut.png
Normal file
After Width: | Height: | Size: 257 KiB |
BIN
view/peko/activity/act-magicSchool/images/amethystStone.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
view/peko/activity/act-magicSchool/images/amethystStone1.png
Normal file
After Width: | Height: | Size: 71 KiB |
BIN
view/peko/activity/act-magicSchool/images/amethystStone2.png
Normal file
After Width: | Height: | Size: 71 KiB |
BIN
view/peko/activity/act-magicSchool/images/amethystStone3.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
view/peko/activity/act-magicSchool/images/amethystStoneBut1.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
view/peko/activity/act-magicSchool/images/amethystStoneBut5.png
Normal file
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 32 KiB |
BIN
view/peko/activity/act-magicSchool/images/amethystStoneList.png
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
view/peko/activity/act-magicSchool/images/amethystStoneText1.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
view/peko/activity/act-magicSchool/images/amethystStoneText2.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
view/peko/activity/act-magicSchool/images/amethystStoneText3.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
view/peko/activity/act-magicSchool/images/amethystStones.png
Normal file
After Width: | Height: | Size: 65 KiB |
BIN
view/peko/activity/act-magicSchool/images/csvag.svga
Normal file
BIN
view/peko/activity/act-magicSchool/images/darkForest.png
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
view/peko/activity/act-magicSchool/images/forestReward.png
Normal file
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 137 KiB |
After Width: | Height: | Size: 178 KiB |
BIN
view/peko/activity/act-magicSchool/images/forestRewardTab1.png
Normal file
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 24 KiB |
BIN
view/peko/activity/act-magicSchool/images/forestRewardTab2.png
Normal file
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 23 KiB |
BIN
view/peko/activity/act-magicSchool/images/gray.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
view/peko/activity/act-magicSchool/images/gscag.svga
Normal file
BIN
view/peko/activity/act-magicSchool/images/gxBg.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
view/peko/activity/act-magicSchool/images/header.png
Normal file
After Width: | Height: | Size: 377 KiB |
BIN
view/peko/activity/act-magicSchool/images/img1.png
Normal file
After Width: | Height: | Size: 128 KiB |
BIN
view/peko/activity/act-magicSchool/images/img2.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
view/peko/activity/act-magicSchool/images/img3.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
view/peko/activity/act-magicSchool/images/limitedGift.png
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
view/peko/activity/act-magicSchool/images/listBg.png
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
view/peko/activity/act-magicSchool/images/listBg2.png
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
view/peko/activity/act-magicSchool/images/listTabBg.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
view/peko/activity/act-magicSchool/images/logo.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
view/peko/activity/act-magicSchool/images/look_put.png
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
view/peko/activity/act-magicSchool/images/nickBg.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
view/peko/activity/act-magicSchool/images/notOut.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
view/peko/activity/act-magicSchool/images/obtained.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
view/peko/activity/act-magicSchool/images/primaryBut.png
Normal file
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 13 KiB |
BIN
view/peko/activity/act-magicSchool/images/qiehuan.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
view/peko/activity/act-magicSchool/images/rule.png
Normal file
After Width: | Height: | Size: 411 KiB |
BIN
view/peko/activity/act-magicSchool/images/ruleBg.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
view/peko/activity/act-magicSchool/images/rule_c.png
Normal file
After Width: | Height: | Size: 380 KiB |
BIN
view/peko/activity/act-magicSchool/images/rule_icon.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
view/peko/activity/act-magicSchool/images/sc.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
view/peko/activity/act-magicSchool/images/seniorBut.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
view/peko/activity/act-magicSchool/images/shanhu.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
view/peko/activity/act-magicSchool/images/ssvag.svga
Normal file
BIN
view/peko/activity/act-magicSchool/images/tab1.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
view/peko/activity/act-magicSchool/images/tab2.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
view/peko/activity/act-magicSchool/images/tab3.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
view/peko/activity/act-magicSchool/images/tab4.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
view/peko/activity/act-magicSchool/images/tabAcative.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
view/peko/activity/act-magicSchool/images/tab_1.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
view/peko/activity/act-magicSchool/images/tab_2.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
view/peko/activity/act-magicSchool/images/tab_3.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
view/peko/activity/act-magicSchool/images/tab_4.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
view/peko/activity/act-magicSchool/images/timeBg.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
view/peko/activity/act-magicSchool/images/toast.png
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
view/peko/activity/act-magicSchool/images/toast_go.png
Normal file
After Width: | Height: | Size: 8.0 KiB |
BIN
view/peko/activity/act-magicSchool/images/toast_ing.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
view/peko/activity/act-magicSchool/images/toast_out.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
view/peko/activity/act-magicSchool/images/top1.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
view/peko/activity/act-magicSchool/images/top2.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
view/peko/activity/act-magicSchool/images/top3.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
view/peko/activity/act-magicSchool/images/travel/back.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
view/peko/activity/act-magicSchool/images/wenhao.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
254
view/peko/activity/act-magicSchool/index.html
Normal file
@@ -0,0 +1,254 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>魔法学院</title>
|
||||
<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="hdader">
|
||||
<img src="./images/rule_icon.png" alt="" class="rule_icon">
|
||||
</div>
|
||||
<!-- 显示礼物 -->
|
||||
<div class="limitedGift"></div>
|
||||
<!-- tab -->
|
||||
<div class="tab">
|
||||
<div id="tab1"></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<div class="page1">
|
||||
<!-- 黑暗森林 -->
|
||||
<div class="darkForest">
|
||||
<!-- 原石 -->
|
||||
<div class="rough">原石: <b></b></div>
|
||||
<!-- 森林照片 -->
|
||||
<img src="./images/amethystStones.png" alt="" class="amethystStones">
|
||||
<!-- 初级动画 -->
|
||||
<div class="csvags">
|
||||
<div class="csvag"></div>
|
||||
</div>
|
||||
<!-- 高级动画 -->
|
||||
<div class="gsvags">
|
||||
<div class="gsvag"></div>
|
||||
</div>
|
||||
<!-- 奖池纪录 -->
|
||||
<img src="./images/prizePoolRecord_icon.png" alt="" class="prizePoolRecord">
|
||||
<!-- 初级探险 -->
|
||||
<div class="primaryBut"></div>
|
||||
<!-- 高级探险 -->
|
||||
<div class="seniorBut">
|
||||
<img src="./images/sc.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<!-- 任务 -->
|
||||
<div class="toast">
|
||||
<div class="toast1 to">
|
||||
<p>进入任意房间(<b>0</b>/3)</p>
|
||||
<div class="but"></div>
|
||||
</div>
|
||||
<div class="toast2 to">
|
||||
<p>赠送任意礼物</p>
|
||||
<div class="but"></div>
|
||||
</div>
|
||||
<div class="toast3 to">
|
||||
<p>停留房间30分钟(<b>0</b>/30)</p>
|
||||
<div class="but"></div>
|
||||
</div>
|
||||
<div class="toast4 to">
|
||||
<p>完成每日任务获得原石*1</p>
|
||||
<span>
|
||||
<b></b>
|
||||
<i>1/3</i>
|
||||
</span>
|
||||
<div class="but"></div>
|
||||
</div>
|
||||
<div class="toast5 to">
|
||||
<p>每送出魔法礼物200钻石获得原石*1</p>
|
||||
<div class="but" click='0' room="1"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="page2">
|
||||
<!-- 紫晶原石 -->
|
||||
<div class="amethystStone">
|
||||
<!-- 原石名称 -->
|
||||
<img src="./images/amethystStoneText1.png" alt="" class="stoneNick">
|
||||
<!-- amethystStoneGift -->
|
||||
<img src="./images/amethystStone3.png" alt="" class="amethystStoneGift">
|
||||
<div class="amethystStoneGiftSvgas">
|
||||
<div class="ssvag"></div>
|
||||
</div>
|
||||
<!-- 进度条 -->
|
||||
<div class="lineBox">
|
||||
<span></span>
|
||||
<p>水晶石:<b></b></p>
|
||||
<i><strong>0</strong>/<em style="font-style: normal;">700</em></i>
|
||||
</div>
|
||||
<img src="./images/qiehuan.png" alt="" class="left">
|
||||
<img src="./images/qiehuan.png" alt="" class="right">
|
||||
<!-- 试炼1次按钮 -->
|
||||
<img src="./images/amethystStoneBut1.png" alt="" class="amethystStoneBut1">
|
||||
<!-- 试炼5次按钮 -->
|
||||
<img src="./images/amethystStoneBut5.png" alt="" class="amethystStoneBut5">
|
||||
<!-- 试炼完成次按钮 -->
|
||||
<img src="./images/amethystStoneButOut.png" alt="" class="amethystStoneOut">
|
||||
</div>
|
||||
<!-- 魔法石成就墙 -->
|
||||
<div class="amethystStoneList">
|
||||
<img src="./images/wenhao.png" alt="" class="wenhao">
|
||||
<ul>
|
||||
<li>
|
||||
<img src="./images/logo.png" alt="">
|
||||
<span>虚以为逮</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="page3">
|
||||
<div class="list">
|
||||
<!-- rule -->
|
||||
<div class="rule_list_icon"></div>
|
||||
<!-- tab -->
|
||||
<div class="tabs">
|
||||
<div class="tabAcative">日榜</div>
|
||||
<div>总榜</div>
|
||||
</div>
|
||||
<!-- 时间切换 -->
|
||||
<div class="time">
|
||||
<img src="./images/timeBg.png" alt="" class="timeLeftBg">
|
||||
<b>8月25日</b>
|
||||
<img src="./images/timeBg.png" alt="" class="timeRightBg">
|
||||
</div>
|
||||
<!-- 前三 -->
|
||||
<div class="top top1">
|
||||
<div class="bg"></div>
|
||||
<img src="./images/logo.png" alt="" class="txBg">
|
||||
<div class="nick">最多六个字啊</div>
|
||||
<p>魅力值:12234</p>
|
||||
</div>
|
||||
<div class="top top2">
|
||||
<div class="bg"></div>
|
||||
<img src="./images/logo.png" alt="" class="txBg">
|
||||
<div class="nick">最多六个字啊</div>
|
||||
<p>魅力值:12234</p>
|
||||
</div>
|
||||
<div class="top top3">
|
||||
<div class="bg"></div>
|
||||
<img src="./images/logo.png" alt="" class="txBg">
|
||||
<div class="nick">最多六个字啊</div>
|
||||
<p>魅力值:12234</p>
|
||||
</div>
|
||||
<!-- 非前三 -->
|
||||
<ul class="notTop">
|
||||
<li>
|
||||
<div class="num">NO.4</div>
|
||||
<img src="./images/logo.png" alt="">
|
||||
<div class="nick">用户昵称压压</div>
|
||||
<div class="score">魅力值:12234</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- 自己榜单 -->
|
||||
<div class="myList">
|
||||
<div class="num">未上榜</div>
|
||||
<img src="./images/logo.png" alt="">
|
||||
<div class="nick">用户昵称压压</div>
|
||||
<div class="score">魅力值:12234</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 榜单奖励 -->
|
||||
<div class="list_r">
|
||||
<div class="list_r_in">
|
||||
<div class="box">
|
||||
<img src="./images/rule_c.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 森林奖励/记录 -->
|
||||
<div class="forestReward">
|
||||
<div class="forestReward_in">
|
||||
<div class="forestRewardTab">
|
||||
<div class="forestRewardTab1_active"></div>
|
||||
<div class="forestRewardTab2"></div>
|
||||
</div>
|
||||
<div class="forestRewardPage1">
|
||||
<div class="box1">
|
||||
<div class="active">初级探险</div>
|
||||
<div>高级探险</div>
|
||||
</div>
|
||||
<img src="./images/forestRewardPage1Bg1.png" alt="" class="forestRewardPage1Bg">
|
||||
</div>
|
||||
<div class="forestRewardPage2">
|
||||
<div class="title">
|
||||
<div>探险时间</div>
|
||||
<div>获得奖励</div>
|
||||
</div>
|
||||
<ul>
|
||||
<li>
|
||||
<div class="left">
|
||||
<p>2022/8/23</p>
|
||||
<b>23:23:56</b>
|
||||
</div>
|
||||
<div class="right">
|
||||
<p>大魔法师铭牌</p>
|
||||
<b>1天</b>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 活动规则 -->
|
||||
<div class="rule">
|
||||
<img src="./images/rule.png" alt="">
|
||||
</div>
|
||||
<!-- 查看弹窗 -->
|
||||
<div class="look_put">
|
||||
<div class="look_put_in">
|
||||
<p style="display: none;" class="p1">前十位魔法师完成试炼点亮<br>成就墙可获得</p>
|
||||
<p style="display: none;" class="p2">试炼此水晶原石可获得</p>
|
||||
<img src="./images/logo.png" alt="" class="gift">
|
||||
<img style="display: none;" src="./images/obtained.png" alt="" class="obtained">
|
||||
<span class="giftNick"></span>
|
||||
<span class="num"></span>
|
||||
<div class="but"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 恭喜获得 -->
|
||||
<div class="gx">
|
||||
<div class="gx_in">
|
||||
<div class="gift_bg">
|
||||
<img src="./images/logo.png" alt="">
|
||||
</div>
|
||||
<p class="gift"></p>
|
||||
<b class="num"></b>
|
||||
<div class="but"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 活动结束 -->
|
||||
<div class="actOut">
|
||||
<div class="actOut_in">
|
||||
<div class="but"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<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="../../common/js/svga.min.js"></script>
|
||||
<script src="./js/index.js?v=1.3"></script>
|
||||
|
||||
</html>
|
894
view/peko/activity/act-magicSchool/js/index.js
Normal file
@@ -0,0 +1,894 @@
|
||||
// 封装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'
|
||||
})
|
||||
}
|
||||
let urlPrefix = getUrlPrefix()
|
||||
let browser = checkVersion()
|
||||
let env = EnvCheck();
|
||||
var startTime;//活动开始时间
|
||||
var endTime;//活动结束时间
|
||||
var nowTime = new Date().getTime();
|
||||
var firstExplorer;//是否首次高级探险
|
||||
var roomUid;
|
||||
let page = 0;
|
||||
let scrollBool = true;
|
||||
var passStatus;//水晶通关状态
|
||||
var caystalTrialLevel;//水晶当前等级
|
||||
var caystalTrialLevelIndex;//水晶当前等级
|
||||
var rankType = 0;//默认日榜
|
||||
var currentTimes = 1;
|
||||
var amethystStoneArr = [
|
||||
{
|
||||
giftNick: './images/amethystStoneText1.png',
|
||||
img: './images/amethystStone3.png',
|
||||
num: 700,
|
||||
value: '3天',
|
||||
awardName: '丛林秘藏',
|
||||
imgs: './images/img1.png'
|
||||
},
|
||||
{
|
||||
giftNick: './images/amethystStoneText2.png',
|
||||
img: './images/amethystStone2.png',
|
||||
num: 1500,
|
||||
value: '3天',
|
||||
awardName: '大魔导师',
|
||||
imgs: './images/img2.png'
|
||||
},
|
||||
{
|
||||
giftNick: './images/amethystStoneText3.png',
|
||||
img: './images/amethystStone1.png',
|
||||
num: 1800,
|
||||
value: '3天',
|
||||
awardName: '独角兽座驾',
|
||||
imgs: './images/img3.png'
|
||||
},
|
||||
]
|
||||
|
||||
if (env == 'test') {
|
||||
new VConsole();
|
||||
}
|
||||
var xsSvgaClick = true;
|
||||
|
||||
|
||||
$(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)
|
||||
}
|
||||
})
|
||||
getPageInfo();
|
||||
getRecommendRoom();
|
||||
}, 100)
|
||||
})
|
||||
var player1;
|
||||
var player2;
|
||||
var player3;
|
||||
function xsSvgaFun1 () {
|
||||
bodyScroolFun(true);
|
||||
$('.page1 .darkForest .csvags').show();
|
||||
player1 = new SVGA.Player('.csvag');
|
||||
parser1 = new SVGA.Parser('.csvag');
|
||||
console.log(parser1);
|
||||
parser1.load('./images/csvag.svga', function (videoItem) {
|
||||
player1.loops = 1;
|
||||
player1.clearsAfterStop = false;
|
||||
player1.setVideoItem(videoItem);
|
||||
player1.startAnimation();
|
||||
player1.setContentMode('AspectFill')
|
||||
player1.onFinished(() => {
|
||||
$('.page1 .darkForest .csvags').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
function xsSvgaFun2 () {
|
||||
bodyScroolFun(true);
|
||||
$('.page1 .darkForest .gsvags').show();
|
||||
player1 = new SVGA.Player('.gsvag');
|
||||
parser1 = new SVGA.Parser('.gsvag');
|
||||
parser1.load('./images/gscag.svga', function (videoItem) {
|
||||
player1.loops = 1;
|
||||
player1.clearsAfterStop = false;
|
||||
player1.setVideoItem(videoItem);
|
||||
player1.startAnimation();
|
||||
player1.setContentMode('AspectFill')
|
||||
player1.onFinished(() => {
|
||||
bodyScroolFun(false);
|
||||
$('.page1 .darkForest .gsvags').hide();
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
function xsSvgaFun3 () {
|
||||
bodyScroolFun(true);
|
||||
$('.page2 .amethystStone .amethystStoneGiftSvgas').show();
|
||||
player1 = new SVGA.Player('.ssvag');
|
||||
parser1 = new SVGA.Parser('.ssvag');
|
||||
parser1.load('./images/ssvag.svga', function (videoItem) {
|
||||
player1.loops = 1;
|
||||
player1.clearsAfterStop = false;
|
||||
player1.setVideoItem(videoItem);
|
||||
player1.startAnimation();
|
||||
player1.setContentMode('AspectFill')
|
||||
player1.onFinished(() => {
|
||||
bodyScroolFun(false);
|
||||
$('.page2 .amethystStone .amethystStoneGiftSvgas').hide();
|
||||
})
|
||||
})
|
||||
}
|
||||
// 获取魔法师成就墙接口
|
||||
function getMagicList () {
|
||||
$('.page2 .amethystStoneList ul li').remove();
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GEt',
|
||||
url: urlPrefix + '/activity/magic/magicList',
|
||||
data: { pub_ticket: pubInfo.ticket, pub_uid: pubInfo.uid },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
var str = '';
|
||||
res.data.forEach((res => {
|
||||
str += `
|
||||
<li>
|
||||
<img src=${res.avatar}" alt="">
|
||||
<span>${res.nick.length > 4 ? res.nick.slice(0, 4) + '...' : res.nick}</span>
|
||||
</li>
|
||||
`
|
||||
}))
|
||||
$('.page2 .amethystStoneList ul').append(str)
|
||||
hideLoading(layerIndex)
|
||||
} else {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg(res.message)
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 获取房间接口
|
||||
function getRecommendRoom () {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GEt',
|
||||
url: urlPrefix + '/act/cp/2022/getRecommendRoom',
|
||||
data: { pub_ticket: pubInfo.ticket, pub_uid: pubInfo.uid },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
roomUid = res.data;
|
||||
hideLoading(layerIndex)
|
||||
} else {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg(res.message)
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 初始化
|
||||
function getPageInfo () {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GEt',
|
||||
url: urlPrefix + '/activity/magic/info',
|
||||
data: { pub_ticket: pubInfo.ticket, pub_uid: pubInfo.uid },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
startTime = res.data.startTime;
|
||||
endTime = res.data.endTime;
|
||||
console.log(dateFormat(startTime, "MM月dd日"));
|
||||
console.log(dateFormat(endTime, "MM月dd日"));
|
||||
$('.page3 .list .time b').attr('time', nowTime);
|
||||
$('.page3 .list .time b').text(dateFormat(nowTime, "MM月dd日"));
|
||||
if (nowTime > endTime) {
|
||||
$('.page3 .list .time b').attr('time', endTime);
|
||||
$('.page3 .list .time b').text(dateFormat(endTime, "MM月dd日"));
|
||||
console.log(sessionStorage.getItem('bool'));
|
||||
if (sessionStorage.getItem('bool') != "true") {
|
||||
$('.actOut').show();
|
||||
bodyScroolFun(true);
|
||||
}
|
||||
}
|
||||
firstExplorer = res.data.firstExplorer
|
||||
if (firstExplorer) {
|
||||
$('.page1 .darkForest .seniorBut img').hide();
|
||||
} else {
|
||||
$('.page1 .darkForest .seniorBut img').show();
|
||||
}
|
||||
$('.page1 .darkForest .rough b').text(res.data.stoneNum);
|
||||
var nums = 0;
|
||||
res.data.taskList.forEach((res, index) => {
|
||||
$(`.page1 .toast .toast${index + 1} p b`).text(res.num != undefined ? res.num : '');
|
||||
if (res.taskStatus == 2) {
|
||||
nums = nums + 33.33333333333333;
|
||||
}
|
||||
if (index + 1 == 3) {
|
||||
$(`.page1 .toast .toast${index + 1} p b`).text(res.taskStatus == 2 ? 30 : 0);
|
||||
}
|
||||
|
||||
if (res.taskStatus == 1) {
|
||||
$(`.page1 .toast .toast${index + 1} div`).attr('click', 0);
|
||||
if (index + 1 < 4) {
|
||||
$(`.page1 .toast .toast${index + 1} div`).addClass('but');
|
||||
} else {
|
||||
$(`.page1 .toast .toast${index + 1} div`).addClass('toast_ing');
|
||||
}
|
||||
} else {
|
||||
$(`.page1 .toast .toast${index + 1} div`).attr('click', 1);
|
||||
if (index + 1 > 4) {
|
||||
$(`.page1 .toast .toast${index + 1} div`).addClass('toast_out');
|
||||
} else {
|
||||
$(`.page1 .toast .toast${index + 1} div`).addClass('toast_out');
|
||||
}
|
||||
}
|
||||
if (index + 1 == 1 || index + 1 == 3) {
|
||||
$(`.page1 .toast .toast${index + 1} div`).attr('room', 1);
|
||||
} else {
|
||||
$(`.page1 .toast .toast${index + 1} div`).attr('room', 0);
|
||||
}
|
||||
if (index + 1 == 4) {
|
||||
$(`.page1 .toast .toast4 span i`).text(`(${res.num}/3)`);
|
||||
if (res.taskStatus == 2) {
|
||||
$(`.page1 .toast .toast${index + 1} span b`).css('width', '100%')
|
||||
} else {
|
||||
$(`.page1 .toast .toast${index + 1} span b`).css('width', `${nums}%`)
|
||||
}
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
})
|
||||
} else {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg(res.message)
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查看榜单按钮
|
||||
$('.actOut .actOut_in .but').click(function () {
|
||||
sessionStorage.setItem("bool", 'true');
|
||||
bodyScroolFun(false);
|
||||
$('.page1').hide();
|
||||
$('.page2').hide();
|
||||
$('.tab div:nth-child(3)').attr('id', 'tab3');
|
||||
$('.tab div:nth-child(1)').attr('id', '');
|
||||
currentTimes = 1;
|
||||
getRank(rankType, Number($('.page3 .list .time b').attr('time')), currentTimes);
|
||||
$('.page3 .list').removeClass('list2');
|
||||
$('.page3').show();
|
||||
$('.actOut').hide();
|
||||
})
|
||||
// 探险记录接口
|
||||
function getExplorerRecord (page) {
|
||||
scrollBool = false;
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GEt',
|
||||
url: urlPrefix + '/activity/magic/explorerRecord',
|
||||
data: { pub_ticket: pubInfo.ticket, pub_uid: pubInfo.uid, page, pageSize: 10 },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
scrollBool = true;
|
||||
var str = ``;
|
||||
if (res.data.length == 0) {
|
||||
scrollBool = false;
|
||||
} else {
|
||||
|
||||
res.data.forEach((res, index) => {
|
||||
str += `
|
||||
<li>
|
||||
<div class="left">
|
||||
<p>${dateFormat(res.createTime, 'yyyy/MM/dd')}</p>
|
||||
<b>${dateFormat(res.createTime, 'hh:mm:ss')}</b>
|
||||
</div>
|
||||
<div class="right">
|
||||
<p>${res.objDes}</p>
|
||||
<b></b>
|
||||
</div>
|
||||
</li>
|
||||
`
|
||||
})
|
||||
}
|
||||
$('.forestReward .forestReward_in .forestRewardPage2 ul').append(str);
|
||||
console.log(page);
|
||||
hideLoading(layerIndex)
|
||||
} else {
|
||||
scrollBool = true;
|
||||
hideLoading(layerIndex)
|
||||
toastMsg(res.message)
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
scrollBool = true;
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 探险接口
|
||||
function getExplorer (explorerType) {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'post',
|
||||
url: urlPrefix + '/activity/magic/explorer',
|
||||
data: { explorerType, pub_ticket: pubInfo.ticket, pub_uid: pubInfo.uid, },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
$('.gx .gx_in .gift').text(res.data.awardName);
|
||||
$('.gx .gx_in .gift_bg img').removeClass('img1');
|
||||
if (res.data.awardType == 3 || res.data.awardType == 1 || res.data.awardType == 2) {
|
||||
if (res.data.awardType == 1) {
|
||||
$('.gx .gx_in .gift_bg img').addClass('img1');
|
||||
}
|
||||
$('.gx .gx_in .num').text(res.data.awardPrice + '天');
|
||||
} else if (res.data.awardType == 4) {
|
||||
$('.gx .gx_in .num').text(res.data.awardPrice + '钻石');
|
||||
} else if (res.data.awardType == 5) {
|
||||
$('.gx .gx_in .gift').text(res.data.awardName + '*' + res.data.awardPrice);
|
||||
$('.gx .gx_in .num').text('');
|
||||
}
|
||||
|
||||
$('.gx .gx_in .gift_bg img').attr('src', res.data.awardUrl);
|
||||
$('.gx').show();
|
||||
getPageInfo();
|
||||
hideLoading(layerIndex)
|
||||
xsSvgaClick = true;
|
||||
} else if (res.code == 10007) {
|
||||
hideLoading(layerIndex);
|
||||
hideLoading(layerIndex);
|
||||
$('.actOut').show();
|
||||
} else {
|
||||
xsSvgaClick = true;
|
||||
hideLoading(layerIndex)
|
||||
toastMsg(res.message)
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
xsSvgaClick = true;
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 水晶试炼场接口
|
||||
function getCaystalTrial (num) {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'POST',
|
||||
url: urlPrefix + '/activity/magic/caystalTrial',
|
||||
data: { pub_ticket: pubInfo.ticket, pub_uid: pubInfo.uid, num },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
xsSvgaClick = true;
|
||||
if (res.data != undefined) {
|
||||
$('.gx .gx_in .gift').text(res.data.awardName);
|
||||
$('.gx .gx_in .gift_bg img').removeClass('img1');
|
||||
if (res.data.awardType == 3 || res.data.awardType == 1 || res.data.awardType == 2) {
|
||||
if (res.data.awardType == 1) {
|
||||
$('.gx .gx_in .gift_bg img').addClass('img1');
|
||||
}
|
||||
$('.gx .gx_in .num').text(res.data.awardNum + '天');
|
||||
} else if (res.data.awardType == 4) {
|
||||
$('.gx .gx_in .num').text(res.data.awardNum + '钻石');
|
||||
} else if (res.data.awardType == 5) {
|
||||
$('.gx .gx_in .gift').text(res.data.awardName + '*' + res.data.awardNum);
|
||||
$('.gx .gx_in .num').text('');
|
||||
}
|
||||
$('.gx .gx_in .gift_bg img').attr('src', res.data.awardUrl);
|
||||
$('.gx').show();
|
||||
// $('.gx').show();
|
||||
// $('.gx .gx_in .gift_bg img').attr('src', res.data.awardUrl);
|
||||
// $('.gx .gx_in .gift').text(res.data.awardName);
|
||||
// $('.gx .gx_in .num').text(res.data.awardNum + '天');
|
||||
}
|
||||
getCaystalTrialInit();
|
||||
hideLoading(layerIndex)
|
||||
} else {
|
||||
xsSvgaClick = true;
|
||||
hideLoading(layerIndex)
|
||||
toastMsg(res.message)
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
xsSvgaClick = true;
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
$('.page2 .amethystStone .amethystStoneBut1').click(function () {
|
||||
if (xsSvgaClick) {
|
||||
var num = $('.page2 .amethystStone .lineBox p b').text();
|
||||
if (num != 0) {
|
||||
xsSvgaClick = false;
|
||||
xsSvgaFun3()
|
||||
setTimeout(function () {
|
||||
getCaystalTrial(1)
|
||||
}, 2000)
|
||||
} else {
|
||||
toastMsg('水晶石不足')
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
$('.page2 .amethystStone .amethystStoneBut5').click(function () {
|
||||
if (xsSvgaClick) {
|
||||
var num = $('.page2 .amethystStone .lineBox p b').text();
|
||||
if (num != 0) {
|
||||
xsSvgaClick = false;
|
||||
xsSvgaFun3()
|
||||
setTimeout(function () {
|
||||
getCaystalTrial(5)
|
||||
}, 2000)
|
||||
} else {
|
||||
toastMsg('水晶石不足')
|
||||
}
|
||||
}
|
||||
})
|
||||
// 获取水晶试炼场初始化接口
|
||||
var schedulevale;
|
||||
function getCaystalTrialInit () {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GEt',
|
||||
url: urlPrefix + '/activity/magic/caystalTrialInit',
|
||||
data: { pub_ticket: pubInfo.ticket, pub_uid: pubInfo.uid },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
passStatus = res.data.passStatus;
|
||||
if (passStatus == true) {
|
||||
caystalTrialLevel = 2;
|
||||
caystalTrialLevelIndex = 2;
|
||||
} else {
|
||||
caystalTrialLevel = res.data.caystalTrialLevel;
|
||||
caystalTrialLevelIndex = res.data.caystalTrialLevel;
|
||||
}
|
||||
$('.page2 .amethystStone .lineBox p b').text(res.data.caystalNum);
|
||||
$('.page2 .amethystStone .lineBox i strong').text(res.data.schedule);
|
||||
schedulevale = res.data.schedule;
|
||||
crystalTestingHround(schedulevale);
|
||||
hideLoading(layerIndex)
|
||||
} else {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg(res.message)
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 处理水晶切换
|
||||
function crystalTestingHround (schedulevale) {
|
||||
if (passStatus == true) {
|
||||
$('.page2 .amethystStone .amethystStoneGift').attr('src', amethystStoneArr[caystalTrialLevel].img);
|
||||
$('.page2 .amethystStone .stoneNick').attr('src', amethystStoneArr[caystalTrialLevel].giftNick);
|
||||
$('.page2 .amethystStone .lineBox span').css('width', `${100}%`);
|
||||
$('.page2 .amethystStone .lineBox i em').text(amethystStoneArr[caystalTrialLevel].num);
|
||||
$('.page2 .amethystStone .lineBox i strong').text(amethystStoneArr[caystalTrialLevel].num);
|
||||
$('.amethystStoneBut1').hide();
|
||||
$('.amethystStoneBut5').hide();
|
||||
$('.amethystStoneOut').show();
|
||||
} else {
|
||||
$('.page2 .amethystStone .amethystStoneGift').attr('src', amethystStoneArr[caystalTrialLevel].img);
|
||||
$('.page2 .amethystStone .stoneNick').attr('src', amethystStoneArr[caystalTrialLevel].giftNick);
|
||||
$('.page2 .amethystStone .lineBox i em').text(amethystStoneArr[caystalTrialLevel].num);
|
||||
$('.page2 .amethystStone .lineBox span').css('width', `${(schedulevale / amethystStoneArr[caystalTrialLevel].num) * 100}%`);
|
||||
if (caystalTrialLevel < caystalTrialLevelIndex) {
|
||||
$('.amethystStoneBut1').hide();
|
||||
$('.amethystStoneBut5').hide();
|
||||
$('.amethystStoneOut').show();
|
||||
$('.page2 .amethystStone .lineBox i strong').text(amethystStoneArr[caystalTrialLevel].num);
|
||||
$('.page2 .amethystStone .lineBox span').css('width', `${100}%`);
|
||||
} else if (caystalTrialLevel > caystalTrialLevelIndex) {
|
||||
$('.amethystStoneBut1').hide();
|
||||
$('.amethystStoneBut5').hide();
|
||||
$('.amethystStoneOut').hide();
|
||||
$('.page2 .amethystStone .lineBox i strong').text(0);
|
||||
$('.page2 .amethystStone .lineBox span').css('width', `${0}%`);
|
||||
}
|
||||
else if (caystalTrialLevel == caystalTrialLevelIndex) {
|
||||
$('.amethystStoneBut1').show();
|
||||
$('.amethystStoneBut5').show();
|
||||
$('.amethystStoneOut').hide();
|
||||
$('.page2 .amethystStone .lineBox i strong').text(schedulevale);
|
||||
}
|
||||
}
|
||||
if (caystalTrialLevel == 0) {
|
||||
$('.page2 .amethystStone .right').hide();
|
||||
} else {
|
||||
$('.page2 .amethystStone .right').show();
|
||||
}
|
||||
if (caystalTrialLevel == amethystStoneArr.length - 1) {
|
||||
$('.page2 .amethystStone .left').hide();
|
||||
} else {
|
||||
$('.page2 .amethystStone .left').show();
|
||||
}
|
||||
}
|
||||
// 水晶左切换
|
||||
$('.page2 .amethystStone .right').click(function () {
|
||||
if (caystalTrialLevel < amethystStoneArr.length - 1) {
|
||||
caystalTrialLevel = 0;
|
||||
} else {
|
||||
caystalTrialLevel = caystalTrialLevel - 1;
|
||||
}
|
||||
crystalTestingHround(schedulevale);
|
||||
})
|
||||
// 水晶右切换
|
||||
$('.page2 .amethystStone .left').click(function () {
|
||||
if (caystalTrialLevel >= amethystStoneArr.length - 1) {
|
||||
caystalTrialLevel = amethystStoneArr.length - 1;
|
||||
} else {
|
||||
caystalTrialLevel = caystalTrialLevel + 1;
|
||||
}
|
||||
|
||||
crystalTestingHround(schedulevale);
|
||||
})
|
||||
//点击查看原石奖励
|
||||
$('.page2 .amethystStone .amethystStoneGift').click(function () {
|
||||
$('.look_put .look_put_in .gift').removeClass('gift2');
|
||||
if (caystalTrialLevel != 0) {
|
||||
$('.look_put .look_put_in .gift').addClass('gift1');
|
||||
if (caystalTrialLevel == 2) {
|
||||
$('.look_put .look_put_in .gift').removeClass('gift1');
|
||||
$('.look_put .look_put_in .gift').addClass('gift2');
|
||||
}
|
||||
} else {
|
||||
$('.look_put .look_put_in .gift').removeClass('gift1');
|
||||
}
|
||||
$('.look_put .look_put_in .gift').attr('src', amethystStoneArr[caystalTrialLevel].imgs);
|
||||
$('.look_put .look_put_in .giftNick').text(amethystStoneArr[caystalTrialLevel].awardName)
|
||||
$('.look_put .look_put_in .num').text(amethystStoneArr[caystalTrialLevel].value);
|
||||
if (passStatus == true || caystalTrialLevel < caystalTrialLevelIndex) {
|
||||
$('.look_put .obtained').show();
|
||||
};
|
||||
$('.look_put .p2').show();
|
||||
$('.look_put').show();
|
||||
bodyScroolFun(true);
|
||||
})
|
||||
// 问号查看奖励
|
||||
$('.page2 .amethystStoneList .wenhao').click(function () {
|
||||
$('.look_put .look_put_in .gift').attr('src', './images/shanhu.png');
|
||||
$('.look_put .look_put_in .giftNick').text("珊瑚头饰")
|
||||
$('.look_put .look_put_in .num').text('3天');
|
||||
$('.look_put .p1').show();
|
||||
$('.look_put').show();
|
||||
})
|
||||
// 关闭查看奖励弹窗
|
||||
$('.look_put .look_put_in .but').click(function () {
|
||||
$('.look_put .p2').hide();
|
||||
$('.look_put .p1').hide();
|
||||
$('.look_put .obtained').hide();
|
||||
$('.look_put').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
//关闭恭喜弹窗
|
||||
$('.gx .gx_in .but').click(function () {
|
||||
$('.gx').hide();
|
||||
})
|
||||
// 监听滚动
|
||||
$('.forestReward .forestReward_in .forestRewardPage2 ul').scroll(function () {
|
||||
let scrollTop = $(this).scrollTop()
|
||||
let scrollHeight = $('.forestReward .forestReward_in .forestRewardPage2 ul')[0].scrollHeight
|
||||
let ulHeight = $(this).innerHeight()
|
||||
if (scrollTop + ulHeight + 100 >= scrollHeight) {
|
||||
if (scrollBool) {
|
||||
page++;
|
||||
getExplorerRecord(page);
|
||||
}
|
||||
}
|
||||
})
|
||||
// 初级探险
|
||||
$('.page1 .darkForest .primaryBut').click(function () {
|
||||
if (xsSvgaClick) {
|
||||
var num = $('.page1 .darkForest .rough b').text();
|
||||
if (num != 0) {
|
||||
xsSvgaClick = false;
|
||||
xsSvgaFun1()
|
||||
setTimeout(function () {
|
||||
getExplorer(0, 1)
|
||||
}, 2000)
|
||||
} else {
|
||||
toastMsg('原石不足')
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
// 高级探险
|
||||
$('.page1 .darkForest .seniorBut').click(function () {
|
||||
if (xsSvgaClick) {
|
||||
var num = $('.page1 .darkForest .rough b').text();
|
||||
if (num != 0) {//num != 0
|
||||
xsSvgaClick = false;
|
||||
xsSvgaFun2()
|
||||
setTimeout(function () {
|
||||
getExplorer(1, 3)
|
||||
}, 3000)
|
||||
} else {
|
||||
if (firstExplorer == false) {
|
||||
xsSvgaClick = false;
|
||||
xsSvgaFun2()
|
||||
setTimeout(function () {
|
||||
getExplorer(1, 3)
|
||||
}, 3000)
|
||||
} else {
|
||||
toastMsg('原石不足')
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
// 处理时间函数
|
||||
function timeFun (LR,) {
|
||||
var times = Number($('.page3 .list .time b').attr('time'));
|
||||
if (LR == 1) {
|
||||
times = (times - (1000 * 60 * 60 * 24));
|
||||
if (startTime > times) {
|
||||
$('.page3 .list .time b').text(dateFormat(startTime, "MM月dd日"));
|
||||
$('.page3 .list .time b').attr('time', startTime);
|
||||
times = startTime
|
||||
toastMsg('不能小于活动开始时间');
|
||||
} else {
|
||||
$('.page3 .list .time b').attr('time', (times));
|
||||
$('.page3 .list .time b').text(dateFormat(times, "MM月dd日"));
|
||||
getRank(rankType, Number($('.page3 .list .time b').attr('time')), currentTimes);
|
||||
}
|
||||
} else {
|
||||
if (times >= endTime) {
|
||||
$('.page3 .list .time b').text(dateFormat(endTime, "MM月dd日"));
|
||||
$('.page3 .list .time b').attr('time', endTime);
|
||||
times = endTime
|
||||
toastMsg('不能大于活动结束时间');
|
||||
} else {
|
||||
$('.page3 .list .time b').text(dateFormat((times + (1000 * 60 * 60 * 24)), "MM月dd日"));
|
||||
$('.page3 .list .time b').attr('time', (times + (1000 * 60 * 60 * 24)));
|
||||
getRank(rankType, Number($('.page3 .list .time b').attr('time')), currentTimes);
|
||||
}
|
||||
}
|
||||
}
|
||||
// 左时间切换按钮
|
||||
$('.page3 .list .time .timeLeftBg').click(function () {
|
||||
timeFun(1,)
|
||||
})
|
||||
// 右时间切换按钮
|
||||
$('.page3 .list .time .timeRightBg').click(function () {
|
||||
timeFun(2,)
|
||||
})
|
||||
// tab切换
|
||||
$('.tab div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$(this).siblings().attr('id', '');
|
||||
$(this).attr("id", `tab${i}`);
|
||||
$(`.page${i}`).show();
|
||||
if (i == 1) {
|
||||
$('.page2').hide();
|
||||
$('.page3').hide();
|
||||
} else if (i == 2) {
|
||||
$('.page1').hide();
|
||||
$('.page3').hide();
|
||||
getCaystalTrialInit();
|
||||
getMagicList();
|
||||
} else if (i == 3) {
|
||||
$('.page1').hide();
|
||||
$('.page2').hide();
|
||||
currentTimes = 1;
|
||||
getRank(rankType, Number($('.page3 .list .time b').attr('time')), currentTimes);
|
||||
$('.page3 .list').removeClass('list2');
|
||||
$('.page3').show();
|
||||
} else if (i == 4) {
|
||||
$('.page1').hide();
|
||||
$('.page2').hide();
|
||||
currentTimes = 2;
|
||||
getRank(rankType, Number($('.page3 .list .time b').attr('time')), currentTimes);
|
||||
$('.page3 .list').addClass('list2');
|
||||
$('.page3').show();
|
||||
}
|
||||
})
|
||||
// 切换总榜日榜
|
||||
$('.page3 .list .tabs div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$(this).addClass('tabAcative').siblings().removeClass('tabAcative');
|
||||
if (i == 1) {
|
||||
$('.page3 .list .tabs').css('margin',"1.48rem auto 0.3866666667rem")
|
||||
$('.page3 .list .time').show();
|
||||
rankType = 0;
|
||||
getRank(rankType, Number($('.page3 .list .time b').attr('time')), currentTimes);
|
||||
} else {
|
||||
$('.page3 .list .tabs').css('margin',"1.48rem auto 1rem")
|
||||
$('.page3 .list .time').hide();
|
||||
rankType = 1;
|
||||
getRank(rankType, Number($('.page3 .list .time b').attr('time')), currentTimes);
|
||||
}
|
||||
})
|
||||
// 获取榜单接口
|
||||
function getRank (rankType, currentTime, comeFrom) {
|
||||
$('.page3 .list .notTop li').remove()
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GEt',
|
||||
url: urlPrefix + '/activity/magic/rank',
|
||||
data: { pub_ticket: pubInfo.ticket, pub_uid: pubInfo.uid, rankType, currentTime: Number(currentTime), comeFrom },
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
var top3 = res.data.rankList.slice(0, 3);
|
||||
var notTop3 = res.data.rankList.slice(3);
|
||||
// 处理自己榜单
|
||||
$('.page3 .myList img').attr('src', res.data.userRank.avatar);
|
||||
$('.page3 .myList .num').text(res.data.userRank.rank == 0 ? '未上榜' : res.data.userRank.rank);
|
||||
$('.page3 .myList .nick').text(res.data.userRank.nick.length > 8 ? res.data.userRank.nick.slice(0, 8) + '...' : res.data.userRank.nick);
|
||||
$('.page3 .myList .score').text(comeFrom == 1 ? 'peko值:' + unitProcessing(res.data.userRank.rankValue, 10000, 1, 'w') : '魅力值:' + unitProcessing(res.data.userRank.rankValue, 10000, 1, 'w'));
|
||||
hideLoading(layerIndex)
|
||||
// 处理前三
|
||||
if (top3.length < 3) {
|
||||
let arr = new Array(3 - top3.length).fill({
|
||||
avatar: './images/logo.png',
|
||||
nick: '虚位以待',
|
||||
rankValue: ""
|
||||
})
|
||||
top3.push(...arr)
|
||||
}
|
||||
top3.forEach((res, index) => {
|
||||
$(`.page3 .list .top${index + 1} .txBg`).attr('src', res.avatar);
|
||||
$(`.page3 .list .top${index + 1} .nick`).text(res.nick.length > 6 ? res.nick.slice(0, 6) + '...' : res.nick);
|
||||
$(`.page3 .list .top${index + 1} p`).text(comeFrom == 1 ? 'peko值:' + unitProcessing(res.rankValue, 10000, 1, 'w') : '魅力值:' + unitProcessing(res.rankValue, 10000, 1, 'w'));
|
||||
})
|
||||
// 非前三
|
||||
var str = '';
|
||||
notTop3.forEach((res, index) => {
|
||||
str += `
|
||||
<li>
|
||||
<div class="num">NO.${index + 4}</div>
|
||||
<img src="${res.avatar}" alt="">
|
||||
<div class="nick">${res.nick.length > 6 ? res.nick.slice(0, 6) + '...' : res.nick}</div>
|
||||
<div class="score">${comeFrom == 1 ? 'peko值:' + unitProcessing(res.rankValue, 10000, 1, 'w') : '魅力值:' + unitProcessing(res.rankValue, 10000, 1, 'w')}</div>
|
||||
</li>`
|
||||
})
|
||||
$('.page3 .list .notTop').append(str);
|
||||
} else {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg(res.message)
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 打开榜单奖励
|
||||
$('.page3 .list .rule_list_icon').click(function () {
|
||||
$('.list_r').show();
|
||||
bodyScroolFun(true);
|
||||
})
|
||||
$('.list_r').click(function () {
|
||||
$(this).hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
// 首页跳转房间
|
||||
$('.page1 .toast .to div').click(function (params) {
|
||||
var room = $(this).attr('room');
|
||||
var click = $(this).attr('click');
|
||||
if (click == 1) {
|
||||
console.log('已完成');
|
||||
} else {
|
||||
if (browser.ios) {
|
||||
window.webkit.messageHandlers.openRoom.postMessage(roomUid);
|
||||
} else if (browser.android) {
|
||||
if (androidJsObj && typeof androidJsObj === 'object') {
|
||||
window.androidJsObj.openRoom(roomUid);
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
// 控制body是否可以滑动
|
||||
function bodyScroolFun (bool) {
|
||||
if (bool) {
|
||||
$('body').css('overflow', 'hidden');
|
||||
} else {
|
||||
$('body').css('overflow', 'auto');
|
||||
|
||||
}
|
||||
}
|
||||
// 切换森林奖励/记录按钮
|
||||
var forestRewardPageClick = true;
|
||||
$('.forestReward .forestReward_in .forestRewardTab div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
if (i == 1) {
|
||||
$(this).addClass('forestRewardTab1_active').siblings().removeClass('forestRewardTab2_active').addClass('forestRewardTab2s');
|
||||
$('.forestRewardPage1').show();
|
||||
$('.forestRewardPage2').hide();
|
||||
} else {
|
||||
$(this).addClass('forestRewardTab2_active').siblings().removeClass('forestRewardTab1_active').addClass('forestRewardTab1');
|
||||
$('.forestRewardPage2').show();
|
||||
$('.forestRewardPage1').hide();
|
||||
}
|
||||
return false
|
||||
})
|
||||
// 高级探险/初级探险切换按钮
|
||||
$('.forestReward .forestReward_in .forestRewardPage1 .box1 div').click(function () {
|
||||
var i = $(this).index() + 1;
|
||||
$(this).addClass('active').siblings().removeClass('active')
|
||||
if (i == 1) {
|
||||
$('.forestReward .forestReward_in .forestRewardPage1 .forestRewardPage1Bg').attr('src', './images/forestRewardPage1Bg1.png');
|
||||
} else {
|
||||
$('.forestReward .forestReward_in .forestRewardPage1 .forestRewardPage1Bg').attr('src', './images/forestRewardPage1Bg2.png');
|
||||
}
|
||||
return false
|
||||
})
|
||||
// 打开活动规则
|
||||
$('.hdader .rule_icon').click(function (params) {
|
||||
$('.rule').show();
|
||||
bodyScroolFun(true);
|
||||
})
|
||||
//关闭活动规则
|
||||
$('.rule').click(function (params) {
|
||||
$('.rule').hide();
|
||||
bodyScroolFun(false);
|
||||
})
|
||||
// 打开记录以及奖池
|
||||
$('.page1 .darkForest .prizePoolRecord').click(function (params) {
|
||||
bodyScroolFun(true);
|
||||
$('.forestReward .forestReward_in .forestRewardPage2 ul li').remove();
|
||||
page = 1;
|
||||
getExplorerRecord(page);
|
||||
$(".forestReward").show();
|
||||
})
|
||||
// 关闭记录以及奖池
|
||||
$(".forestReward").click(function (params) {
|
||||
bodyScroolFun(false);
|
||||
$(this).hide();
|
||||
})
|
||||
|
||||
// 返回页面 重新请求接口
|
||||
var hiddenProperty = 'hidden' in document ? 'hidden' :
|
||||
'webkitHidden' in document ? 'webkitHidden' :
|
||||
'mozHidden' in document ? 'mozHidden' : null;
|
||||
|
||||
var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange');
|
||||
var onVisibilityChange = function () {
|
||||
if (!document[hiddenProperty]) {
|
||||
location.reload()
|
||||
}
|
||||
}
|
||||
document.addEventListener(visibilityChangeEvent, onVisibilityChange);
|
@@ -121,7 +121,7 @@
|
||||
<div><img src="./images/total.png" alt=""></div>
|
||||
</div>
|
||||
<div class="date">
|
||||
<span date="2022-09-07" style="color: #BD3535; background: #ECAB44;">9.07</span>
|
||||
<span date="2022-09-07">9.07</span>
|
||||
<span date="2022-09-08">9.08</span>
|
||||
<span date="2022-09-09">9.09</span>
|
||||
<span date="2022-09-10">9.10</span>
|
||||
|
@@ -123,6 +123,7 @@ var txL = '';//头像左
|
||||
var txR = '';//头像右
|
||||
var totalLowMakeNum;
|
||||
var totalDiyMakeNum;
|
||||
var endTime; //结束时间
|
||||
$(function () {
|
||||
getInfoFromClient();
|
||||
setTimeout(function () {
|
||||
@@ -205,6 +206,7 @@ function getUserInfo () {
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
var timestamp = new Date().getTime();
|
||||
endTime = res.data.endTime;
|
||||
sessionStorageVal = localStorage.getItem('sessionStorageVal');
|
||||
if (timestamp >= res.data.endTime) {
|
||||
if (sessionStorageVal == 0 || sessionStorageVal == undefined) {
|
||||
@@ -216,6 +218,7 @@ function getUserInfo () {
|
||||
localStorage.setItem("sessionStorageVal", 1);
|
||||
$('.page1').hide();
|
||||
$('.tabSwitch .tabSwitch4').addClass('tabSwitch_act4').siblings().removeClass('tabSwitch_act1');
|
||||
rankDateStr = "2022-09-12"
|
||||
cpListRank();
|
||||
InitMyCpList()
|
||||
$('.page4').show();
|
||||
@@ -1269,7 +1272,8 @@ $('.giftRecord .giftRecord_in .tab2').scroll(function () {
|
||||
}
|
||||
}
|
||||
})
|
||||
var rankDateStr = '2022-09-07' //cp榜日榜日期
|
||||
// var rankDateStr = '2022-09-07' //cp榜日榜日期
|
||||
var rankDateStr = dateFormat(new Date().getTime(), 'yyyy-MM-dd');//cp榜日榜日期
|
||||
// 获取cp榜单接口
|
||||
function cpListRank () {
|
||||
showLoading()
|
||||
@@ -1531,17 +1535,22 @@ $('.tabBang div').click(function () {
|
||||
$('.cpList .tab div').click(function () {
|
||||
var i = $(this).index();
|
||||
if (i == 0) {
|
||||
rankDateStr = '2022-09-07';
|
||||
nowDate = new Date().getTime();
|
||||
if(endTime > nowDate){
|
||||
rankDateStr = dateFormat(new Date().getTime(), 'yyyy-MM-dd');
|
||||
}else {
|
||||
rankDateStr = "2022-09-12"
|
||||
}
|
||||
cpListRank();
|
||||
InitMyCpList()
|
||||
$(".cpList .date span").eq(0).css({
|
||||
'color': '#BD3535',
|
||||
'background': '#ECAB44'
|
||||
})
|
||||
$(".cpList .date span").eq(0).siblings().css({
|
||||
'color': '#03546C',
|
||||
'background': '#4BD2E0'
|
||||
})
|
||||
InitMyCpList();
|
||||
// $(".cpList .date span").eq(0).css({
|
||||
// 'color': '#BD3535',
|
||||
// 'background': '#ECAB44'
|
||||
// })
|
||||
// $(".cpList .date span").eq(0).siblings().css({
|
||||
// 'color': '#03546C',
|
||||
// 'background': '#4BD2E0'
|
||||
// })
|
||||
$(this).find('img').attr('src', './images/day_active.png');
|
||||
$(this).siblings().find('img').attr('src', './images/total.png');
|
||||
$('.cpList .date').show();
|
||||
@@ -1557,6 +1566,20 @@ $('.cpList .tab div').click(function () {
|
||||
|
||||
// 初始化当前用户关联cp列表
|
||||
function InitMyCpList () {
|
||||
let $date = $('.cpList .date span');
|
||||
$date.each(index=>{
|
||||
// console.log($date.eq(index).attr("date"));
|
||||
if(rankDateStr == $date.eq(index).attr("date")){
|
||||
$(".cpList .date span").eq(index).css({
|
||||
'color': '#BD3535',
|
||||
'background': '#ECAB44'
|
||||
})
|
||||
$(".cpList .date span").eq(index).siblings().css({
|
||||
'color': '#03546C',
|
||||
'background': '#4BD2E0'
|
||||
})
|
||||
}
|
||||
})
|
||||
$('.myCpList').removeClass('myCpList_active');
|
||||
$('.myCpList img').removeClass('more_active');
|
||||
$('.myCpList ul').css('overflow-y', 'hidden');
|
||||
@@ -1571,14 +1594,14 @@ function InitMyCpList () {
|
||||
// 日榜日期切换
|
||||
$('.cpList .date span').click(function () {
|
||||
var i = $(this).index();
|
||||
$(".cpList .date span").eq(i).css({
|
||||
'color': '#BD3535',
|
||||
'background': '#ECAB44'
|
||||
})
|
||||
$(".cpList .date span").eq(i).siblings().css({
|
||||
'color': '#03546C',
|
||||
'background': '#4BD2E0'
|
||||
})
|
||||
// $(".cpList .date span").eq(i).css({
|
||||
// 'color': '#BD3535',
|
||||
// 'background': '#ECAB44'
|
||||
// })
|
||||
// $(".cpList .date span").eq(i).siblings().css({
|
||||
// 'color': '#03546C',
|
||||
// 'background': '#4BD2E0'
|
||||
// })
|
||||
rankDateStr = $(".cpList .date span").eq(i).attr('date');
|
||||
cpListRank();
|
||||
InitMyCpList();
|
||||
|
@@ -45,7 +45,7 @@
|
||||
<p>剩余7天</p>
|
||||
<div class="nameplate">
|
||||
<img src="http://image.uat.zhongjialx.com/FqVz-oYR2lzqfzIlZNM3BrA016cX?imageslim" alt="">
|
||||
<span>夜莺看看</span>
|
||||
<span>peko看看</span>
|
||||
</div>
|
||||
<div class="delay-btn">
|
||||
<img src="./images/delay-btn.png" alt="">
|
||||
|
@@ -15,9 +15,9 @@ let dataListT = []
|
||||
// new VConsole
|
||||
if (EnvCheck() == 'test') {
|
||||
// new VConsole;
|
||||
baseUrl = 'https://yeying.api.shengxuanwangluo.com/'
|
||||
baseUrl = 'https://beta.api.pekolive.com/'
|
||||
} else {
|
||||
baseUrl = 'https://yeying.api.shengxuanwangluo.com/'
|
||||
baseUrl = 'https://api.lecheng163.com/'
|
||||
}
|
||||
let i = 0
|
||||
let a = true
|
||||
|
@@ -4,9 +4,9 @@ let info = {}
|
||||
|
||||
if (EnvCheck() == 'test') {
|
||||
new VConsole;
|
||||
baseUrl = 'https://yeying.api.shengxuanwangluo.com/'
|
||||
baseUrl = 'https://beta.api.pekolive.com/'
|
||||
} else {
|
||||
baseUrl = 'https://yeying.api.shengxuanwangluo.com/'
|
||||
baseUrl = 'https://api.lecheng163.com/'
|
||||
}
|
||||
$(function () {
|
||||
//埋点测试
|
||||
|
@@ -2,13 +2,13 @@
|
||||
var api = locateJudge();
|
||||
var browser = checkVersion();
|
||||
var info = {};
|
||||
var betaUrl = 'https://yeying.api.shengxuanwangluo.com/peko/activity/act-61/index.html';
|
||||
var betaUrl = 'https://beta.api.pekolive.com/peko/activity/act-61/index.html';
|
||||
var realUrl = tranUrl + '/peko/activity/act-61/index.html';
|
||||
var share = {
|
||||
title: '纯真年代',
|
||||
link: tranUrl + '/peko/activity/act-61/index.html',
|
||||
// imgUrl: 'https://img.letusmix.com/new_logo.png',
|
||||
imgUrl: 'https://yeying.api.shengxuanwangluo.com/peko/modules/wxPubPay/images/logo.png',
|
||||
imgUrl: 'https://api.lecheng163.com/peko/modules/wxPubPay/images/logo.png',
|
||||
desc: '限定铭牌萌趣降临',// 分享描述
|
||||
};
|
||||
if (EnvCheck() == 'test') {
|
||||
|
@@ -17,13 +17,14 @@ $(function() {
|
||||
console.log(res);
|
||||
var data = res.data;
|
||||
document.title = data.title;
|
||||
betaUrl = 'https://yeying.api.shengxuanwangluo.com/peko/activity/activemodel/index.html?code=' + code;
|
||||
betaUrl = 'https://beta.api.pekolive.com/peko/activity/activemodel/index.html?code=' + code;
|
||||
realUrl = tranUrl + '/peko/activity/activemodel/index.html?code=' + code;
|
||||
share = {
|
||||
title: data.title,
|
||||
link: tranUrl + '/peko/activity/activemodel/index.html?code=' + code,
|
||||
// imgUrl: 'https://img.letusmix.com/new_logo.png',
|
||||
imgUrl: 'https://yeying.api.shengxuanwangluo.com/peko/modules/wxPubPay/images/logo.png',
|
||||
// imgUrl: 'https://api.lecheng163.com/peko/modules/wxPubPay/images/logo.png',
|
||||
imgUrl: '../../../common/images/logo.png',
|
||||
desc: data.secondTitle, // 分享描述
|
||||
};
|
||||
$('#img')[0].src = data.imgUrl;
|
||||
|
@@ -76,7 +76,7 @@
|
||||
<div class="tab2_contain">
|
||||
<div class="rule_wrap">
|
||||
<p class="rule_item">
|
||||
活动期间,每日登录夜莺App即可免费获赠一个魔法棒(每台设备每日限一次)
|
||||
活动期间,每日登录pekoApp即可免费获赠一个魔法棒(每台设备每日限一次)
|
||||
</p>
|
||||
</div>
|
||||
<div class="panel_wrap">
|
||||
|
@@ -6,7 +6,7 @@
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title>夜莺</title>
|
||||
<title>peko</title>
|
||||
|
||||
<link rel="stylesheet" href="./css/reset.css">
|
||||
<link rel="stylesheet" href="./css/index.css">
|
||||
@@ -22,7 +22,7 @@
|
||||
<div class="button2-wrapper download">
|
||||
</div>
|
||||
<div class="eori">
|
||||
<div class="weixin-name">夜莺客服微信:pekokefu01</div>
|
||||
<div class="weixin-name">peko客服微信:pekokefu01</div>
|
||||
<p>粤网文:(2018)8220-2981号</p>
|
||||
<p class="recordfoot">
|
||||
<i class="record"></i>
|
||||
|
@@ -21,8 +21,8 @@ const channelDict = {
|
||||
$(function () {
|
||||
let env = EnvCheck();
|
||||
let version = checkVersion()
|
||||
// $.get('https://yeying.api.shengxuanwangluo.com/version/download/link', function (res) {
|
||||
$.get('https://yeying.api.shengxuanwangluo.com/version/download/link', function (res) {
|
||||
// $.get('https://beta.api.pekolive.com/version/download/link', function (res) {
|
||||
$.get('https://api.lecheng163.com/version/download/link', function (res) {
|
||||
if (res.code === 200) {
|
||||
//判断url参数是否是与渠道包名一致
|
||||
let androidUrl = null;
|
||||
|
@@ -25,7 +25,7 @@
|
||||
<meta name="msapplication-tap-highlight" content="no">
|
||||
<meta name="apple-mobile-web-app-capable" content="no" />
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<title>夜莺</title>
|
||||
<title>peko</title>
|
||||
|
||||
<!-- <link rel="stylesheet" href="./home/css/reset.css"> -->
|
||||
<link rel="stylesheet" href="./css/reset.css">
|
||||
@@ -47,7 +47,7 @@
|
||||
<!--<a href="javascript:void(0)" class="jumpUrl"><img src="./home/images/pc/iosBtn.png" alt=""></a>-->
|
||||
</div>
|
||||
<div class="eori">
|
||||
<div class="weixin-name">夜莺客服微信:pekokefu01</div>
|
||||
<div class="weixin-name">peko客服微信:pekokefu01</div>
|
||||
<p>粤网文:(2018)8220-2981号</p>
|
||||
<p class="recordfoot">
|
||||
<i class="record"></i>
|
||||
|
@@ -18,8 +18,8 @@ $(function () {
|
||||
var env = EnvCheck();
|
||||
var version = checkVersion()
|
||||
// console.log(version);
|
||||
// $.get('https://yeying.api.shengxuanwangluo.com/version/download/link', function (res) {
|
||||
$.get('https://yeying.api.shengxuanwangluo.com/version/download/link', function (res) {
|
||||
// $.get('https://beta.api.pekolive.com/version/download/link', function (res) {
|
||||
$.get('https://api.lecheng163.com/version/download/link', function (res) {
|
||||
console.log(res)
|
||||
if (res.code === 200) {
|
||||
// let androidUrl = res.data.androidLink
|
||||
|
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<title>探索夜莺</title>
|
||||
<title>探索peko</title>
|
||||
|
||||
<link rel="stylesheet" href="../../common/css/reset.css">
|
||||
<link rel="stylesheet" href="./css/index.css?v=3.1">
|
||||
|
@@ -5,7 +5,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<title>探索夜莺</title>
|
||||
<title>探索peko</title>
|
||||
|
||||
<!-- <%- include('../html_tpl/style.html') %> -->
|
||||
<link rel="stylesheet" href="./css/index.css">
|
||||
|
@@ -197,7 +197,7 @@ $(function () {
|
||||
},
|
||||
type: 'POST',
|
||||
url: api + '/activity/pack/buy',
|
||||
// url: 'https://yeying.api.shengxuanwangluo.com/activity/pack/buy',
|
||||
// url: 'https://beta.api.pekolive.com/activity/pack/buy',
|
||||
data: {
|
||||
uid: info.uid,
|
||||
packId: giftObj.giftId,
|
||||
@@ -241,7 +241,7 @@ $(function () {
|
||||
},
|
||||
type: 'POST',
|
||||
url: api + '/activities/draw/getPackList',
|
||||
// url: 'https://yeying.api.shengxuanwangluo.com/activities/draw/getPackList',
|
||||
// url: 'https://beta.api.pekolive.com/activities/draw/getPackList',
|
||||
data: {
|
||||
uid: info.uid,
|
||||
ticket: info.ticket
|
||||
@@ -263,7 +263,7 @@ function renderTicket(param) {
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: api + '/activities/draw/queryTicketNum',
|
||||
// url: 'https://yeying.api.shengxuanwangluo.com/activities/draw/queryTicketNum',
|
||||
// url: 'https://beta.api.pekolive.com/activities/draw/queryTicketNum',
|
||||
data: {
|
||||
uid: info.uid
|
||||
// uid: 936365
|
||||
|
@@ -36,8 +36,8 @@ let shareObj = {
|
||||
type: 2,
|
||||
data: {
|
||||
msg: 'llllll',
|
||||
title: '我的夜莺一周年报告',
|
||||
imgUrl: 'https://yeying.api.shengxuanwangluo.com/peko/modules/wxPubPay/images/logo.png',
|
||||
title: '我的peko一周年报告',
|
||||
imgUrl: 'https://beta.api.pekolive.com/peko/modules/wxPubPay/images/logo.png',
|
||||
desc: '我的专属称号竟然是这样的!快来试试你的~',
|
||||
}
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@
|
||||
<h3>嗨,鹅宝</h3>
|
||||
<p class="p1">还记得<span><b></b><b></b><b></b></span></p>
|
||||
<p>我们第一次相遇</p>
|
||||
<p>截止目前夜莺已陪伴你<span class="sp1"></span>天~</p>
|
||||
<p>截止目前peko已陪伴你<span class="sp1"></span>天~</p>
|
||||
</div>
|
||||
<div class="touchBox">
|
||||
<img src="./images/time_cinema/touch.png" alt="">
|
||||
@@ -29,7 +29,7 @@
|
||||
<div class="bg bg2">
|
||||
<div class="text">
|
||||
<h3>过去的一年</h3>
|
||||
<p>你有<span class="sp1">2222222</span>天都在夜莺里畅游</p>
|
||||
<p>你有<span class="sp1">2222222</span>天都在peko里畅游</p>
|
||||
<p>累计登入<span class="sp2">22222222</span>次</p>
|
||||
<p>你一共探索了<span class="sp3">2222</span>个房间</p>
|
||||
<p>其中<span class="sp4">ID:5200</span>的房间陪伴你最久</p>
|
||||
@@ -79,7 +79,7 @@
|
||||
<div class="bg bg5">
|
||||
<div class="text">
|
||||
<p>无论未来如何</p>
|
||||
<p>希望夜莺还能陪伴你度过岁岁年年~</p>
|
||||
<p>希望peko还能陪伴你度过岁岁年年~</p>
|
||||
<p>在此授予你:</p>
|
||||
<h3><span>XXXX</span>称号</h3>
|
||||
</div>
|
||||
|
@@ -71,7 +71,7 @@ $(function() {
|
||||
}
|
||||
const getData = (type = 1) => {
|
||||
$.ajax({
|
||||
// url: 'https://yeying.api.shengxuanwangluo.com/summerActivity/ranking',
|
||||
// url: 'https://beta.api.pekolive.com/summerActivity/ranking',
|
||||
url: '/summerActivity/ranking',
|
||||
data: { type },
|
||||
headers: {
|
||||
|
@@ -19,7 +19,7 @@
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
height: calc(100vh);
|
||||
background: #462978;
|
||||
position: relative;
|
||||
}
|
||||
@@ -976,8 +976,8 @@ body {
|
||||
z-index: 99;
|
||||
}
|
||||
.rule .rule_in {
|
||||
width: 6.88rem;
|
||||
height: 9.04rem;
|
||||
width: 7.72rem;
|
||||
height: 8rem;
|
||||
background: url(../images/rule1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: absolute;
|
||||
|
@@ -1125,8 +1125,8 @@ body {
|
||||
z-index: 99;
|
||||
|
||||
.rule_in {
|
||||
width: px2rem(516, );
|
||||
height: px2rem(678, );
|
||||
width: px2rem(579, );
|
||||
height: px2rem(600, );
|
||||
background: url(../images/rule1.png) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
position: absolute;
|
||||
|
Before Width: | Height: | Size: 777 KiB After Width: | Height: | Size: 287 KiB |
@@ -37,7 +37,7 @@
|
||||
<!-- 合成成功 -->
|
||||
<div class="success_wrap">
|
||||
<div class="qipao3">
|
||||
<img src="http://img.uat.pekolive.com/FszzQQxFvTSutMLHqh9mzi2XkJqx?imageslim" alt="">
|
||||
<img src="http://img.uat.lecheng163.com/FszzQQxFvTSutMLHqh9mzi2XkJqx?imageslim" alt="">
|
||||
</div>
|
||||
<span>你已成功合成礼物“<b>契约魔法棒</b>” </span>
|
||||
<p>已发入背包中,请注意查收~</p>
|
||||
|
@@ -13,7 +13,7 @@
|
||||
<div class="content"></div>
|
||||
<div class="activityReward"></div>
|
||||
<div class="but"></div>
|
||||
<div class="text">该活动最终解释权归夜莺平台所有</div>
|
||||
<div class="text">该活动最终解释权归peko平台所有</div>
|
||||
<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>
|
||||
|
@@ -10,7 +10,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="bg"></div>
|
||||
<a href="https://yeying.api.shengxuanwangluo.com/peko/activity/ticketsPackage/index.html?pid=71" class="but"></a>
|
||||
<a href="https://api.lecheng163.com/peko/activity/ticketsPackage/index.html?pid=71" class="but"></a>
|
||||
<script src="../../common/js/flexible.js"></script>
|
||||
</body>
|
||||
</html>
|
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>夜莺棋王杯</title>
|
||||
<title>peko棋王杯</title>
|
||||
<link rel="stylesheet" href="../../common/css/reset.css">
|
||||
<link rel="stylesheet" href="./css/qiwang.css">
|
||||
</head>
|
||||
|