var sitem = localStorage.sitem; var grouphistory = localStorage.grouphistory; var venueSearchItem = localStorage.venueSearchItem var ditem = localStorage.ditem var groupSearchItem = localStorage.groupSearchItem var vitem = localStorage.vitem var mapSearchItem = localStorage.mapSearchItem var cultureSearchItem = localStorage.cultureSearchItem var szitem = localStorage.szitem var whxfspitem = localStorage.whxfspitem var whxfsjitem = localStorage.whxfsjitem var roomListSearchHistory = localStorage.roomListSearchHistory var gxzxitem = localStorage.gxzxitem; var fyitem = localStorage.fyitem; var ccritem = localStorage.ccritem; var mhitem = localStorage.mhitem; var gxhomeitem = localStorage.gxhomeitem; var kongjianitem = localStorage.kongjianitem var mjitem = localStorage.mjitem var artitem = localStorage.artitem var wenwuitem = localStorage.wenwuitem var activityckb = localStorage.activityckb; var activityhistory = localStorage.activityhistory; var activitytag = localStorage.activitytag; var activityarea = localStorage.activityarea; var tabSort = localStorage.tabSort; var activitystatus = localStorage.activitystatus; var groupselectProperty = localStorage.groupselectProperty; var grouptag = localStorage.grouptag; var grouptype = localStorage.grouptype; var dishistory = localStorage.dishistory; var disxzlist = localStorage.disxzlist; var disbodylist = localStorage.disbodylist; var disarealist = localStorage.disarealist; var disorderBy = localStorage.disorderBy; var disstatus = loclocalStorage.disstatus; var disckb = loclocalStorage.disckb; var venvenueTypeListSelect = loclocalStorage.venvenueTypeListSelect; var venueAreaListSelect = loclocalStorage.venueAreaListSelect; var vselectindex = loclocalStorage.vselectindex; var vselectSort = loclocalStorage.vselectSort; var curareaValue = loclocalStorage.curareaValue; var curcategoryValue = loclocalStorage.curcategoryValue; var curintervalValue = loclocalStorage.curintervalValue; var curactiveTab = loclocalStorage.curactiveTab; var curorder = loclocalStorage.curorder; var actroom = loclocalStorage.actroom; var actroomtype = loclocalStorage.actroomtype; var actroompeoplenum = loclocalStorage.actroompeoplenum; var roomorderCheck = loclocalStorage.roomorderCheck; var actroomarea = loclocalStorage.actroomarea; localStorage.clear(); if (actroomarea != undefined && actroomarea != '' && actroomarea != null) { localStorage.actroomarea = actroomarea } if (roomorderCheck != undefined && roomorderCheck != '' && roomorderCheck != null) { localStorage.roomorderCheck = roomorderCheck } if (actroompeoplenum != undefined && actroompeoplenum != '' && actroompeoplenum != null) { localStorage.actroompeoplenum = actroompeoplenum } if (actroomtype != undefined && actroomtype != '' && actroomtype != null) { localStorage.actroomtype = actroomtype } if (actroom != undefined && actroom != '' && actroom != null) { localStorage.actroom = actroom } if (curorder != undefined && curorder != '' && curorder != null) { localStorage.curorder = curorder } if (curactiveTab != undefined && curactiveTab != '' && curactiveTab != null) { localStorage.curactiveTab = curactiveTab } if (curintervalValue != undefined && curintervalValue != '' && curintervalValue != null) { localStorage.curintervalValue = curintervalValue } if (curcategoryValue != undefined && curcategoryValue != '' && curcategoryValue != null) { localStorage.curcategoryValue = curcategoryValue } if (curareaValue != undefined && curareaValue != '' && curareaValue != null) { localStorage.curareaValue = curareaValue } if (vselectSort != undefined && vselectSort != '' && vselectSort != null) { localStorage.vselectSort = vselectSort } if (vselectindex != undefined && vselectindex != '' && vselectindex != null) { localStorage.vselectindex = vselectindex } if (venueAreaListSelect != undefined && venueAreaListSelect != '' && venueAreaListSelect != null) { localStorage.venueAreaListSelect = venueAreaListSelect } if (venvenueTypeListSelect != undefined && venvenueTypeListSelect != '' && venvenueTypeListSelect != null) { localStorage.venvenueTypeListSelect = venvenueTypeListSelect } if (disckb != undefined && disckb != '' && disckb != null) { localStorage.disckb = disckb } if (disstatus != undefined && disstatus != '' && disstatus != null) { localStorage.disstatus = disstatus } if (disorderBy != undefined && disorderBy != '' && disorderBy != null) { localStorage.disorderBy = disorderBy } if (disarealist != undefined && disarealist != '' && disarealist != null) { localStorage.disarealist = disarealist } if (disbodylist != undefined && disbodylist != '' && disbodylist != null) { localStorage.disbodylist = disbodylist } if (disxzlist != undefined && disxzlist != '' && disxzlist != null) { localStorage.disxzlist = disxzlist } if (dishistory != undefined && dishistory != '' && dishistory != null) { localStorage.dishistory = dishistory } if (grouptype != undefined && grouptype != '' && grouptype != null) { localStorage.grouptype = grouptype } if (grouptag != undefined && grouptag != '' && grouptag != null) { localStorage.grouptag = grouptag } if (groupselectProperty != undefined && groupselectProperty != '' && groupselectProperty != null) { localStorage.groupselectProperty = groupselectProperty } if (sitem != undefined && sitem != '' && sitem != null) { localStorage.sitem = sitem } if (venueSearchItem != undefined && venueSearchItem != '' && venueSearchItem != null) { localStorage.venueSearchItem = venueSearchItem } if (ditem != undefined && ditem != '' && ditem != null) { localStorage.ditem = ditem } if (groupSearchItem != undefined && groupSearchItem != '' && groupSearchItem != null) { localStorage.groupSearchItem = groupSearchItem } if (vitem != undefined && vitem != '' && vitem != null) { localStorage.vitem = vitem } if (mapSearchItem != undefined && mapSearchItem != '' && mapSearchItem != null) { localStorage.mapSearchItem = mapSearchItem } if (cultureSearchItem != undefined && cultureSearchItem != '' && cultureSearchItem != null) { localStorage.cultureSearchItem = cultureSearchItem } if (szitem != undefined && szitem != '' && szitem != null) { localStorage.szitem = szitem } if (whxfspitem != undefined && whxfspitem != '' && whxfspitem != null) { localStorage.whxfspitem = whxfspitem } if (whxfsjitem != undefined && whxfsjitem != '' && whxfsjitem != null) { localStorage.whxfsjitem = whxfsjitem } if (roomListSearchHistory != undefined && roomListSearchHistory != '' && roomListSearchHistory != null) { localStorage.roomListSearchHistory = roomListSearchHistory } if (mjitem != undefined && mjitem != '' && mjitem != null) { localStorage.mjitem = mjitem } if (artitem != undefined && artitem != '' && artitem != null) { localStorage.artitem = artitem } if (wenwuitem != undefined && wenwuitem != '' && wenwuitem != null) { localStorage.artitem = wenwuitem } if (activityckb != undefined && activityckb != '' && activityckb != null) { localStorage.activityckb = activityckb } if (activityhistory != undefined && activityhistory != '' && activityhistory != null) { localStorage.activityhistory = activityhistory } if (activitytag != undefined && activitytag != '' && activitytag != null) { localStorage.activitytag = activitytag } if (activityarea != undefined && activityarea != '' && activityarea != null) { localStorage.activityarea = activityarea } if (tabSort != undefined && tabSort != '' && tabSort != null) { localStorage.tabSort = tabSort } if (activitystatus != undefined && activitystatus != '' && activitystatus != null) { localStorage.activitystatus = activitystatus } if (gxzxitem != undefined && gxzxitem != '' && gxzxitem != null) { localStorage.gxzxitem = gxzxitem } if (fyitem != undefined && fyitem != '' && fyitem != null) { localStorage.fyitem = fyitem } if (ccritem != undefined && ccritem != '' && ccritem != null) { localStorage.ccritem = ccritem } if (mhitem != undefined && mhitem != '' && mhitem != null) { localStorage.mhitem = mhitem } if (gxhomeitem != undefined && gxhomeitem != '' && gxhomeitem != null) { localStorage.gxhomeitem = gxhomeitem } if (kongjianitem != undefined && kongjianitem != '' && kongjianitem != null) { localStorage.kongjianitem = kongjianitem } if (grouphistory != undefined && grouphistory != '' && grouphistory != null) { localStorage.grouphistory = grouphistory } // if (!localStorage.getItem("LON")) { // localStorage.setItem("LON", 120.628774); // localStorage.setItem("LAT", 31.31249); // } // var marker, map = new AMap.Map('mapContainer', { // zoom: 7, //级别 // center: [1120.628774, 31.31249], //中心点坐标 // }); // var shijiancha; // if (localStorage.hctime == undefined) { // localStorage.setItem("hctime", Date.parse(new Date())); // shijiancha = 129600000 // } else { // shijiancha = Date.parse(new Date()) - localStorage.hctime; // } // if (shijiancha < 12960000) {} else { // map.plugin('AMap.Geolocation', function() { // var geolocation = new AMap.Geolocation({ // enableHighAccuracy: true, //是否使用高精度定位,默认:true // timeout: 10000, //超过10秒后停止定位,默认:无穷大 // buttonOffset: new AMap.Pixel(10, 20), //定位按钮与设置的停靠位置的偏移量,默认:Pixel(10, 20) // zoomToAccuracy: true, //定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false // buttonPosition: 'RB' // }); // map.addControl(geolocation); // geolocation.getCurrentPosition(); // AMap.event.addListener(geolocation, 'complete', onComplete); //返回定位信息 // AMap.event.addListener(geolocation, 'error', onError); //返回定位出错信息 // }); //} // //解析定位结果 // function onComplete(data) { // var LON = data.position.getLng() // var LAT = data.position.getLat() // localStorage.setItem("LON", LON); // localStorage.setItem("LAT", LAT); // } // //解析定位错误信息 // function onError(data) { // console.log('定位失败了吗') // console.log(data); // }