70 lines
2.8 KiB
Smarty
70 lines
2.8 KiB
Smarty
<!--{if $userinfo.Grade >= 300}-->
|
||
<!----div class="dh_left">
|
||
<div class="elog pf-left">
|
||
<ul id="shop_log">
|
||
<!--{section name=loop loop=$log}-->
|
||
<li><!--{$log[loop].NickName}--><br><font color=#ccc>兑换</font> <font color=red><!--{$log[loop].ShopTitle}--></font></li>
|
||
<!--{/section}-->
|
||
</ul>
|
||
<div class="clear"></div>
|
||
</div>
|
||
</div ---->
|
||
<div style="margin:0 auto;width:70%;">
|
||
<div class="dh_jp">
|
||
<!--{section name=loop loop=$info}-->
|
||
<dl><dt onclick="duihuan(<!--{$info[loop].ShopID}-->,<!--{$userinfo.YuanBao|default:0}-->,<!--{$info[loop].YuanBao}-->,'<!--{$info[loop].ShopTitle}-->')"><img src="/m/img/jp-<!--{$info[loop].ShopType}-->.jpg"></dt><dd><!--{$info[loop].ShopTitle}--></dd></dl>
|
||
<!--{/section}-->
|
||
</div>
|
||
</div>
|
||
<!--{else}-->
|
||
<div class="dh_left">
|
||
<div class="pf-left">
|
||
<div class="dh_left_nr xc-ah">
|
||
<dl style="color:#999;"><dt>等级</dt><dd>经验值</dd></dl>
|
||
<!--{section name=loop loop=$GradeArr}-->
|
||
<dl <!--{if $userinfo.Grade>=$GradeArr[loop].min && $userinfo.Grade<=$GradeArr[loop].max}-->style="color:red;"<!--{/if}-->><dt><!--{$GradeArr[loop].title}--></dt><dd><!--{$GradeArr[loop].min}-->~<!--{$GradeArr[loop].max}--></dd></dl>
|
||
<!--{/section}-->
|
||
</div>
|
||
<div class="clear"></div>
|
||
<div class="xlh-25 xc-ah"><br></div>
|
||
</div>
|
||
</div>
|
||
<div class="dh_right">
|
||
<div style="margin-top:30px;text-align:center;font-size:20px;color:#999;line-height:40px;">元宝兑换奖品?<br>您的经验值不够!<!--{$userinfo.Grade}-->/300 <br>请先玩游戏升级吧!</div>
|
||
</div>
|
||
<!--{/if}-->
|
||
<div class="clear"></div>
|
||
<script>
|
||
function duihuan(sid,yuanbao,dyuanbao,stitle){
|
||
if(dyuanbao > yuanbao){
|
||
var cyuanbao = dyuanbao-yuanbao;
|
||
layer.open({content: '您的元宝不够<br>还差'+cyuanbao+'个元宝<br>来继续游戏赚元宝吧!',style: 'width:180px;',btn: '我知道了'});
|
||
}else{
|
||
if(sid == 5 || sid == 6){
|
||
layer.open({content: '请到好友栏目点击查看!',style: 'width:180px;',btn: '我知道了'});
|
||
return "";
|
||
}else if(sid > 6){
|
||
var contt = "您将扣除"+dyuanbao+"个元宝<br>请联系微信客服领取:wnmj68";
|
||
}else{
|
||
var contt = "您将扣除"+dyuanbao+"个元宝";
|
||
}
|
||
layer.open({content: contt,style: 'width:200px;',btn: ['确定领取', '取消'],yes: function(index){
|
||
$.get('/dh/dh.php', {
|
||
sid : sid,
|
||
gameid : gid
|
||
}, function(dat, status) {
|
||
layer.open({content: dat,style: 'width:180px;',btn: '我知道了',yes: function(index){
|
||
var d = new Date(),str = '';
|
||
str = d.getMonth() + 1+'-'+d.getDate()+' '+d.getHours()+':'+d.getMinutes()+':'+d.getSeconds();
|
||
$("#shop_log").prepend("<li>"+nickname+"<br>兑换 "+stitle+"<br><font color='red'>今天</font> "+str+"</li>");
|
||
var ybs = $("#yuanbao").text();
|
||
$("#yuanbao").text(parseInt(ybs)-parseInt(dyuanbao));
|
||
//window.location.reload();
|
||
layer.closeAll();
|
||
}});
|
||
});
|
||
}});
|
||
}
|
||
}
|
||
layer.closeAll();
|
||
</script> |