// 首页、列表页{加入购物R function ShopAddCart1625194556(aid, spec_value_id, num, rootDir) { rootDir = rootDir ? rootDir : ''; $.ajax({ url : rootDir + '/index.php?m=user&c=Shop&a=shop_add_cart&_ajax=1', data: {aid: aid, num: num, spec_value_id: spec_value_id}, type:'post', dataType:'json', success:function(res){ if (1 == res.code) { window.location.href = res.url; } else { if (-1 == res.data.code) { layer.msg(res.msg, {time: time}); } else { // ȝ? window.location.href = res.url; } } } }); } /** * 讄cookie * @param {[type]} name [description] * @param {[type]} value [description] * @param {[type]} time [description] */ function ey_setCookies(name, value, time) { var cookieString = name + "=" + escape(value) + ";"; if (time != 0) { var Times = new Date(); Times.setTime(Times.getTime() + time); cookieString += "expires="+Times.toGMTString()+";" } document.cookie = cookieString+"path=/"; } // d cookie function getCookie(c_name) { if (document.cookie.length>0) { c_start = document.cookie.indexOf(c_name + "=") if (c_start!=-1) { c_start=c_start + c_name.length+1 c_end=document.cookie.indexOf(";",c_start) if (c_end==-1) c_end=document.cookie.length return unescape(document.cookie.substring(c_start,c_end)) } } return ""; } function ey_getCookie(c_name) { return getCookie(c_name); } function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }
  • <input id="rxnpj"><output id="rxnpj"></output></input>
    <acronym id="rxnpj"><strike id="rxnpj"></strike></acronym>
    1. <sub id="rxnpj"><code id="rxnpj"><u id="rxnpj"></u></code></sub>

          <code id="rxnpj"><label id="rxnpj"></label></code>
        1. <th id="rxnpj"></th>
          <var id="rxnpj"><rt id="rxnpj"></rt></var>
        2. <var id="rxnpj"></var>
        3. <cite id="rxnpj"></cite>
            <code id="rxnpj"><menu id="rxnpj"><u id="rxnpj"></u></menu></code>

            <table id="rxnpj"><menu id="rxnpj"></menu></table>
            <input id="rxnpj"><label id="rxnpj"><video id="rxnpj"></video></label></input>
          1. ҹҹ