/**
 * 新增js 2018-08-10
 */
//展开 更多功能
function left_slipping(){
    $('.left_slipping').show();
    $('.popmask').show();
    $('body').css("overflow","hidden");

    var heights = document.documentElement.clientHeight - 100;
    $(".left_slipping_main").height(heights);

}
//无码收银
function wuma_cashier(){
    $('.wuma_cashier').show();
    $('.popmask').show();
    $('body').css("overflow","hidden")
}
//收款
function received_money(){
    $('.received_money').show();
    $('.popmask').show();
    $('body').css("overflow","hidden")
}
//整单折
function custom1(){
    $('.custom1').show();
    $('.popmask').show();
    $('body').css("overflow","hidden")
}
//整单减
function custom2(){
    $('.custom2').show();
    $('.popmask').show();
    $('body').css("overflow","hidden")
}
//优惠券
function custom3(){
    $('.custom3').show();
    $('.popmask').show();
    $('body').css("overflow","hidden")
}
//完成收款
function custom4(){
    $('.custom4').show();
    $('.popmask').show();
    $('.received_money').hide();
    $('body').css("overflow","hidden")
}
//关闭窗口
function closemask(){
    $('.left_slipping').hide();$('.popmask').hide(); //展开 更多功能
    $('.wuma_cashier').hide(); //无码收银
    $('.received_money').hide(); //收款
    $('.custom1').hide(); //整单折
    $('.custom2').hide(); //整单减
    $('.custom3').hide(); //优惠券
    $('.custom4').hide(); //完成收款
    $('body').css("overflow","")
}

//新窗体
function lsm_new1(title,targetUrl){
    $('.left_slipping').hide();$('.popmask').hide(); //展开 更多功能
    $('.lsm_new1').show();
    $('.popmask_win').show();
    $('body').css("overflow","");

    var heights = document.documentElement.clientHeight;
    $("#rightMain").height(heights);
    if (targetUrl) $("#rightMain").attr('src', targetUrl);
    $("#title").html(title);
}
//关闭新窗体
function closeWin(){
    $('.lsm_new1').hide();
    $('.popmask_win').hide();
}