﻿var userInfo = { userId: 0, userName: '', UnionStatus: -1,nickName:'',modifyname:0 };
var siteInfo = { siteName: '', partner: 0, site: 0,siteUrl:'' };
var cart = 'tanklcart';

function getCookie(name) {
    var cookieValue = "";
    var search = name + "=";
    if (document.cookie.length > 0) {
        offset = document.cookie.indexOf(search);
        if (offset != -1) {
            offset += search.length;
            end = document.cookie.indexOf(";", offset);
            if (end == -1) end = document.cookie.length;
            cookieValue = unescape(document.cookie.substring(offset, end))
        }
    }
    return cookieValue;
}

function alipaylogin() {
    $.ajax({
        type: "get",
        url: "/tools/ajax/AJAXTools.aspx?t=alipaylogin&&tmp=" + Date(),
        error: function() { alert("与服务器通信发生错误") },
        success: function(data) {
            if (data != "") {
                location.href = data;
            }
        }
    });
}
