You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.9 KiB
HTML

2 years ago
<div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="detailModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 class="modal-title" id="myModalLabel">
{$title}
</h4>
</div>
<div class="modal-body">
<div id="detailInfo">
<eq name="CONTROLLER_NAME" value="Channel">
<div class="alert alert_info">注:已收到的礼包,请在“<a href="{:U('mygift')}">我的礼包</a>”中查看并下载。</div>
</eq>
</div>
</div>
<div class="modal-footer" style="text-align: center;">
<button type="button" class="btn btn_default" data-dismiss="modal">关闭
</button>
</div>
</div>
</div>
</div>
<script>
$(function() {
$("a[href='#detail']").click(function(event){
var val = $.trim($(this).data("values")+''),html='';
$("#detailInfo .form-group").remove();
if (val && val !='undefined') {
var values = val.split(','),temp='';
for (var i=0;i<values.length;i++) {
temp='';
if (values[i]) {
temp = values[i].split('|');
html += '<div class="form-group"><label class="mrc mrc_colum2_5 control-label"><span class="pull-right">'+temp[0]+'</span></label>';
if (temp[0] == '数量')
html += '<div class="mrc mrc_colum1_6_6 input-format"><span>'+temp[1]+'</span></div><label class="show-form-info" style=" font-weight:normal;"></label>';
else
html += '<div class="mrc mrc_colum5 input-format"><span>'+temp[1]+'</span></div>';
html += '<div class="clearfix"></div></div>';
}
}
}
$("#detailInfo").append(html);
event.preventDefault();
});
$(".selectpicker").change(function(){
$("#filterForm").submit();
});
});
</script>