Commit 5d33fb4e by libai

测试

parent 1fe329df
Showing with 12 additions and 9 deletions
...@@ -1299,16 +1299,19 @@ $(function(){ ...@@ -1299,16 +1299,19 @@ $(function(){
console.log('禮物面板', data) console.log('禮物面板', data)
dataObj=data dataObj=data
giftMd5=data.md5; giftMd5=data.md5;
var html=[];
html+='<img class="level-icon" src="https://app.ixiulive.com/static/vip/'+data.vipInfo.level+'.png" alt="">'; if(data.vipInfo.level!=undefined){
html+='<div class="level-bar">'; var html=[];
html+='<div class="level-bar-content">'; html+='<img class="level-icon" src="https://app.ixiulive.com/static/vip/'+data.vipInfo.level+'.png" alt="">';
var levelWidth=Math.floor(((data.vipInfo.exp-data.vipInfo.currentLevelExp)/((data.vipInfo.exp+data.vipInfo.nextLevelExp)-data.vipInfo.currentLevelExp))*1000)/10 html+='<div class="level-bar">';
html+='<div style="width:'+levelWidth+'%" class="level-my-bar"></div>'; html+='<div class="level-bar-content">';
html+='</div>'; var levelWidth=Math.floor(((data.vipInfo.exp-data.vipInfo.currentLevelExp)/((data.vipInfo.exp+data.vipInfo.nextLevelExp)-data.vipInfo.currentLevelExp))*1000)/10
html+='</div>'; html+='<div style="width:'+levelWidth+'%" class="level-my-bar"></div>';
$(".level-box").html(html); html+='</div>';
html+='</div>';
$(".level-box").html(html);
}
var html=[]; var html=[];
if(e==1){ if(e==1){
for(var i=0;i<data.data.length;i++){ for(var i=0;i<data.data.length;i++){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment