$('.attachment', parent.document).click(function(e){
_layer.open({
type: 1,
title: '查看附件',
area: ['40%', '400px'],
maxmin: true,
content: doContent,
shadeClose:true,
success:function(){
window.parent.frames.initPhotoSwipeFromDOM('.my-gallery');
}
})
});