// 首页、列表页{加入购物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; } 亚洲欧美色图_少妇88久久中文字幕_国产精品 一二三区_日本免费亚洲视频