layui的时间在table表格里面弹窗闪退

//方法级渲染
table.render({
elem: '#LAY_table_user'
, url: '../data/page.json'
, cols: [[
{field: 'ddid', title: '订单号', width: '10%'}

, {field: 'cpm', title: '产品名', width: "6%" ,edit:'text',style:'color:#0af'}

, {field: 'pzxx', title: '配置信息', width: "6%", templet: "#pzxx"}
, {field: 'fkje', title: '付款金额', width: "7%", sort: "true"}
, {field: 'username', title: '用户名', width: "5%"}
, {field: 'QQ', title: '用户QQ', width: "7%", sort: "true"}
, {field: 'ip', title: 'IP', width: "17%"}
, {field: 'xt', title: '系统', width: "7%"}

, {field: 'retime', title: '开始时间', width: "9%", templet: "#firsttime"}
, {field: 'lotime', title: '到期时间', width: "9%", templet: "#lasttime"}

, {field: 'kefu', title: '客服', width: "8%", templet: "#barkefu"}

, {field: 'state', title: '状态', width: "5%"}
, {field: 'right', fixed: "right", title: '操作', width: "8%", align: 'center', toolbar: "#barDemo"}

]]
, id: 'testReload'
, page: true
, height: 500
, skin: 'line'
,done:function () {
//时间选择

lay('.starttime').each(function(){
laydate.render({
elem: this
, trigger: 'click'
,done:function (value,data1) {
layer.alert('你选择的日期是:' + value + '<br>' + JSON.stringify(data1));
}
});
});
lay('.endtime').each(function(){
laydate.render({
elem: this
, trigger: 'click'
,done:function (value,data2) {
layer.alert('你选择的日期是:' + value + '<br>' + JSON.stringify(data2));
}
});
});
}
});
posted @ 2018-08-20 11:26  小猴子会上树  阅读(824)  评论(0编辑  收藏  举报