layer.js彈出其他頁面原始碼
阿新 • • 發佈:2019-01-27
layer.open({
type: 2,
area: ['500px', '400px'],
skin: 'layui-layer-rim',
title: '商家指定叫車',
content : [‘www.baidu.com’, 'no'],
success: function(layero, index){
layer.getChildFrame('.find_specify_car',index).on('click', function(){
var orderSn=layer.getChildFrame("#orderSn",index).val();
var telNum=layer.getChildFrame(".telNum",index).val();
if(telNum==''){
layer.msg('請填寫手機號');
return false;
}
if(telNum.length != 11){
layer.msg('請填寫正確的手機號');
return false;
}
});
layer.getChildFrame('.btn_specify_car',index).on('click', function(){
var info = '' ;
var carOwnerId=layer.getChildFrame(".carOwnerId",index).val();
info = {'orderId':a,'storeId':d,'transportCharge':c,'orderSn':b,'carOwnerId':carOwnerId}
})
}
});
type: 2,
area: ['500px', '400px'],
skin: 'layui-layer-rim',
title: '商家指定叫車',
content : [‘www.baidu.com’, 'no'],
success: function(layero, index){
layer.getChildFrame('.find_specify_car',index).on('click', function(){
var orderSn=layer.getChildFrame("#orderSn",index).val();
var telNum=layer.getChildFrame(".telNum",index).val();
if(telNum==''){
layer.msg('請填寫手機號');
return false;
}
if(telNum.length != 11){
layer.msg('請填寫正確的手機號');
return false;
}
});
layer.getChildFrame('.btn_specify_car',index).on('click', function(){
var info = '' ;
var carOwnerId=layer.getChildFrame(".carOwnerId",index).val();
info = {'orderId':a,'storeId':d,'transportCharge':c,'orderSn':b,'carOwnerId':carOwnerId}
})
}
});