var index = layer.open({
type: 2,
title: title,
content: '{:U('TourProduct/getAttractionsImg')}' + '?product_id=' + id,
area: ['70%', '80%'],
maxmin: true,
cancel: function(index, layero){
layer.close(index);
location.reload();
}
});