清除缓存
This commit is contained in:
@@ -201,12 +201,12 @@ const showView = (data, monsterImg, drawId) => {
|
||||
$('.confitm-btn').addClass('active')
|
||||
$('.confitm-btn').removeClass('inactive')
|
||||
$('.confitm-btn').removeClass('prepare')
|
||||
$('.confitm-btn img').attr('src', "./images/main/confirm-btn.png")
|
||||
$('.confitm-btn img').attr('src', "./images/main/confirm-btn.png?v1.0")
|
||||
|
||||
$('.popup-confitm-btn').addClass('active')
|
||||
$('.popup-confitm-btn').removeClass('inactive')
|
||||
$('.popup-confitm-btn').removeClass('prepare')
|
||||
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-btn.png")
|
||||
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-btn.png?v1.0")
|
||||
|
||||
// 清空神器和怪獸名字和圖片
|
||||
$('.restrain .weapon-pic img').attr('src', '')
|
||||
@@ -257,12 +257,12 @@ const showView = (data, monsterImg, drawId) => {
|
||||
$('.confitm-btn').removeClass('active')
|
||||
$('.confitm-btn').removeClass('prepare')
|
||||
$('.confitm-btn').addClass('inactive')
|
||||
$('.confitm-btn img').attr('src', "./images/main/confirm-disable-btn.png")
|
||||
$('.confitm-btn img').attr('src', "./images/main/confirm-disable-btn.png?v1.0")
|
||||
|
||||
$('.popup-confitm-btn').removeClass('active')
|
||||
$('.popup-confitm-btn').removeClass('prepare')
|
||||
$('.popup-confitm-btn').addClass('inactive')
|
||||
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-disable-btn.png")
|
||||
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-disable-btn.png?v1.0")
|
||||
|
||||
// showCountDown(userComeinTime, drawStageStartTime, showResultStageStartTime)
|
||||
judgeStatus()
|
||||
@@ -304,12 +304,12 @@ const showView = (data, monsterImg, drawId) => {
|
||||
$('.confitm-btn').removeClass('active')
|
||||
$('.confitm-btn').removeClass('inactive')
|
||||
$('.confitm-btn').addClass('prepare')
|
||||
$('.confitm-btn img').attr('src', "./images/main/confirm-prepare-btn.png")
|
||||
$('.confitm-btn img').attr('src', "./images/main/confirm-prepare-btn.png?v1.0")
|
||||
|
||||
$('.popup-confitm-btn').removeClass('active')
|
||||
$('.popup-confitm-btn').removeClass('inactive')
|
||||
$('.popup-confitm-btn').addClass('prepare')
|
||||
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-prepare-btn.png")
|
||||
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-prepare-btn.png?v1.0")
|
||||
|
||||
$('.monster-position').hide()
|
||||
drawInfo = data //結果彈窗所需信息
|
||||
@@ -506,12 +506,12 @@ const monsterAnimation = () => {
|
||||
$('.confitm-btn').removeClass('active')
|
||||
$('.confitm-btn').removeClass('inactive')
|
||||
$('.confitm-btn').addClass('prepare')
|
||||
$('.confitm-btn img').attr('src', "./images/main/confirm-prepare-btn.png")
|
||||
$('.confitm-btn img').attr('src', "./images/main/confirm-prepare-btn.png?v1.0")
|
||||
|
||||
$('.popup-confitm-btn').removeClass('active')
|
||||
$('.popup-confitm-btn').removeClass('inactive')
|
||||
$('.popup-confitm-btn').addClass('prepare')
|
||||
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-prepare-btn.png")
|
||||
$('.popup-confitm-btn img').attr('src', "./images/popup/confirm-prepare-btn.png?v1.0")
|
||||
})
|
||||
})
|
||||
})
|
||||
@@ -561,16 +561,16 @@ const showResultPopup = () => {
|
||||
topThreeArr = drawInfo.rankUserList
|
||||
let str = ''
|
||||
if (topThreeArr.length === 0) {
|
||||
$('.top-three img').attr('src', './images/main/default-hui.png')
|
||||
$('.top-three img').attr('src', './images/main/default-hui.png?v1.0')
|
||||
} else {
|
||||
topThreeArr.map((item, index) => {
|
||||
$('.top-three img').eq(index).attr('src', item)
|
||||
})
|
||||
if (topThreeArr.length === 1) {
|
||||
$('.top-three img').eq(1).attr('src', './images/main/default-hui.png')
|
||||
$('.top-three img').eq(2).attr('src', './images/main/default-hui.png')
|
||||
$('.top-three img').eq(1).attr('src', './images/main/default-hui.png?v1.0')
|
||||
$('.top-three img').eq(2).attr('src', './images/main/default-hui.png?v1.0')
|
||||
} else if (topThreeArr.length === 2) {
|
||||
$('.top-three img').eq(2).attr('src', './images/main/default-hui.png')
|
||||
$('.top-three img').eq(2).attr('src', './images/main/default-hui.png?v1.0')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -674,7 +674,7 @@ const renderRecord = () => {
|
||||
userCostPiece = '*' + item1.costPiece
|
||||
str1 += `
|
||||
<li class="weapon-item">
|
||||
<img style="display: ${item1.itemId === drawId ? 'block' : 'none'}" src="./images/popup/summon-icon.png" alt="" class="summon-icon">
|
||||
<img style="display: ${item1.itemId === drawId ? 'block' : 'none'}" src="./images/popup/summon-icon.png?v1.0" alt="" class="summon-icon">
|
||||
<img src="${item1.itemUrl}" alt="" class="weapon-item-pic">
|
||||
<span>${userCostPiece}</span>
|
||||
</li>
|
||||
@@ -704,7 +704,7 @@ const renderRecord = () => {
|
||||
<p style='display: ${item.drawStatus == 2 ? "none" : "block"}'>
|
||||
獎勵
|
||||
<i>${item.reward}</i>
|
||||
<img src="./images/popup/diamond.png" alt="">
|
||||
<img src="./images/popup/diamond.png?v1.0" alt="">
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
@@ -902,7 +902,7 @@ const renderRankList = () => {
|
||||
let len = 3 - rankListD.length
|
||||
let arr = new Array(len).fill({
|
||||
nick: '虛位以待',
|
||||
avatar: './images/main/default.png',
|
||||
avatar: './images/main/default.png?v1.0',
|
||||
num: ''
|
||||
})
|
||||
topThreeArr.push(...arr)
|
||||
@@ -963,7 +963,7 @@ const renderRankList = () => {
|
||||
let len = 3 - rankListN.length
|
||||
let arr = new Array(len).fill({
|
||||
nick: '虛位以待',
|
||||
avatar: './images/main/default.png'
|
||||
avatar: './images/main/default.png?v1.0'
|
||||
})
|
||||
topThreeArr.push(...arr)
|
||||
}
|
||||
@@ -1095,11 +1095,11 @@ $(function () {
|
||||
// 排行榜彈窗tab點選
|
||||
$('.tab-wrap').on('click', 'p', function () {
|
||||
if ($(this).index()) {
|
||||
$(this).find('img').attr('src', "./images/popup/rank-tab2-active.png")
|
||||
$(this).siblings().find('img').attr('src', "./images/popup/rank-tab1.png")
|
||||
$(this).find('img').attr('src', "./images/popup/rank-tab2-active.png?v1.0")
|
||||
$(this).siblings().find('img').attr('src', "./images/popup/rank-tab1.png?v1.0")
|
||||
} else {
|
||||
$(this).find('img').attr('src', "./images/popup/rank-tab1-active.png")
|
||||
$(this).siblings().find('img').attr('src', "./images/popup/rank-tab2.png")
|
||||
$(this).find('img').attr('src', "./images/popup/rank-tab1-active.png?v1.0")
|
||||
$(this).siblings().find('img').attr('src', "./images/popup/rank-tab2.png?v1.0")
|
||||
}
|
||||
if (type === $(this).index() + 1) return
|
||||
type = $(this).index() + 1
|
||||
@@ -1132,8 +1132,8 @@ $(function () {
|
||||
clickTabCanNetworkN = true
|
||||
$('.other-rank').html('')
|
||||
|
||||
$('.tab-wrap p').eq(0).find('img').attr('src', "./images/popup/rank-tab1-active.png")
|
||||
$('.tab-wrap p').eq(1).find('img').attr('src', "./images/popup/rank-tab2.png")
|
||||
$('.tab-wrap p').eq(0).find('img').attr('src', "./images/popup/rank-tab1-active.png?v1.0")
|
||||
$('.tab-wrap p').eq(1).find('img').attr('src', "./images/popup/rank-tab2.png?v1.0")
|
||||
|
||||
$('body').css('overflow', 'auto')
|
||||
})
|
||||
|
Reference in New Issue
Block a user