<script type="text/javascript">
$(function(){
$('.press10').click(function(){
var row = ['1','2','3','4','5','6','7','8','9','10'];
press10(row);
})
})
function press10(row){
var index = 0;
var h = '<div class="pop_wrap_con clearfix">';
h += '<div class="layui-container top">';
h += '<div class="layui-row">';
h += '<div class="layui-col-xs12">';
h += '<div style="margin-top:20px;text-align:center;font-weight:700;font-size:20px;">恭喜您获得</div>';
h += '<div style="text-align:center;" class="append"></div>';
var method = setInterval(function () {
$('.append').append('<div style="text-align:center;">'+row[index]+'</div>');
index++
if(index >= 10){
clearInterval(method);
}
},500)
h += '<div style="text-align:center;margin:10px 15px 10px 15px;">奖励通过邮件发送(实物奖励会有工作人员联系您,请耐心等待)</div>';
h += '</div>';
h += '</div>';
h += '</div>';
h += '</div>';
layer.open({
type: 1,
title: false,
skin: 'layui-layer-rim',
area: ['200px', '258px'],
offset: '20px',
content: h,
shadeClose: false,//是否点击遮罩关闭,默认:false
closeBtn: 1,
anim: 5,
});
}
</script>