cookie.js 878 字节
//获取跳转路径
function GetQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r != null)return unescape(r[2]);
    return null;
}
//定义跳转路径
var linkPath='http://192.168.1.16:8020/TakeFood';
//var linkPath='http://localhost:63342/project/TakeFood'
//数据加载弹出框
function load(){
	 var $loadingToast = $('#loadingToast');
	 if ($loadingToast.css('display') != 'none') return;
        $loadingToast.fadeIn(100);
        setTimeout(function () {
        $loadingToast.fadeOut(100);

        }, 500);
}

//库存不足弹出框
function unstock(){
	var $toast = $('#unstock');
	if ($toast.css('display') != 'none') return;

            $toast.fadeIn(100);
            setTimeout(function () {
                $toast.fadeOut(100);
            }, 500);
}