修改星级厨娘
@@ -18,7 +18,7 @@
|
||||
<div class="record"><img src="./images/record.png" alt=""></div>
|
||||
|
||||
<!-- 特权商城 -->
|
||||
<div class="mall">
|
||||
<div class="mall" style="display: none;">
|
||||
<img src="./images/mall.png" alt="">
|
||||
</div>
|
||||
<!-- 游戏区域 -->
|
||||
@@ -26,12 +26,12 @@
|
||||
<!-- 选择时间 -->
|
||||
<div class="select-time">
|
||||
<div class="count-down">开奖倒计时:<span class="count-down-num"></span>秒</div>
|
||||
<div class="current-tip">玩法:选择碎片数量→选择食材</div>
|
||||
<div class="current-tip">玩法:选择食材</div>
|
||||
|
||||
<div class="btn-wrap">
|
||||
<div class="active">1</div>
|
||||
<div>10</div>
|
||||
<div>100</div>
|
||||
<div class="active">1000</div>
|
||||
<div>10000</div>
|
||||
<div>100000</div>
|
||||
</div>
|
||||
<ul>
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 个人信息 -->
|
||||
<div class="info-bottom">
|
||||
<div class="info-bottom" style="display: none;">
|
||||
<div class="avatar"><img src="./images/logo.png" alt=""></div>
|
||||
<div class="f-wrap">
|
||||
<div class="fragment">我的碎片:<span>0</span></div>
|
||||
@@ -162,12 +162,12 @@
|
||||
<!-- 碎片不足提示弹窗 -->
|
||||
<div class="shade-mask-fragmentNum">
|
||||
<div class="shade-content-fragmentNum">
|
||||
<div class="fragmentNum-title">碎片不足</div>
|
||||
<div class="fragmentNum-title">鉆石余額不足</div>
|
||||
<img src="./images/mall/no-money.png" alt="">
|
||||
<p>当前碎片不足,购买头像框获取碎片</p>
|
||||
<p>当前鉆石不足</p>
|
||||
<div class="fragmentNum-btn-wrap">
|
||||
<div class="cancel-btn">取消</div>
|
||||
<div class="confirm-btn">获取碎片</div>
|
||||
<div class="confirm-btn">获取鉆石</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -53,8 +53,8 @@ const getUserInfo = (param) => {
|
||||
res.data.todayReward = (res.data.todayReward / 10000).toFixed(2) + 'w'
|
||||
}
|
||||
$('.info-bottom').find('.award span').html(res.data.todayReward)
|
||||
$('.info-bottom').find('.fragment span').html(res.data.pieceNum)
|
||||
myFragment = res.data.pieceNum
|
||||
$('.info-bottom').find('.fragment span').html(res.data.diamonds)
|
||||
myFragment = res.data.diamonds
|
||||
} else {
|
||||
return toastMsg(res.message)
|
||||
}
|
||||
@@ -71,8 +71,8 @@ const getUserPieceNum = () => {
|
||||
url: urlPrefix + '/act/luckySea/getUserActInfo',
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
$('.info-bottom').find('.fragment span').html(res.data.pieceNum)
|
||||
myFragment = res.data.pieceNum
|
||||
$('.info-bottom').find('.fragment span').html(res.data.diamonds)
|
||||
myFragment = res.data.diamonds;
|
||||
} else {
|
||||
return toastMsg(res.message)
|
||||
}
|
||||
@@ -590,7 +590,10 @@ const sendUserDrawInfo = (itemId, num) => {
|
||||
success (res) {
|
||||
if (res.code === 200) {
|
||||
|
||||
}else{
|
||||
} else if (31005) (
|
||||
toastMsg(res.message)
|
||||
)
|
||||
else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
},
|
||||
@@ -999,11 +1002,28 @@ $(function(){
|
||||
$('.shade-content-fragmentNum').on('click', function (e) {
|
||||
e.stopPropagation()
|
||||
})
|
||||
|
||||
$('.confirm-btn').on('click', function () {
|
||||
window.location.href = './mall.html'
|
||||
// window.location.href = './mall.html'
|
||||
if (browser.app) {
|
||||
if (browser.android) {
|
||||
let channel = JSON.parse(pubInfo.deviceInfo).channel;
|
||||
console.log(pubInfo.deviceInfo);
|
||||
var channel;
|
||||
if (channel == "google") {
|
||||
window.androidJsObj.openChargePage();
|
||||
} else {
|
||||
// window.location.href = urlPrefix + '/peko/modules/pay/index.html?channelType=4';
|
||||
}
|
||||
} else if (browser.ios) {
|
||||
window.location.href = urlPrefix + '/peko/modules/pay/index.html?channelType=4';
|
||||
}
|
||||
} else {
|
||||
toastMsg('请在app内打开')
|
||||
}
|
||||
$('.shade-mask-fragmentNum').hide()
|
||||
})
|
||||
|
||||
|
||||
// 點擊海鮮動物的動畫以及發送請求
|
||||
$('.select-time ul').on('click', 'li', function () {
|
||||
if (!isSelectTab) {
|
||||
@@ -1011,6 +1031,7 @@ $(function(){
|
||||
}
|
||||
if (myFragment < fragmentNum) {
|
||||
$('.shade-mask-fragmentNum').show()
|
||||
// toastMsg('鉆石余額不足');
|
||||
return
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 244 KiB After Width: | Height: | Size: 236 KiB |
Before Width: | Height: | Size: 613 KiB After Width: | Height: | Size: 180 KiB |
Before Width: | Height: | Size: 613 KiB After Width: | Height: | Size: 180 KiB |
Before Width: | Height: | Size: 5.1 MiB After Width: | Height: | Size: 5.1 MiB |