cookie.js 997 字节
//获取跳转路径
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='https://shipin.wx.broteam.cn/index.php';
//var linkPath="{:U('Template/shopcar')}"
//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);
}
var unique_id=localStorage.getItem('unique_id');
console.log(unique_id);