增加大哥动效翅膀
parent
99116f5ae6
commit
030beff380
|
@ -418,6 +418,20 @@ body{
|
|||
.dance-people .people-wing.people-block{
|
||||
display: block;
|
||||
}
|
||||
/*vip*/
|
||||
.dance-people.people-vip .people-wing{
|
||||
display: block !important;
|
||||
background: url(../image/icon_07.gif) no-repeat;
|
||||
background-size: 200px 180px;
|
||||
width: 200px;
|
||||
height: 180px;
|
||||
content: "";
|
||||
left:-55%;
|
||||
top: -50px;
|
||||
position: absolute;
|
||||
display: none;
|
||||
z-index: -8;
|
||||
}
|
||||
/*荧光棒*/
|
||||
.stick{
|
||||
background-size: 57px 81px;
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
10
js/custom.js
10
js/custom.js
|
@ -156,6 +156,11 @@ function peopleObj(name,uid,say,action,active_time, is_admin, decoration){
|
|||
decorationWing = 'people-block'
|
||||
// console.log(decorationWing, '我的翅膀')
|
||||
}
|
||||
// 添加vip翅膀
|
||||
if (decoration.indexOf('people-vip') != -1) {
|
||||
decorationWing = 'people-vip'
|
||||
// console.log(decorationWing, '我的翅膀')
|
||||
}
|
||||
}
|
||||
|
||||
$.each(yspData, function (commentIndex, comment) {
|
||||
|
@ -164,19 +169,20 @@ function peopleObj(name,uid,say,action,active_time, is_admin, decoration){
|
|||
bigStick = ''
|
||||
}
|
||||
yspHtml += `
|
||||
<div id="${comment.uid}" data-time="${comment.active_time}" class="dance-people ${decorationWing} data${peopleId}" style="top: ${comment.top}; left: ${comment.left};">
|
||||
<div id="${comment.uid}" data-time="${comment.active_time}" class="dance-people ${decorationWing} data${peopleId}" style="top: ${comment.top}; left: ${comment.left};">
|
||||
<div class="speak ">${comment.say}</div>
|
||||
<div class="people-dancins ${comment.dancin} ">
|
||||
<div class="people-img ${comment.peopleImg} ${decorationHat} ">
|
||||
<div class="stick stick-swing ${decorationStick} ${bigStick} ${comment.ying_guang}"></div>
|
||||
<div class="people-name ">${comment.name}</div>
|
||||
</div>
|
||||
<div class="people-wing ${decorationWing}"> </div>
|
||||
<div class="people-wing ${decorationWing} "> </div>
|
||||
</div>
|
||||
</div>`
|
||||
});//如果是舰长需要加上stick-swing-big-tow,充值用户加上stick-christmas,同时去掉stick-swing-big-tow
|
||||
//增加圣诞帽子,在people-img那层增加people-hat。
|
||||
//翅膀在people-wing 增加people-block
|
||||
//vip翅膀在dance-people 处增加people-vip
|
||||
$('.dance-floor').prepend(yspHtml);
|
||||
moveEv(uid);
|
||||
// 随机舞
|
||||
|
|
13
js/handle.js
13
js/handle.js
|
@ -11,7 +11,7 @@ let autoDel = false
|
|||
let virtualPeople = true
|
||||
|
||||
// 虚拟人物数量
|
||||
let virtualNum = 50
|
||||
let virtualNum = 0
|
||||
|
||||
// 虚拟人物名字列表
|
||||
let virtualList = ['一只小绵飏','未来狗头耀武扬威什么','大牛逼玩意','长呆毛的呆猫','区实验川大聪明',
|
||||
|
@ -318,7 +318,8 @@ function receiveMessage(event)
|
|||
|
||||
let decoration = []
|
||||
let userCellNum = userCell[dm.uname]
|
||||
userCell['流域_墨绿绿'] = 99999
|
||||
userCell['浅月丷'] = 99999
|
||||
userCell['流域_墨绿绿'] = 99
|
||||
userCell['yin5th'] = 15
|
||||
// userCell['未来狗头耀武扬威什么'] = 1
|
||||
if (userCellNum != undefined) {
|
||||
|
@ -336,6 +337,10 @@ function receiveMessage(event)
|
|||
if (userCellNum >= 99) {
|
||||
decoration.push('people-block')
|
||||
}
|
||||
// 999个电池送大翅膀一对
|
||||
if (userCellNum >= 9999) {
|
||||
decoration.push('people-vip')
|
||||
}
|
||||
|
||||
console.log('付费用户['+dm.uname+']说:'+dm.text, '付费用户发言记录')
|
||||
}
|
||||
|
@ -371,6 +376,10 @@ function receiveMessage(event)
|
|||
if (decoration.indexOf('people-block') != -1) {
|
||||
$(`#${dm.uid} .people-wing`).removeClass("people-block").addClass('people-block');
|
||||
}
|
||||
// 添加翅膀
|
||||
if (decoration.indexOf('people-vip') != -1) {
|
||||
$(`#${dm.uid} `).removeClass("people-vip").addClass('people-vip');
|
||||
}
|
||||
}
|
||||
|
||||
setTimeout(()=>{
|
||||
|
|
Loading…
Reference in New Issue