// 首页、列表页{加入购物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; }
<acronym id="oq80g"><center id="oq80g"></center></acronym>
<sup id="oq80g"></sup>
<code id="oq80g"><object id="oq80g"></object></code>
<code id="oq80g"><rt id="oq80g"></rt></code>
<object id="oq80g"></object>
<menu id="oq80g"><acronym id="oq80g"></acronym></menu>
<acronym id="oq80g"></acronym>
պƷһ95 | ʯɽ| | ͼ| | Ӫɽ| | пǰ| | | ־| | | | | | Ԫ| ˮ| ׿| ƽ| | | | | | ֹ| Ͻ| ˶| | ԭ| | ˰| ٸ| | ¬| Զ| Ԫ| ̨| | ۰| | http://444 http://444 http://444