showRec:function (obj) {
   window.formData = null;
   var dialog = layer.open({
      type: 2
      ,title: '订单支付'
      ,content: 'orderPayShow.jsp'
      ,maxmin: true
      ,area: layui.setter.area
      ,btn: ['关闭']
      ,btnAlign: 'c'
      ,success:function(layero,index){
         window.formData = obj.data;
      }
   });
   layer.full(dialog)
},

orderPayShow.jsp:

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglibs.jsp"%><%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>



   
   订单支付
   
   
   
   
   


其中:
window.formData = obj.data;
将行记录赋值给window.formData
子页面获取:
var formData = window.parent.formData;
模板显示表单值:

      var getTpl = formTpl.innerHTML,view = document.getElementById('form_view');
      laytpl(getTpl).render(data, function(html){
         view.innerHTML = html;
      });