---------------------------lay弹出层选择内容---------------------------------------------------
<volist name="rest" id="v">
<li style="color: gray;">
<em style="width: 10em" >{$v.name}</em>
<em style="width: 20em">{$v.email}</em>
<em style="width: 20em">{$v.phone}</em>
<em style="width: 20em">{$v.note}</em>
<em style="width: 20em">{$v.add_time|date="Y-m-d",###}</em>
<span>
<a data-id="{$v.id}" class="label label-success">点击查看</a>
</span>
</li>
</volist>
</script>
$('.label').click(function(){
console.log($(this).parent().parent().find('em').eq(3).html());
layer.open({
title: '留言详情',
type: 1 ,
area: ['50%', 'auto'],
maxmin: true,
content:"<div style='height:70%;width:90%;margin:10px auto;margin-top:5%;'>" +
"<p style='line-height:1%;'>"+ $(this).parent().parent().find('em').eq(3).html()+ "<p/></div>"
});
});
</script>
lay弹出层选择内容
最新推荐文章于 2024-01-18 16:13:57 发布