Compare commits
1 Commits
shenghai
...
addPrivacy
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e82aab1367 |
Before Width: | Height: | Size: 289 B |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 479 B |
Before Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 120 KiB |
Before Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 718 B |
Before Width: | Height: | Size: 729 B |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 161 KiB |
Before Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 407 B |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 8.1 KiB |
@@ -1,381 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<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>情定cp 缔结良缘</title>
|
||||
|
||||
<link rel="stylesheet" href="../../common/css/reset.css">
|
||||
<link rel="stylesheet" href="./css/swiper-bundle.min.css">
|
||||
<link rel="stylesheet" href="./css/index.css?v=1.43">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrap no-in-app">
|
||||
<!-- 主视觉 -->
|
||||
<div class="banner"><img src="./images/main.png" alt=""></div>
|
||||
<div class="mycp"><img src="./images/btn_cp.png" alt=""></div>
|
||||
<div class="unread">0</div>
|
||||
<div class="rule"><img src="./images/btn_rule.png" alt=""></div>
|
||||
<!-- 情缘信物 -->
|
||||
<div class="letter-wrap">
|
||||
<div class="tips">購買並贈送CP信物,對方同意締結後,即可結成CP;<br>送情人節限定禮物和信物都能增加情緣值喲~</div>
|
||||
<div class="cp_record">CP獎勵記錄</div>
|
||||
<div class="letter">
|
||||
<div class="imgbox">
|
||||
<img src="./images/letter_gift.png" alt="">
|
||||
</div>
|
||||
<p>我的信物:<e>0</e>個</p>
|
||||
<div class="letter_rule">締結CP後,互送情人節限定禮物,積攢<br>情緣值即可獲得豐厚特權獎勵~</div>
|
||||
</div>
|
||||
<div class="but">
|
||||
<input type="number" value="1" maxlength="999"
|
||||
onkeyup="value=(value.replace(/\D/g,'')==''?'':parseInt(value))">
|
||||
<img src="./images/btn_add.png" class="add" alt="">
|
||||
<img src="./images/btn_cut.png" class="cut" alt="">
|
||||
</div>
|
||||
<!-- 获取信物按钮 -->
|
||||
<div class="get_letter">
|
||||
<img src="./images/get_letter.png" alt="">
|
||||
</div>
|
||||
<!-- 特权奖励 -->
|
||||
<div class="award_title">
|
||||
<img class="line" src="./images/line_l.png" alt="">
|
||||
<span>特權獎勵</span>
|
||||
<img class="line" src="./images/line_r.png" alt="">
|
||||
</div>
|
||||
<div class="subheard">達到相應的情緣值即可獲得對應特權獎勵哦~</div>
|
||||
<div class="award">
|
||||
<div class="giftbox">
|
||||
<img src="./images/special1.png" alt="">
|
||||
<span>一見鐘情</span>
|
||||
<p>10000情緣值</p>
|
||||
</div>
|
||||
<img class="arrow" src="./images/arrows.png" alt="">
|
||||
<div class="giftbox">
|
||||
<img src="./images/special2.png" alt="">
|
||||
<span>情竇初開</span>
|
||||
<p>52000情緣值</p>
|
||||
</div>
|
||||
<img class="arrow" src="./images/arrows.png" alt="">
|
||||
<div class="giftbox">
|
||||
<img src="./images/special3.png" alt="">
|
||||
<span>心心相印</span>
|
||||
<p>131400情緣值</p>
|
||||
</div>
|
||||
<img class="arrow" src="./images/arrows.png" alt="">
|
||||
<div class="giftbox">
|
||||
<img src="./images/special4.png" alt="">
|
||||
<span>緣定今生</span>
|
||||
<p>334400情緣值</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<img class="bling0" src="./images/bling0.png" alt="">
|
||||
<!-- 礼物轮播 -->
|
||||
<div class="swiper-title"></div>
|
||||
<div class="swiper-container swiper">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide">
|
||||
<img src="./images/slide1.png" alt="">
|
||||
</div>
|
||||
<div class="swiper-slide">
|
||||
<img src="./images/slide2.png" class="slide2" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="swiper-pagination swp"></div> -->
|
||||
</div>
|
||||
<img class="bling1" src="./images/bling1.png" alt="">
|
||||
<!-- 送礼得情签 -->
|
||||
<div class="petition_title"></div>
|
||||
<div class="petition-wrap">
|
||||
<div class="myticket">
|
||||
<span>我的情簽: <e></e></span>
|
||||
<div class="charge">兌換記錄</div>
|
||||
</div>
|
||||
<div class="subheard">贈送情人節限定禮物,送出一個禮物可得對應數量的「幸運情簽」,且可增加CP間的情緣值,情簽可兌換特權或抽獎喲~</div>
|
||||
<div class="chargeTab">
|
||||
<div class="item itemact">兌換好禮</div>
|
||||
<div class="item">幸運靚號</div>
|
||||
</div>
|
||||
<ul class="gift-wrap">
|
||||
<li class="li1">
|
||||
<div class="giftbg">
|
||||
<img class="mingpai" src="./images/mingpai.png" alt="">
|
||||
</div>
|
||||
<span></span>
|
||||
<div class="but">
|
||||
<input type="number" value="1" onkeyup="value=(value.replace(/\D/g,'')==''?'':parseInt(value))">
|
||||
<img src="./images/btn_add.png" class="add" alt="">
|
||||
<img src="./images/btn_cut.png" class="cut" alt="">
|
||||
</div>
|
||||
<div class="btn">兌換銘牌</div>
|
||||
<p><e></e>情签一次</p>
|
||||
</li>
|
||||
<li class="li2">
|
||||
<div class="giftbg">
|
||||
<img class="gift" src="./images/ziliaoka.png" alt="">
|
||||
</div>
|
||||
<span></span>
|
||||
<div class="but">
|
||||
<input type="number" value="1" onkeyup="value=(value.replace(/\D/g,'')==''?'':parseInt(value))">
|
||||
<img src="./images/btn_add.png" class="add" alt="">
|
||||
<img src="./images/btn_cut.png" class="cut" alt="">
|
||||
</div>
|
||||
<div class="btn">兌換資料卡</div>
|
||||
<p><e></e>情签一次</p>
|
||||
</li>
|
||||
<li class="li3">
|
||||
<div class="giftbg">
|
||||
<img class="gift" src="./images/toushi.png" alt="">
|
||||
</div>
|
||||
<span></span>
|
||||
<div class="but">
|
||||
<input type="number" value="1" onkeyup="value=(value.replace(/\D/g,'')==''?'':parseInt(value))">
|
||||
<img src="./images/btn_add.png" class="add" alt="">
|
||||
<img src="./images/btn_cut.png" class="cut" alt="">
|
||||
</div>
|
||||
<div class="btn">兌換頭飾</div>
|
||||
<p><e></e>情签一次</p>
|
||||
</li>
|
||||
<li class="li4">
|
||||
<div class="giftbg">
|
||||
<img class="gift" src="./images/zuojia.png" alt="">
|
||||
</div>
|
||||
<span></span>
|
||||
<div class="but">
|
||||
<input type="number" value="1" onkeyup="value=(value.replace(/\D/g,'')==''?'':parseInt(value))">
|
||||
<img src="./images/btn_add.png" class="add" alt="">
|
||||
<img src="./images/btn_cut.png" class="cut" alt="">
|
||||
</div>
|
||||
<div class="btn">兌換座駕</div>
|
||||
<p><e></e>情签一次</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="number-wrap" style="display: none;">
|
||||
<li>
|
||||
<div class="giftbg">
|
||||
<img class="gift" src="./images/lianghao.png" alt="">
|
||||
</div>
|
||||
<span>幸運靚號(52***)1組</span>
|
||||
<div class="but">
|
||||
<input type="number" value="1" onkeyup="value=(value.replace(/\D/g,'')==''?'':parseInt(value))">
|
||||
<img src="./images/btn_add.png" class="add" alt="">
|
||||
<img src="./images/btn_cut.png" class="cut" alt="">
|
||||
</div>
|
||||
<div class="btn">抽取靚號</div>
|
||||
<p><e></e>情签一次</p>
|
||||
<div class="tips">中獎後請聯系客服領取哦~</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<img class="bling2" src="./images/bling2.png" alt="">
|
||||
<!-- 榜单 -->
|
||||
<div class="rank_title"></div>
|
||||
<div class="rank-wrap">
|
||||
<!-- 奖励 -->
|
||||
<img src="./images/rankAward.png" class="reward" alt="">
|
||||
<!-- 榜单列表 -->
|
||||
<div class="list">
|
||||
<div class="no1">
|
||||
<div class="txbox1">
|
||||
<img src="./images/logo.png" class="tx" alt="">
|
||||
</div>
|
||||
<div class="txbox2">
|
||||
<img src="./images/logo.png" class="tx" alt="">
|
||||
</div>
|
||||
<div class="nick1">虛位以待</div>
|
||||
<div class="nick2">虛位以待</div>
|
||||
<img src="./images/xin.png" class="xin" alt="">
|
||||
<div class="score">情緣值:<b>0</b></div>
|
||||
</div>
|
||||
<ul>
|
||||
<!-- <li>
|
||||
<div class="num">2</div>
|
||||
<div class="txbox1">
|
||||
<img src="./images/logo.png" class="tx" alt="">
|
||||
</div>
|
||||
<div class="txbox2">
|
||||
<img src="./images/logo.png" class="tx" alt="">
|
||||
</div>
|
||||
<div class="nick1"></div>
|
||||
<div class="nick2"></div>
|
||||
<img src="./images/xin.png" class="xin" alt="">
|
||||
<span>情緣值</span>
|
||||
<div class="score"></div>
|
||||
</li>
|
||||
<li><p>等你來上榜~</p></li> -->
|
||||
</ul>
|
||||
</div>
|
||||
<div class="myRank">
|
||||
<div class="num">未上榜</div>
|
||||
<div class="txbox1">
|
||||
<img src="./images/logo.png" class="tx" alt="">
|
||||
</div>
|
||||
<div class="txbox2">
|
||||
<img src="./images/logo.png" class="tx" alt="">
|
||||
</div>
|
||||
<div class="nick1">暫無cp</div>
|
||||
<div class="nick2">暫無cp</div>
|
||||
<img src="./images/myxin.png" class="xin" alt="">
|
||||
<span>情緣值</span>
|
||||
<div class="score">0</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 恭喜获得弹窗1,2 -->
|
||||
<div class="gx">
|
||||
<div class="gx_in">
|
||||
<img src="./images/close.png" class="close" alt="">
|
||||
<ul class="box">
|
||||
<li>
|
||||
<div class="bg">
|
||||
<img src="./images/logo.png" alt="">
|
||||
</div>
|
||||
<span></span>
|
||||
</li>
|
||||
</ul>
|
||||
<img src="./images/btn_sure.png" class="sure" alt="">
|
||||
<div class="tips">奖励将自动发放到装扮中心,快去展示自己吧~</div>
|
||||
<!-- <div class="tips">*情人节限定5位靓号:52XXX(XXX为随机数字,一组为2个靓号,<br>联系客服领取:LINE: pekoyuyin)</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- 我的cp弹窗 -->
|
||||
<div class="mycpBox">
|
||||
<div class="mycp_in">
|
||||
<img src="./images/close.png" class="close" alt="">
|
||||
<div class="tishi">*CP一旦結成,不可取消</div>
|
||||
<p>
|
||||
<span>我的CP</span>
|
||||
<span>情缘值</span>
|
||||
<span>状态</span>
|
||||
</p>
|
||||
<ul class="box">
|
||||
<li>
|
||||
<b>CP1的昵称...</b>
|
||||
<b class="cpValue">170011703</b>
|
||||
<span class="pass">已缔结</span>
|
||||
</li>
|
||||
<li>
|
||||
<b>CP1的昵称...</b>
|
||||
<b class="cpValue">170011703</b>
|
||||
<span class="waitpass" inviterUid="2346">可通过</span>
|
||||
</li>
|
||||
<li>
|
||||
<b>Cp1的昵称...</b>
|
||||
<b class="cpValue">170011703</b>
|
||||
<span class="canpass">待通过</span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tips">暫無更多記錄~</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- cp奖励记录弹窗 -->
|
||||
<div class="cpRecordBox">
|
||||
<div class="cpRecord_in">
|
||||
<img src="./images/close.png" class="close" alt="">
|
||||
<p>
|
||||
<span>时间</span>
|
||||
<span>我的CP</span>
|
||||
<span>情缘等级</span>
|
||||
<span>奖励</span>
|
||||
</p>
|
||||
<ul class="box">
|
||||
<li>
|
||||
<b>08.31 <e>23:23</e></b>
|
||||
<b>CP1的昵称...</b>
|
||||
<b>缘定今生</b>
|
||||
<b class="jiangli">XXX座驾1天*1组</b>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tips">暫無更多記錄~</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 情签抽奖记录弹窗 -->
|
||||
<div class="drawBox">
|
||||
<div class="draw_in">
|
||||
<img src="./images/close.png" class="close" alt="">
|
||||
<p>
|
||||
<span>时间</span>
|
||||
<span>消耗情签</span>
|
||||
<span>奖励</span>
|
||||
</p>
|
||||
<ul class="box">
|
||||
<li>
|
||||
<b>08.31 <e>23:23</e></b>
|
||||
<b>38</b>
|
||||
<b class="number">幸运靓号1组</b>
|
||||
</li>
|
||||
<li>
|
||||
<b>08.31 <e>23:23</e></b>
|
||||
<b>38</b>
|
||||
<b class="number">未中奖</b>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tips">暫無更多記錄~</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 情签兑换记录弹窗 -->
|
||||
<div class="exchangeBox">
|
||||
<div class="exchange_in">
|
||||
<img src="./images/close.png" class="close" alt="">
|
||||
<p>
|
||||
<span>时间</span>
|
||||
<span>消耗情签</span>
|
||||
<span>奖励</span>
|
||||
<span>奖励天数</span>
|
||||
</p>
|
||||
<ul class="box">
|
||||
<li>
|
||||
<b>08.31 <e>23:23</e></b>
|
||||
<b>28</b>
|
||||
<b>缘定今生</b>
|
||||
<b>1天</b>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<div class="tips">暫無更多記錄~</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 规则弹窗 -->
|
||||
<div class="ruleBox">
|
||||
<div class="rule_in">
|
||||
<img src="./images/close.png" class="close" alt="">
|
||||
<div class="box">
|
||||
<img src="./images/rule.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 榜單獎勵 -->
|
||||
<div class="rewardBox">
|
||||
<div class="reward_in">
|
||||
<img src="./images/close.png" class="close" alt="">
|
||||
<div class="box">
|
||||
<img src="./images/cpAward.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 温馨提示 -->
|
||||
<div class="tishiBox">
|
||||
<div class="tishi_in">
|
||||
<div class="title">鉆石不足,請充值後再來獲取信物吧~</div>
|
||||
<img src="./images/to_charge.png" class="recharge" alt="">
|
||||
<img src="./images/close.png" class="close" alt="">
|
||||
</div>
|
||||
</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>
|
||||
<script src="../../common/js/layer.js"></script>
|
||||
<script src="../../common/js/vconsole.min.js"></script>
|
||||
<script src="./js/swiper-bundle.min.js"></script>
|
||||
<script src="./js/index.js?v=1.43"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@@ -1,876 +0,0 @@
|
||||
|
||||
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',
|
||||
offset: 'b'
|
||||
})
|
||||
}
|
||||
|
||||
if (false) {//!browser.app
|
||||
toastMsg('請在app內打開!');
|
||||
} else {
|
||||
$('.wrap').removeClass('no-in-app')
|
||||
}
|
||||
|
||||
var nowTime = new Date().getTime()
|
||||
var startTime
|
||||
var endTime
|
||||
var canGet = true
|
||||
|
||||
$(function () {
|
||||
getInfoFromClient()
|
||||
setTimeout(function () {
|
||||
getLetterInit()
|
||||
getPetitionInit()
|
||||
cpOffset()
|
||||
getRank()
|
||||
swiperFun()
|
||||
}, 100)
|
||||
})
|
||||
|
||||
// 礼物轮播
|
||||
function swiperFun() {
|
||||
var swiper = new Swiper('.swiper', {
|
||||
autoplay: {
|
||||
delay: 2000,//2秒切换一次
|
||||
},
|
||||
// loop: true, // 循环模式选项
|
||||
direction: 'horizontal',
|
||||
});
|
||||
}
|
||||
|
||||
// 获取信物配置
|
||||
function getLetterInit() {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GET',
|
||||
url: urlPrefix + '/act/valentineCp/getKeepsakeConfig',
|
||||
success(res) {
|
||||
if (res.code === 200) {
|
||||
startTime = res.data.startTime;
|
||||
endTime = res.data.endTime;
|
||||
$('.letter-wrap .letter .imgbox img').attr('src', res.data.keepsake.icon)
|
||||
$('.letter-wrap .letter p e').text(res.data.keepsakeNum)
|
||||
$('.letter-wrap .get_letter').attr('id', res.data.keepsake.id)
|
||||
$('.letter-wrap .get_letter').attr('type', res.data.keepsake.type)
|
||||
if (nowTime >= res.data.endTime) {
|
||||
$('.letter-wrap .get_letter').css('filter', 'grayscale(0.7)')
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
hideLoading(layerIndex)
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 获取兑换/抽奖配置
|
||||
function getPetitionInit() {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GET',
|
||||
url: urlPrefix + '/act/valentineCp/getPropItemConfig',
|
||||
success(res) {
|
||||
if (res.code === 200) {
|
||||
$('.petition-wrap .myticket span e').html(res.data.cpCurrency)
|
||||
let numberList = res.data.propTabs.find(item => {
|
||||
return item.type == 2
|
||||
})
|
||||
let chargeList = res.data.propTabs.find(item => {
|
||||
return item.type == 1
|
||||
})
|
||||
chargeList.props.forEach((res, i) => {
|
||||
$(`.petition-wrap .gift-wrap .li${i + 1} .giftbg img`).attr('src', res.icon)
|
||||
$(`.petition-wrap .gift-wrap .li${i + 1} span`).html(res.name)
|
||||
$(`.petition-wrap .gift-wrap .li${i + 1} .btn`).attr('id', res.id)
|
||||
$(`.petition-wrap .gift-wrap .li${i + 1} .btn`).attr('type', res.type)
|
||||
$(`.petition-wrap .gift-wrap .li${i + 1} .btn`).html(res.type == 2 ? '兌換銘牌' : res.type == 3 ? '兌換資料卡' : res.type == 4 ? '兌換頭飾' : '兌換座駕')
|
||||
$(`.petition-wrap .gift-wrap .li${i + 1} p e`).html(res.price)
|
||||
})
|
||||
|
||||
numberList.props.forEach(res => {
|
||||
$('.petition-wrap .number-wrap .giftbg img').attr('src', res.icon)
|
||||
$('.petition-wrap .number-wrap span').html(res.name)
|
||||
$('.petition-wrap .number-wrap .btn').attr('id', res.id)
|
||||
$('.petition-wrap .number-wrap .btn').attr('type', res.type)
|
||||
$('.petition-wrap .number-wrap p e').html(res.price)
|
||||
|
||||
})
|
||||
|
||||
|
||||
hideLoading(layerIndex)
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
hideLoading(layerIndex)
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 我的cp未读数
|
||||
function cpOffset() {
|
||||
networkRequest({
|
||||
type: 'GET',
|
||||
url: urlPrefix + '/act/valentineCp/cpOffset',
|
||||
success(res) {
|
||||
if (res.code === 200) {
|
||||
if (res.data > 9) {
|
||||
$('.wrap .unread').html('9+')
|
||||
} else if (res.data == 0) {
|
||||
$('.wrap .unread').hide()
|
||||
} else {
|
||||
$('.wrap .unread').html(res.data)
|
||||
}
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
}
|
||||
})
|
||||
}
|
||||
// 我的cp列表
|
||||
function myCpList() {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GET',
|
||||
url: urlPrefix + '/act/valentineCp/cpList',
|
||||
success(res) {
|
||||
if (res.code === 200) {
|
||||
let cpList = ''
|
||||
if (res.data == 0 || !res.data) {
|
||||
$('.mycpBox .mycp_in .tips').show()
|
||||
} else {
|
||||
res.data.forEach(res => {
|
||||
cpList += `
|
||||
<li>
|
||||
<b>${res.nick.length > 5 ? res.nick.slice(0, 5) + '...' : res.nick}</b>
|
||||
<b class="cpValue">${res.cpValue}</b>
|
||||
<span inviterUid="${res.uid}" class='${res.status == 0 ? "canpass" : res.status == 1 ? "waitpass" : "pass"}'>${res.status == 0 ? "待通過" : res.status == 1 ? "可通過" : "已締結"}</span>
|
||||
</li>
|
||||
`
|
||||
})
|
||||
$('.mycpBox .mycp_in ul').append(cpList)
|
||||
}
|
||||
$('.mycpBox').show();
|
||||
|
||||
$('.mycpBox .mycp_in .box li').off()
|
||||
$('.mycpBox .mycp_in .box li').on("click", '.waitpass', function () {
|
||||
let index = $(this).parents().index()
|
||||
let inviterUid = $(this).attr('inviterUid')
|
||||
confirmCp(inviterUid, index)
|
||||
})
|
||||
|
||||
|
||||
hideLoading(layerIndex)
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
hideLoading(layerIndex)
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 通过cp缔结
|
||||
function confirmCp(inviterUid, index) {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GET',
|
||||
url: urlPrefix + '/act/valentineCp/confirmCp',
|
||||
data: { inviterUid },
|
||||
success(res) {
|
||||
if (res.code === 200) {
|
||||
$('.mycpBox .mycp_in .box li').eq(index).find('span').addClass('pass')
|
||||
$('.mycpBox .mycp_in .box li').eq(index).find('span').removeClass('waitpass')
|
||||
$('.mycpBox .mycp_in .box li').eq(index).find('span').html('已締結')
|
||||
toastMsg('締結成功,快去增加和TA的情緣值吧~')
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
},
|
||||
error(err) {
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
hideLoading(layerIndex)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// cp奖励记录
|
||||
var cpRecordPage = 1
|
||||
var cpRecordScroll = true
|
||||
function cpRewardRecord(cpRecordPage) {
|
||||
cpRecordScroll = false;
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GET',
|
||||
url: urlPrefix + '/act/valentineCp/pageCpRewardRecord',
|
||||
data: { page: cpRecordPage, pageSize: 10 },
|
||||
success(res) {
|
||||
if (res.code === 200) {
|
||||
if (res.data.records.length > 0) {
|
||||
let str = ``;
|
||||
res.data.records.forEach((res, i) => {
|
||||
str += `
|
||||
<li>
|
||||
<b>${res.dateTime}</b>
|
||||
<b>${res.nick.length > 5 ? res.nick.slice(0, 5) + '...' : res.nick}</b>
|
||||
<b>${res.levelDesc}</b>
|
||||
<b class="jiangli">${res.rewardDesc}</b>
|
||||
</li>
|
||||
`
|
||||
});
|
||||
$('.cpRecordBox .cpRecord_in .box').append(str);
|
||||
cpRecordScroll = true;
|
||||
} else {
|
||||
cpRecordScroll = false;
|
||||
$('.cpRecordBox .cpRecord_in .tips').show();
|
||||
}
|
||||
$('.cpRecordBox').show();
|
||||
|
||||
hideLoading(layerIndex)
|
||||
} else {
|
||||
cpRecordScroll = true;
|
||||
bodyScroolFun(false)
|
||||
hideLoading(layerIndex)
|
||||
toastMsg(res.message)
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
cpRecordScroll = true;
|
||||
bodyScroolFun(false)
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取兑换/抽奖记录
|
||||
var drawPage = 1
|
||||
var drawScroll = true
|
||||
function getDrawRecord(drawPage, tab) {
|
||||
drawScroll = false;
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GET',
|
||||
url: urlPrefix + '/act/valentineCp/pageRecord',
|
||||
data: { page: drawPage, pageSize: 10, tab },
|
||||
success(res) {
|
||||
if (res.code === 200) {
|
||||
if (res.data.records.length > 0) {
|
||||
let str = ``;
|
||||
if (tab == 1) {
|
||||
res.data.records.forEach((res, i) => {
|
||||
str += `
|
||||
<li>
|
||||
<b>${res.dateTime}</b>
|
||||
<b>${res.cost}</b>
|
||||
<b>${res.rewardDesc}</b>
|
||||
<b>${res.rewardDays}天</b>
|
||||
</li>
|
||||
`
|
||||
});
|
||||
$('.exchangeBox .exchange_in .box').append(str);
|
||||
$('.exchangeBox').show();
|
||||
} else {
|
||||
res.data.records.forEach((res, i) => {
|
||||
str += `
|
||||
<li>
|
||||
<b>${res.dateTime}</b>
|
||||
<b>${res.cost}</b>
|
||||
<b>${res.rewardDesc}</b>
|
||||
</li>
|
||||
`
|
||||
});
|
||||
$('.drawBox .draw_in .box').append(str);
|
||||
$('.drawBox').show();
|
||||
}
|
||||
|
||||
drawScroll = true;
|
||||
} else {
|
||||
drawScroll = false;
|
||||
if (tab == 1) {
|
||||
$('.exchangeBox .exchange_in .tips').show();
|
||||
$('.exchangeBox').show();
|
||||
} else {
|
||||
$('.drawBox .draw_in .tips').show();
|
||||
$('.drawBox').show();
|
||||
}
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
} else {
|
||||
drawScroll = true;
|
||||
bodyScroolFun(false)
|
||||
hideLoading(layerIndex)
|
||||
toastMsg(res.message)
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
drawScroll = true;
|
||||
bodyScroolFun(false)
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 购买信物、兑换、抽奖 (道具id,数量)
|
||||
function buy(id, num, type) {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'POST',
|
||||
url: urlPrefix + '/act/valentineCp/buy',
|
||||
data: { id, num },
|
||||
success(res) {
|
||||
if (res.code === 200) {
|
||||
if (res.data.prop) {
|
||||
if (res.data.prop.type == 1) {
|
||||
$('.letter-wrap .letter p e').html(res.data.remain)
|
||||
toastMsg('購買成功,信物已放進背包,快送給你心儀的TA吧~')
|
||||
canGet = true
|
||||
} else if (res.data.prop.type == 6) {
|
||||
$('.petition-wrap .myticket span e').html(res.data.remain)
|
||||
$('.gx .gx_in .box li img').attr('src', res.data.prop.icon)
|
||||
$('.gx .gx_in .box li span').html( res.data.prop.name)
|
||||
$('.gx .gx_in .tips').html(`*情人節限定5位靚號:52XXX(XXX為隨機數字,一組為2個靚號,<br>聯系客服領取:LINE: pekoyuyin)`)
|
||||
$('.gx').show()
|
||||
|
||||
} else {
|
||||
// if (res.data.prop.type == 2){
|
||||
// $('.gx .gx_in .box li img').addClass('mingpai')
|
||||
// }else {
|
||||
// $('.gx .gx_in .box li img').removeClass('mingpai')
|
||||
// }
|
||||
$('.petition-wrap .myticket span e').html(res.data.remain)
|
||||
$('.gx .gx_in .box li img').attr('src', res.data.prop.icon)
|
||||
$('.gx .gx_in .box li span').html(res.data.prop.name)
|
||||
$('.gx .gx_in .tips').html(`獎勵將自動發放到裝扮中心,快去展示自己吧~`)
|
||||
$('.gx').show()
|
||||
}
|
||||
} else {
|
||||
if (type == 6) {
|
||||
toastMsg('很遺憾沒有抽到,距離靚號就差一點啦~')
|
||||
$('.petition-wrap .myticket span e').html(res.data.remain)
|
||||
} else if(type == 1,type == 3,type == 4,type == 5){
|
||||
$('.petition-wrap .myticket span e').html(res.data.remain)
|
||||
}else{
|
||||
$('.letter-wrap .letter p e').html(res.data.remain)
|
||||
toastMsg(res.message)
|
||||
}
|
||||
|
||||
canGet = true
|
||||
}
|
||||
|
||||
hideLoading(layerIndex)
|
||||
} else if (res.code == 31005) {
|
||||
$('.tishiBox').show()
|
||||
canGet = true
|
||||
hideLoading(layerIndex)
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
canGet = true
|
||||
hideLoading(layerIndex)
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
canGet = true
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 榜单接口
|
||||
function getRank() {
|
||||
$('.rank-wrap .list ul li').remove();
|
||||
showLoading()
|
||||
networkRequest({
|
||||
type: 'GET',
|
||||
url: urlPrefix + '/act/valentineCp/getRank',
|
||||
success(res) {
|
||||
if (res.code === 200) {
|
||||
// 前一
|
||||
var top1 = res.data.rankList.slice(0, 1);
|
||||
var notTop1 = res.data.rankList.slice(1);
|
||||
if (top1.length < 1) {
|
||||
let arr = new Array(1 - top1.length).fill({
|
||||
inviterAvatar: './images/logo.png',
|
||||
inviterNick: '虛位以待',
|
||||
cpValue: 0,
|
||||
inviteeAvatar: './images/logo.png',
|
||||
inviteeNick: '虛位以待',
|
||||
})
|
||||
top1.push(...arr)
|
||||
}
|
||||
top1.forEach((res, index) => {
|
||||
$(`.rank-wrap .list .no${index + 1} .txbox1 img`).attr('src', res.inviterAvatar);
|
||||
$(`.rank-wrap .list .no${index + 1} .txbox1`).attr('uid', res.inviterUid);
|
||||
$(`.rank-wrap .list .no${index + 1} .nick1`).html(res.inviterNick.length > 5 ? res.inviterNick.slice(0, 5) + '...' : res.inviterNick);
|
||||
$(`.rank-wrap .list .no${index + 1} .txbox2 img`).attr('src', res.inviteeAvatar);
|
||||
$(`.rank-wrap .list .no${index + 1} .txbox2`).attr('uid', res.inviteeUid);
|
||||
$(`.rank-wrap .list .no${index + 1} .nick2`).html(res.inviteeNick.length > 5 ? res.inviteeNick.slice(0, 5) + '...' : res.inviteeNick);
|
||||
$(`.rank-wrap .list .no${index + 1} .score b`).html(`${res.cpValue > 10000 ? (Math.floor(res.cpValue / 1000) / 10).toFixed(1) + 'w' : res.cpValue}`);
|
||||
});
|
||||
// 非前
|
||||
let str = ``;
|
||||
notTop1.forEach((res, i) => {
|
||||
str += `
|
||||
<li>
|
||||
<div class="num">${res.ranking}</div>
|
||||
<div class="txbox1" uid="${res.inviterUid}">
|
||||
<img src="${res.inviterAvatar}" uid="${res.inviterUid}" class="tx" alt="">
|
||||
</div>
|
||||
<div class="txbox2" uid="${res.inviteeUid}">
|
||||
<img src="${res.inviteeAvatar}" uid="${res.inviteeUid}" class="tx" alt="">
|
||||
</div>
|
||||
<div class="nick1">${res.inviterNick.length > 5 ? res.inviterNick.slice(0, 5) + '...' : res.inviterNick}</div>
|
||||
<div class="nick2">${res.inviteeNick.length > 5 ? res.inviteeNick.slice(0, 5) + '...' : res.inviteeNick}</div>
|
||||
<img src="./images/xin.png" class="xin" alt="">
|
||||
<span>情緣值</span>
|
||||
<div class="score">${res.cpValue > 10000 ? (Math.floor(res.cpValue / 1000) / 10).toFixed(1) + 'w' : res.cpValue}</div>
|
||||
</li>
|
||||
`
|
||||
})
|
||||
$('.rank-wrap .list ul').append(str);
|
||||
|
||||
if (notTop1.length < 9) {
|
||||
$('.rank-wrap .list ul li').eq(notTop1.length - 1).after(`<li><p>等你來上榜~</p></li>`)
|
||||
}
|
||||
if (notTop1.length == 0) {
|
||||
$('.rank-wrap .list ul').append(`<li><p>等你來上榜~</p></li>`)
|
||||
}
|
||||
|
||||
$('.rank-wrap .list ul li').on('click', '.txbox1,.txbox2', function () {
|
||||
console.log(123456);
|
||||
let uid = $(this).attr('uid')
|
||||
console.log(uid);
|
||||
if (uid) {
|
||||
openPerson(uid)
|
||||
}
|
||||
})
|
||||
|
||||
// 自己排名
|
||||
if (res.data.meRank) {
|
||||
if (res.data.meRank.ranking == 0) {
|
||||
$('.rank-wrap .myRank .num').removeClass('norank')
|
||||
} else {
|
||||
$('.rank-wrap .myRank .num').addClass('norank')
|
||||
}
|
||||
$('.rank-wrap .myRank .num').html(res.data.meRank.ranking == 0 ? '未上榜' : res.data.meRank.ranking);
|
||||
$('.rank-wrap .myRank .txbox1 img').attr('src', res.data.meRank.inviterAvatar);
|
||||
$('.rank-wrap .myRank .txbox2 img').attr('src', res.data.meRank.inviteeAvatar);
|
||||
$('.rank-wrap .myRank .nick1').text(res.data.meRank.inviterNick.length > 5 ? res.data.meRank.inviterNick.slice(0, 5) + '...' : res.data.meRank.inviterNick)
|
||||
if(res.data.meRank.inviteeNick){
|
||||
$('.rank-wrap .myRank .nick2').text(res.data.meRank.inviteeNick.length > 5 ? res.data.meRank.inviteeNick.slice(0, 5) + '...' : res.data.meRank.inviteeNick)
|
||||
}
|
||||
$('.rank-wrap .myRank .score').html(`${res.data.meRank.cpValue > 10000 ? (Math.floor(res.data.meRank.cpValue / 1000) / 10).toFixed(1) + 'w' : res.data.meRank.cpValue}`);
|
||||
}
|
||||
hideLoading(layerIndex)
|
||||
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
hideLoading(layerIndex)
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 埋点接口
|
||||
// event(去充值=pay_show, 活动规则=rule_click, 排行榜奖励=list_click, 跳转个人主页=pages_click)
|
||||
function sendLog(event) {
|
||||
networkRequest({
|
||||
type: 'POST',
|
||||
url: urlPrefix + '/act/valentineCp/log',
|
||||
data: { event: event },
|
||||
success(res) {
|
||||
if (res.code === 200) {
|
||||
// console.log(res);
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 点击跳转个人主页
|
||||
$('.rank-wrap .list .no1 .tx').click(function () {
|
||||
let uid = $(this).parent().attr('uid')
|
||||
if (uid) {
|
||||
openPerson(uid)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
// 情缘信物投入+
|
||||
$('.letter-wrap .but .add').click(function () {
|
||||
let val = $('.letter-wrap .but input').val();
|
||||
if (val >= 999) {
|
||||
toastMsg('最多可輸入999')
|
||||
$('.letter-wrap .but input').val(parseInt(999))
|
||||
} else {
|
||||
$('.letter-wrap .but input').val(parseInt(val) + 1)
|
||||
}
|
||||
})
|
||||
// 情缘信物投入-
|
||||
$('.letter-wrap .but .cut').click(function () {
|
||||
let val = $('.letter-wrap .but input').val();
|
||||
if (val <= 1) {
|
||||
toastMsg('至少投入1')
|
||||
$('.letter-wrap .but input').val(parseInt(1))
|
||||
} else {
|
||||
$('.letter-wrap .but input').val(parseInt(val) - 1)
|
||||
}
|
||||
})
|
||||
// 情缘信物监听输入框
|
||||
$('.letter-wrap .but').on('input', 'input', function () {
|
||||
if ($(this).val() >= 999) {
|
||||
toastMsg('最多可輸入999')
|
||||
$('.letter-wrap .but input').val(parseInt(999))
|
||||
} else if ($(this).val() <= 1) {
|
||||
toastMsg('至少投入1')
|
||||
$('.letter-wrap .but input').val(parseInt(1))
|
||||
}
|
||||
})
|
||||
// 购买情缘信物按钮
|
||||
$('.letter-wrap .get_letter').click(function () {
|
||||
if (nowTime >= endTime) {
|
||||
toastMsg('活動已結束~')
|
||||
} else if (nowTime <= startTime) {
|
||||
toastMsg('活動未開始~')
|
||||
} else {
|
||||
let id = $(this).attr('id')
|
||||
let type = $(this).attr('type')
|
||||
let num = $('.letter-wrap .but input').val()
|
||||
if (num == 0) {
|
||||
toastMsg('至少投入1')
|
||||
return
|
||||
}
|
||||
if (canGet) {
|
||||
console.log('id:', id, 'num:', num);
|
||||
buy(id, num, type)
|
||||
} else {
|
||||
toastMsg('信物獲取中,請稍後~')
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
// 兑换好礼按钮输入框
|
||||
// 投入+
|
||||
$('.petition-wrap .gift-wrap li .but .add').click(function () {
|
||||
let liIndex = $(this).parents('li').index()
|
||||
let val = $('.petition-wrap .gift-wrap li').eq(liIndex).find('.but input').val();
|
||||
if (val >= 999) {
|
||||
toastMsg('最多可輸入999')
|
||||
$('.petition-wrap .gift-wrap li').eq(liIndex).find('.but input').val(parseInt(999))
|
||||
} else {
|
||||
$('.petition-wrap .gift-wrap li').eq(liIndex).find('.but input').val(parseInt(val) + 1)
|
||||
}
|
||||
})
|
||||
// 投入-
|
||||
$('.petition-wrap .gift-wrap li .but .cut').click(function () {
|
||||
let liIndex = $(this).parents('li').index()
|
||||
let val = $('.petition-wrap .gift-wrap li').eq(liIndex).find('.but input').val();
|
||||
if (val <= 1) {
|
||||
toastMsg('至少投入1')
|
||||
$('.petition-wrap .gift-wrap li').eq(liIndex).find('.but input').val(parseInt(1))
|
||||
} else {
|
||||
$('.petition-wrap .gift-wrap li').eq(liIndex).find('.but input').val(parseInt(val) - 1)
|
||||
}
|
||||
})
|
||||
// 监听输入框
|
||||
$('.petition-wrap .gift-wrap li').on('input', 'input', function () {
|
||||
let liIndex = $(this).parents('li').index()
|
||||
let val = $('.petition-wrap .gift-wrap li').eq(liIndex).find('.but input').val();
|
||||
if (val >= 999) {
|
||||
toastMsg('最多可輸入999')
|
||||
$('.petition-wrap .gift-wrap li').eq(liIndex).find('.but input').val(parseInt(999))
|
||||
} else if (val <= 1) {
|
||||
toastMsg('至少投入1')
|
||||
$('.petition-wrap .gift-wrap li').eq(liIndex).find('.but input').val(parseInt(1))
|
||||
}
|
||||
})
|
||||
// 兑换按钮
|
||||
$('.petition-wrap .gift-wrap li .btn').click(function () {
|
||||
let liIndex = $(this).parents('li').index()
|
||||
let num = $('.petition-wrap .gift-wrap li').eq(liIndex).find('.but input').val();
|
||||
let id = $('.petition-wrap .gift-wrap li').eq(liIndex).find('.btn').attr('id');
|
||||
let type = $('.petition-wrap .gift-wrap li').eq(liIndex).find('.btn').attr('type');
|
||||
buy(id, num, type)
|
||||
})
|
||||
// 靓号按钮输入框
|
||||
// 投入+
|
||||
$('.petition-wrap .number-wrap .but .add').click(function () {
|
||||
let val = $('.petition-wrap .number-wrap .but input').val();
|
||||
if (val >= 999) {
|
||||
toastMsg('最多可輸入999')
|
||||
$('.petition-wrap .number-wrap .but input').val(parseInt(999))
|
||||
} else {
|
||||
$('.petition-wrap .number-wrap .but input').val(parseInt(val) + 1)
|
||||
}
|
||||
})
|
||||
// 投入-
|
||||
$('.petition-wrap .number-wrap .but .cut').click(function () {
|
||||
let val = $('.petition-wrap .number-wrap .but input').val();
|
||||
if (val <= 1) {
|
||||
toastMsg('至少投入1')
|
||||
$('.petition-wrap .number-wrap .but input').val(parseInt(1))
|
||||
} else {
|
||||
$('.petition-wrap .number-wrap .but input').val(parseInt(val) - 1)
|
||||
}
|
||||
})
|
||||
// 监听输入框
|
||||
$('.petition-wrap .number-wrap .but').on('input', 'input', function () {
|
||||
if ($(this).val() >= 999) {
|
||||
toastMsg('最多可輸入999')
|
||||
$('.petition-wrap .number-wrap .but input').val(parseInt(999))
|
||||
} else if ($(this).val() <= 1) {
|
||||
toastMsg('至少投入1')
|
||||
$('.petition-wrap .number-wrap .but input').val(parseInt(1))
|
||||
}
|
||||
})
|
||||
// 抽取靓号
|
||||
$('.petition-wrap .number-wrap .btn').click(function () {
|
||||
let id = $(this).attr('id');
|
||||
let type = $(this).attr('type');
|
||||
let num = $('.petition-wrap .number-wrap .but input').val();
|
||||
buy(id, num, type)
|
||||
})
|
||||
|
||||
// 关闭恭喜获得弹窗
|
||||
$('.gx .gx_in .sure,.close').click(function () {
|
||||
$('.gx').hide()
|
||||
})
|
||||
// 我的cp弹窗
|
||||
$('.mycp').click(function () {
|
||||
bodyScroolFun(true)
|
||||
$('.mycpBox .mycp_in ul li').remove()
|
||||
$('.mycpBox .mycp_in .box .tips').hide()
|
||||
myCpList()
|
||||
})
|
||||
$('.mycpBox .close').click(function () {
|
||||
bodyScroolFun(false)
|
||||
cpOffset()
|
||||
$('.mycpBox').hide();
|
||||
})
|
||||
// 监听我的cp滚动
|
||||
$('.mycpBox .mycp_in .box').scroll(function () {
|
||||
let scrollTop = $(this).scrollTop()
|
||||
let scrollHeight = $('.mycpBox .mycp_in .box')[0].scrollHeight
|
||||
let ulHeight = $(this).innerHeight()
|
||||
if (scrollTop + ulHeight + 100 >= scrollHeight) {
|
||||
$('.mycpBox .mycp_in .tips').show()
|
||||
}
|
||||
})
|
||||
|
||||
// cp奖励记录弹窗
|
||||
$('.letter-wrap .cp_record').click(function () {
|
||||
bodyScroolFun(true)
|
||||
cpRecordPage = 1;
|
||||
totalList = 0
|
||||
$('.cpRecordBox .cpRecord_in .box li').remove();
|
||||
$('.cpRecordBox .cpRecord_in .tips').hide();
|
||||
cpRewardRecord(cpRecordPage)
|
||||
})
|
||||
$('.cpRecordBox .close').click(function () {
|
||||
bodyScroolFun(false)
|
||||
$('.cpRecordBox').hide();
|
||||
})
|
||||
// cp奖励记录监听滚动
|
||||
$('.cpRecordBox .cpRecord_in .box').scroll(function () {
|
||||
let scrollTop = $(this).scrollTop()
|
||||
let scrollHeight = $('.cpRecordBox .cpRecord_in .box')[0].scrollHeight
|
||||
let ulHeight = $(this).innerHeight()
|
||||
if (scrollTop + ulHeight + 100 >= scrollHeight) {
|
||||
if (cpRecordScroll) {
|
||||
cpRecordPage++;
|
||||
cpRewardRecord(cpRecordPage)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
// 兑换好礼/靓号切换
|
||||
var petitionType = 1 //1:兌換好禮 2:幸運靚號
|
||||
$('.petition-wrap .chargeTab .item').click(function () {
|
||||
let index = $(this).index();
|
||||
$(this).addClass('itemact').siblings().removeClass('itemact')
|
||||
if (index == 0) {
|
||||
$('.petition-wrap .gift-wrap').show()
|
||||
$('.petition-wrap .number-wrap').hide()
|
||||
$('.petition-wrap .myticket .charge').html('兌換記錄')
|
||||
petitionType = 1
|
||||
|
||||
} else {
|
||||
$('.petition-wrap .gift-wrap').hide()
|
||||
$('.petition-wrap .number-wrap').show()
|
||||
$('.petition-wrap .myticket .charge').html('抽獎記錄')
|
||||
petitionType = 2
|
||||
}
|
||||
})
|
||||
// 兑换好礼记录/抽奖记录弹窗
|
||||
$('.petition-wrap .charge').click(function () {
|
||||
bodyScroolFun(true)
|
||||
drawPage = 1;
|
||||
if (petitionType == 1) {
|
||||
$('.exchangeBox .exchange_in .box li').remove();
|
||||
$('.exchangeBox .exchange_in .tips').hide();
|
||||
// $('.exchangeBox').show();
|
||||
} else {
|
||||
$('.drawBox .draw_in .box li').remove();
|
||||
$('.drawBox .draw_in .tips').hide();
|
||||
// $('.drawBox').show();
|
||||
}
|
||||
getDrawRecord(drawPage, petitionType)
|
||||
|
||||
})
|
||||
$('.drawBox .close').click(function () {
|
||||
bodyScroolFun(false)
|
||||
$('.drawBox').hide();
|
||||
})
|
||||
$('.exchangeBox .close').click(function () {
|
||||
bodyScroolFun(false)
|
||||
$('.exchangeBox').hide();
|
||||
})
|
||||
// 情签兑换记录监听滚动
|
||||
$('.exchangeBox .exchange_in .box').scroll(function () {
|
||||
let scrollTop = $(this).scrollTop()
|
||||
let scrollHeight = $('.exchangeBox .exchange_in .box')[0].scrollHeight
|
||||
let ulHeight = $(this).innerHeight()
|
||||
if (scrollTop + ulHeight + 100 >= scrollHeight) {
|
||||
if (drawScroll) {
|
||||
drawPage++;
|
||||
getDrawRecord(drawPage, petitionType)
|
||||
}
|
||||
}
|
||||
})
|
||||
// 抽奖记录监听滚动
|
||||
$('.drawBox .draw_in .box').scroll(function () {
|
||||
let scrollTop = $(this).scrollTop()
|
||||
let scrollHeight = $('.drawBox .draw_in .box')[0].scrollHeight
|
||||
let ulHeight = $(this).innerHeight()
|
||||
if (scrollTop + ulHeight + 100 >= scrollHeight) {
|
||||
if (drawScroll) {
|
||||
drawPage++;
|
||||
getDrawRecord(drawPage, petitionType)
|
||||
}
|
||||
}
|
||||
})
|
||||
// 规则弹窗
|
||||
$('.rule').click(function () {
|
||||
bodyScroolFun(true)
|
||||
$('.ruleBox').show();
|
||||
sendLog('rule_click')
|
||||
})
|
||||
$('.ruleBox .close').click(function () {
|
||||
bodyScroolFun(false)
|
||||
$('.ruleBox').hide();
|
||||
})
|
||||
// 榜單獎勵
|
||||
$('.rank-wrap .reward').click(function () {
|
||||
bodyScroolFun(true)
|
||||
$('.rewardBox').show();
|
||||
sendLog('list_click')
|
||||
})
|
||||
$('.rewardBox .close').click(function () {
|
||||
bodyScroolFun(false)
|
||||
$('.rewardBox').hide();
|
||||
})
|
||||
|
||||
// 溫馨提示
|
||||
$('.tishiBox .close').click(function () {
|
||||
bodyScroolFun(false)
|
||||
$('.tishiBox').hide();
|
||||
})
|
||||
|
||||
// 去充值(pay_show=点击去充值埋点)
|
||||
$('.tishiBox').on('click', '.recharge', function () {
|
||||
if (browser.app) {
|
||||
if (browser.android) {
|
||||
let channel = pubInfo.deviceInfo.channel;
|
||||
console.log(pubInfo.deviceInfo);
|
||||
if (channel == "google") {
|
||||
sendLog('pay_show')
|
||||
window.androidJsObj.openChargePage(0);
|
||||
} else {
|
||||
sendLog('pay_show')
|
||||
window.location.href = urlPrefix + '/peko/modules/pay/index.html?channelType=4';
|
||||
}
|
||||
} else if (browser.ios) {
|
||||
sendLog('pay_show')
|
||||
window.webkit.messageHandlers.openChargePage.postMessage(null)
|
||||
}
|
||||
} else {
|
||||
toastMsg('請在app內打開')
|
||||
}
|
||||
})
|
||||
|
||||
//跳转个人主页 (pages_click=跳转主页埋点)
|
||||
function openPerson(uid) {
|
||||
if (browser.app) {
|
||||
if (browser.ios) {
|
||||
sendLog('pages_click')
|
||||
window.webkit.messageHandlers.openPersonPage.postMessage(uid);
|
||||
} else if (browser.android) {
|
||||
if (androidJsObj && typeof androidJsObj === 'object') {
|
||||
sendLog('pages_click')
|
||||
window.androidJsObj.openPersonPage(uid);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
toastMsg('請在app內打開')
|
||||
}
|
||||
}
|
||||
|
||||
// 控制body是否可以滑动
|
||||
function bodyScroolFun(bool) {
|
||||
if (bool) {
|
||||
$('body').css('overflow', 'hidden');
|
||||
} else {
|
||||
$('body').css('overflow', 'auto');
|
||||
|
||||
}
|
||||
}
|
@@ -6,7 +6,7 @@ if (env == 'test') {
|
||||
}
|
||||
// 封装layer消息提醒框
|
||||
let layerIndex
|
||||
const showLoading = (content = '加載中...') => {
|
||||
const showLoading = (content = '加载中...') => {
|
||||
layer.open({
|
||||
type: 2,
|
||||
shadeClose: false,
|
||||
@@ -110,8 +110,8 @@ var arrInfoGift = [
|
||||
var rewardGit = [
|
||||
{ name: '', type: 1, day: "1天", img: '' },//type 1:头饰,2:礼物
|
||||
{ name: '', type: 1, day: "3天", img: '' },
|
||||
{ name: '星星瓶', type: 2, day: "99鉆石", img: './images/g3.png' },
|
||||
{ name: '告白情书', type: 2, day: "666鉆石", img: './images/g4.png' },
|
||||
{ name: '星星瓶', type: 2, day: "99钻石", img: './images/g3.png' },
|
||||
{ name: '告白情书', type: 2, day: "666钻石", img: './images/g4.png' },
|
||||
]
|
||||
|
||||
$(function () {
|
||||
@@ -335,7 +335,7 @@ function listRank (rankType) {
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -401,7 +401,7 @@ function listMyRankFun (rankType) {
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -458,7 +458,7 @@ function getRecommendRoom () {
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
hideLoading(layerIndex)
|
||||
@@ -469,7 +469,7 @@ function getRecommendRoom () {
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -521,7 +521,7 @@ function sendBulletChatFun (content) {
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@@ -531,7 +531,7 @@ function sendBulletChatFun (content) {
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -560,7 +560,7 @@ function getMyBulletChat () {
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
|
||||
@@ -615,7 +615,7 @@ function getPageInfo () {
|
||||
}
|
||||
},
|
||||
error () {
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
res.data.tasks.forEach((res, index) => {
|
||||
@@ -665,7 +665,7 @@ function getPageInfo () {
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -695,7 +695,7 @@ function chargeFun (batteryNum) {
|
||||
},
|
||||
error (err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
chargeFunType = !chargeFunType;
|
||||
}
|
||||
})
|
||||
|
@@ -3,7 +3,7 @@ let browser = checkVersion()
|
||||
if (EnvCheck() === 'test') new VConsole
|
||||
// 封装layer消息提醒框
|
||||
let layerIndex
|
||||
const showLoading = (content = '加載中...') => {
|
||||
const showLoading = (content = '加载中...') => {
|
||||
layer.open({
|
||||
type: 2,
|
||||
shadeClose: false,
|
||||
@@ -48,7 +48,7 @@ const getList = (rankType = 1, rankDataType = 0) => {
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@@ -2,13 +2,13 @@
|
||||
var api = locateJudge();
|
||||
var browser = checkVersion();
|
||||
var info = {};
|
||||
var betaUrl = 'https://beta.api.pekolive.com/peko/activity/act-61/index.html';
|
||||
var betaUrl = 'https://yeying.api.shengxuanwangluo.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://api.pekolive.com/peko/modules/wxPubPay/images/logo.png',
|
||||
imgUrl: 'https://yeying.api.shengxuanwangluo.com/peko/modules/wxPubPay/images/logo.png',
|
||||
desc: '限定铭牌萌趣降临',// 分享描述
|
||||
};
|
||||
if (EnvCheck() == 'test') {
|
||||
|
@@ -28,7 +28,7 @@ $(function () {
|
||||
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
// url: 'https://beta.api.pekolive.com/carActivity/user',
|
||||
// url: 'https://yeying.api.shengxuanwangluo.com/carActivity/user',
|
||||
url: '/carActivity/user',
|
||||
headers: {
|
||||
pub_uid: info.uid,
|
||||
|
@@ -2,7 +2,7 @@ const urlPrefix = getUrlPrefix()
|
||||
if(EnvCheck() === 'test') new VConsole
|
||||
// 封装layer消息提醒框
|
||||
let layerIndex
|
||||
const showLoading = (content = '加載中...') => {
|
||||
const showLoading = (content = '加载中...') => {
|
||||
layer.open({
|
||||
type: 2,
|
||||
shadeClose: false,
|
||||
@@ -41,7 +41,7 @@ const getInitInfo = () => {
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -76,7 +76,7 @@ const getUserActInfo = () => {
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -123,7 +123,7 @@ const wishDraw = (keyNum) => {
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -183,7 +183,7 @@ const getRecordList = (page = 1) => {
|
||||
isLock = true
|
||||
},
|
||||
error(err) {
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -315,7 +315,7 @@ $(function(){
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@@ -42,7 +42,7 @@
|
||||
<span>青铜</span>
|
||||
<span>白银</span>
|
||||
<span>黄金</span>
|
||||
<span>鉆石</span>
|
||||
<span>钻石</span>
|
||||
</div>
|
||||
<div class="distance">
|
||||
距离 <span></span> 还需 <span></span> 狂欢值
|
||||
@@ -50,7 +50,7 @@
|
||||
</div>
|
||||
<div class="rule_wrap">
|
||||
<p class="rule_item">
|
||||
全平台任何用户送出礼物都可使全民狂欢值增加(每1鉆石的礼物=狂欢值+1),当狂欢值每次达到任何一个阶梯时,所有用户将获赠一个魔法棒
|
||||
全平台任何用户送出礼物都可使全民狂欢值增加(每1钻石的礼物=狂欢值+1),当狂欢值每次达到任何一个阶梯时,所有用户将获赠一个魔法棒
|
||||
</p>
|
||||
<p class="rule_item">
|
||||
狂欢值将在每日00:00重新开始计算,所有用户每天都可获得新的魔法棒
|
||||
@@ -76,7 +76,7 @@
|
||||
<div class="tab2_contain">
|
||||
<div class="rule_wrap">
|
||||
<p class="rule_item">
|
||||
活动期间,每日登录pekoApp即可免费获赠一个魔法棒(每台设备每日限一次)
|
||||
活动期间,每日登录夜莺App即可免费获赠一个魔法棒(每台设备每日限一次)
|
||||
</p>
|
||||
</div>
|
||||
<div class="panel_wrap">
|
||||
@@ -94,7 +94,7 @@
|
||||
<div class="tab3_contain">
|
||||
<div class="rule_wrap">
|
||||
<p class="rule_item">
|
||||
活动期间,每送出价值200鉆的任意礼物即可获赠1个魔法棒,不设上限
|
||||
活动期间,每送出价值200钻的任意礼物即可获赠1个魔法棒,不设上限
|
||||
</p>
|
||||
</div>
|
||||
<div class="panel_wrap">
|
||||
|
@@ -4,7 +4,7 @@ var rankDataType = 1;
|
||||
var rankType = 1;
|
||||
// 封装layer消息提醒框
|
||||
let layerIndex
|
||||
const showLoading = (content = '加載中...') => {
|
||||
const showLoading = (content = '加载中...') => {
|
||||
layer.open({
|
||||
type: 2,
|
||||
shadeClose: false,
|
||||
@@ -83,7 +83,7 @@ function getData (rankDataType, rankType) {
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@@ -71,7 +71,7 @@
|
||||
<div class="decrement-ten"><img src="./images/main/decrement-ten.png" alt=""></div>
|
||||
<div class="ipt-wrap">
|
||||
<span>召唤个数</span>
|
||||
<p>成功击败怪兽将获得<i>0</i>鉆石奖励</p>
|
||||
<p>成功击败怪兽将获得<i>0</i>钻石奖励</p>
|
||||
<!-- <main>消耗魔法石<i>0</i></main> -->
|
||||
<main>召唤个数</main>
|
||||
<img src="./images/main/decrement.png" alt="" class="decrement">
|
||||
@@ -145,7 +145,7 @@
|
||||
<img src="" alt="" class="result-monster-pic">
|
||||
<div class="result-weapon-name"></div>
|
||||
<div class="result-monster-name"></div>
|
||||
<div class="result-award">获得<span></span>鉆石奖励</div>
|
||||
<div class="result-award">获得<span></span>钻石奖励</div>
|
||||
<div class="top-three">
|
||||
<img src="" alt="">
|
||||
<img src="" alt="">
|
||||
@@ -166,7 +166,7 @@
|
||||
<span></span>
|
||||
<p class="buy-btn"><img src="./images/popup/buy-btn.png" alt=""></p>
|
||||
</div>
|
||||
<div class="diamond-num">我的鉆石<span>0</span></div>
|
||||
<div class="diamond-num">我的钻石<span>0</span></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -194,7 +194,7 @@
|
||||
<div class="decrement-ten"><img src="./images/popup/decrement-ten.png" alt=""></div>
|
||||
<div class="ipt-wrap">
|
||||
<span>召唤个数</span>
|
||||
<p>成功击败怪兽将获得<i>0</i>鉆石奖励</p>
|
||||
<p>成功击败怪兽将获得<i>0</i>钻石奖励</p>
|
||||
<main>消耗魔法石<i>0</i></main>
|
||||
<img src="./images/main/decrement.png" alt="" class="decrement">
|
||||
<input type="text" value="0">
|
||||
|
@@ -27,7 +27,7 @@ console.log($(window).height());
|
||||
|
||||
// 封装layer消息提醒框
|
||||
let layerIndex
|
||||
const showLoading = (content = '加載中...') => {
|
||||
const showLoading = (content = '加载中...') => {
|
||||
layer.open({
|
||||
type: 2,
|
||||
shadeClose: false,
|
||||
@@ -75,14 +75,14 @@ const getListPack = () => {
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取用户相关信息
|
||||
let myFragment //道具数量
|
||||
let userDiamonds //鉆石数量
|
||||
let userDiamonds //钻石数量
|
||||
const getUserInfo = (param) => {
|
||||
networkRequest({
|
||||
type: 'GET',
|
||||
@@ -107,7 +107,7 @@ const getUserInfo = (param) => {
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -171,7 +171,7 @@ const getNewestAct = () => {
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -478,7 +478,7 @@ const judgeStatus = () => {
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -501,7 +501,7 @@ const getListItem = (roundId) => {
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -657,7 +657,7 @@ const sendUserDrawInfo = (itemId, num) => {
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -693,7 +693,7 @@ const getUserRecord = () => {
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -793,7 +793,7 @@ const getPreviousResults = (count, roundId) => {
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
toastMsg('網絡錯誤,請退出重進')
|
||||
toastMsg('网络错误,请退出重进')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -823,11 +823,11 @@ const renderPreviousResults = () => {
|
||||
/************************************************** 守护记录 over ***************************************************/
|
||||
|
||||
/************************************************** 排行榜 start ***************************************************/
|
||||
// 榜单类型,1是鉆石榜,2是欧皇榜
|
||||
// 榜单类型,1是钻石榜,2是欧皇榜
|
||||
let type = 1
|
||||
let pageSizeRank = 30
|
||||
|
||||
// 鉆石榜单
|
||||
// 钻石榜单
|
||||
let pageD = 1
|
||||
let myInfoD = []
|
||||
let rankListD = []
|
||||
@@ -856,7 +856,7 @@ const getListRank = (type, page) => {
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
if (type === 1) {
|
||||
// 鉆石榜单
|
||||
// 钻石榜单
|
||||
rankListD.push(...res.data.rankList)
|
||||
myInfoD = res.data.myRankInfo
|
||||
renderMyInfo()
|
||||
@@ -874,7 +874,7 @@ const getListRank = (type, page) => {
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -882,7 +882,7 @@ const getListRank = (type, page) => {
|
||||
// 渲染底部个人信息
|
||||
const renderMyInfo = () => {
|
||||
if (type === 1) {
|
||||
// 鉆石榜单
|
||||
// 钻石榜单
|
||||
let erbanNo = myInfoD.erbanNo
|
||||
let myIndex = rankListD.findIndex((item, index) => {
|
||||
return item.erbanNo === erbanNo
|
||||
@@ -931,7 +931,7 @@ const renderMyInfo = () => {
|
||||
// 渲染榜单信息
|
||||
const renderRankList = () => {
|
||||
if (type === 1) {
|
||||
// 鉆石榜单
|
||||
// 钻石榜单
|
||||
// 渲染前3
|
||||
let topThreeArr = rankListD.slice(0, 3)
|
||||
if (rankListD.length < 3) {
|
||||
@@ -1525,7 +1525,7 @@ $(function () {
|
||||
}
|
||||
},
|
||||
error (err) {
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
})
|
||||
|
@@ -13,7 +13,7 @@ const showLoading = () => {
|
||||
layer.open({
|
||||
type: 2,
|
||||
shadeClose: false,
|
||||
content: '加載中...',
|
||||
content: '加载中...',
|
||||
success(e) {
|
||||
layerIndex = $(e).attr('index')
|
||||
}
|
||||
@@ -50,7 +50,7 @@ const getUserInfo = (param) => {
|
||||
}
|
||||
},
|
||||
error(err){
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -68,7 +68,7 @@ const getListPack = () => {
|
||||
}
|
||||
},
|
||||
error(err){
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -220,7 +220,7 @@ $(function(){
|
||||
lock = false
|
||||
},
|
||||
error(err){
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@@ -73,7 +73,7 @@
|
||||
</div>
|
||||
<div class="diamond-num">
|
||||
<img src="./images/mall/diamond-icon.png" alt="">
|
||||
鉆石数量:<span>0</span>
|
||||
钻石数量:<span>0</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -94,7 +94,7 @@
|
||||
</div>
|
||||
<div class="buy-price">
|
||||
<p>金额:</p>
|
||||
<p><span></span>鉆石</p>
|
||||
<p><span></span>钻石</p>
|
||||
</div>
|
||||
<div class="buy-confirm-btn">
|
||||
<p class="cancel">取消</p>
|
||||
|
@@ -7,7 +7,7 @@ const showLoading = () => {
|
||||
layer.open({
|
||||
type: 2,
|
||||
shadeClose: false,
|
||||
content: '加載中...',
|
||||
content: '加载中...',
|
||||
success(e){
|
||||
layerIndex = $(e).attr('index')
|
||||
}
|
||||
@@ -59,7 +59,7 @@ const getData = () => {
|
||||
},
|
||||
error(err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -81,7 +81,7 @@ const getBattery = () => {
|
||||
},
|
||||
error(err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -123,7 +123,7 @@ const lightBulb = (num) => {
|
||||
},
|
||||
error(err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -253,7 +253,7 @@ const getRecordList = () => {
|
||||
},
|
||||
error(err) {
|
||||
hideLoading(layerIndex)
|
||||
toastMsg('網絡錯誤')
|
||||
toastMsg('网络错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Before Width: | Height: | Size: 257 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 137 KiB |
Before Width: | Height: | Size: 178 KiB |
Before Width: | Height: | Size: 25 KiB |