(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-city-index"],{"0b07":function(e,t,a){var i=a("427d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=a("4f06").default;o("0326745d",i,!0,{sourceMap:!1,shadowMode:!1})},"427d":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'uni-page-body[data-v-316b07bd]{padding-bottom:120px}.p1020[data-v-316b07bd]{padding:10px 10px 10px 20px}.container[data-v-316b07bd]{margin-top:10px}.container[data-v-316b07bd]::after{content:".";display:block;height:0;visibility:hidden;clear:both}.container .item[data-v-316b07bd]{width:calc(33.33% - 10px);float:left;margin-right:10px;background:#fff;border-radius:16px;font-size:16px;font-weight:400;text-align:center;padding:8px 0;color:#1d1d1d;margin-bottom:10px;line-height:20px;\n /* display: flex;\n align-items: center;\n justify-content: center; */overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container .item.active[data-v-316b07bd]{background:var(--color-ysd);color:#fff}.headTxt[data-v-316b07bd]{font-size:18px;font-weight:400;color:#999;line-height:25px;margin-top:10px}.resetBtn[data-v-316b07bd]{height:44px;opacity:1;background:#fff;border:1px solid var(--color-ysd);border-radius:25px;font-size:18px;font-weight:601;color:var(--color-ysd);padding:0;line-height:44px;margin-bottom:40px}.resetBtn[data-v-316b07bd]:active{background-color:#f2f2f2}.loginOut[data-v-316b07bd]{width:100%;height:44px;opacity:1;background:var(--color-ysd)!important;border-radius:25px;font-size:18px;font-weight:601;color:#fff;padding:0;line-height:44px;margin-bottom:40px;margin-top:%?20?%}.pl10[data-v-316b07bd]{padding-left:10px}.pr10[data-v-316b07bd]{padding-right:10px}.btmFix[data-v-316b07bd]{position:fixed;bottom:0;left:0;width:100%;\n /* background-color: #ffffff; */z-index:99}uni-page-body[data-v-316b07bd]{padding-bottom:0}.weui-search-bar[data-v-316b07bd]{padding:0}.weui-search-bar__box[data-v-316b07bd]{background-color:#f6f6f6}.weui-search-bar__form[data-v-316b07bd]{padding-right:10px}.weui-search-bar__box[data-v-316b07bd]{border-radius:17px}.p10200[data-v-316b07bd]{padding:10px 10px 140px 20px}.letter-list[data-v-316b07bd]{position:fixed;top:80px;right:0;z-index:999;width:24px;font-size:11px;text-align:center;color:#999}.letter-list .letter[data-v-316b07bd]{padding:4px;line-height:1.3}.rlhc[data-v-316b07bd]{background:var(--color-ysd);border-radius:100%;color:#fff}.positionLetter[data-v-316b07bd]{position:fixed;right:40px;top:90px;width:47px;height:47px;opacity:1;background:#ccc;border-radius:50%;font-size:25px;font-weight:601;text-align:center;color:#fff;line-height:47px;z-index:9999}.loginOut[data-v-316b07bd]{margin-top:%?20?%}.btn[data-v-316b07bd]{width:unset!important}',""]),e.exports=t},"4eaf":function(e,t,a){"use strict";a("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("e9c4"),a("d3b7"),a("159b");var i=getApp(),o={data:function(){return{inputShowed:!1,inputVal:"",hotCity:[{id:1,name:"郑州"},{id:2,name:"上海"},{id:3,name:"昆山"},{id:4,name:"苏州"},{id:5,name:"无锡"},{id:6,name:"深圳"},{id:7,name:"南京"},{id:8,name:"东莞"},{id:9,name:"常州"}],hotCitySelect:-1,toView:"",from:"",cityList:[],letter:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],selectedQuanGuo:{name:"全国",shortName:"全国",checked:!0},selectedCityLocal:{name:"",shortName:"",checked:!1},selectedCity:{name:"",shortName:"",checked:!1},selectedCityTemp:{name:"",shortName:"",checked:!1},alpha:"",plShow:!1,pltop:70,selectedQuanGuoStorage:{name:"全国",shortName:"全国",checked:!0},selectedCityStorage:{name:"",shortName:"",checked:!1},selectedCityLocalStorage:{name:"",shortName:"",checked:!1},selectedCityTempStorage:{name:"",shortName:"",checked:!1},storeJobListSearchForm:"",searchCityParamStorage:""}},onLoad:function(e){console.log(e),e.from&&this.setData({from:e.from});try{var t=uni.getStorageSync("searchCityParamStorage");console.log("searchCityParamStorage======",t);var a=uni.getStorageSync("selectedCityTempParamStorage");console.log("selectedCityTempParamStorage======",a);var o=uni.getStorageSync("selectedQuanGuoStorage");o&&i.globalData.isNotEmptyCheck(o.name)&&(this.selectedQuanGuoStorage=uni.getStorageSync("selectedQuanGuoStorage"),console.log("selectedQuanGuoStorage======",this.selectedQuanGuoStorage),this.selectedCityStorage=uni.getStorageSync("selectedCityStorage"),console.log("selectedCityStorage======",this.selectedCityStorage),this.selectedCityLocalStorage=uni.getStorageSync("selectedCityLocalStorage"),console.log("selectedCityLocalStorage======",this.selectedCityLocalStorage),this.selectedCityTempStorage=uni.getStorageSync("selectedCityTempStorage"),console.log("selectedCityTempStorage======",this.selectedCityTempStorage)),t&&i.globalData.isNotEmptyCheck(t.name)?this.setData({selectedQuanGuo:JSON.parse(JSON.stringify(this.selectedQuanGuoStorage)),selectedCity:JSON.parse(JSON.stringify(this.selectedCityStorage)),selectedCityTemp:JSON.parse(JSON.stringify(this.selectedCityTempStorage))}):this.setData({selectedQuanGuo:this.selectedQuanGuo,selectedCityLocal:this.selectedCityLocal,selectedCity:this.selectedCity,selectedCityTemp:this.selectedCityTemp})}catch(c){console.log("CatchClause",c),console.log("CatchClause",c),console.log("获取缓存设置的查询职位列表参数错误:",c)}this.getAllCityLevel2()},onReady:function(){},onShow:function(){},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},methods:{leftMove:function(e){this.setData({toView:""})},handlerAlphaTap:function(e){console.log(e.target.dataset.item),this.setData({toView:e.target.dataset.item,alpha:e.target.dataset.item,plShow:!0})},touchEnd:function(e){this.setData({plShow:!1})},touchMove:function(e){console.log(e.changedTouches[0].clientY);var t=e.changedTouches[0].clientY,a=t-80;if(a>=0){var i=Math.ceil(a/22);if(1==i)this.setData({toView:"top",alpha:"查",plShow:!0});else if(2==i)this.setData({toView:"hot",alpha:"热",plShow:!0,pltop:92});else{var o=this.letter[i-3],c=22*(i-2);this.setData({toView:o,alpha:o,plShow:!0,pltop:92+c})}}},getLocation:function(){var e=this;i.globalData.isNotEmptyCheck(i.globalData.lng)&&i.globalData.isNotEmptyCheck(i.globalData.lat)?e.getCityNameByLatLng(i.globalData.lng,i.globalData.lat,1):uni.getSetting({success:function(t){console.log(t),t.authSetting["scope.userLocation"]?(uni.getLocation({type:"gcj02",success:function(t){console.log("获取位置"),console.log(t),i.globalData.lng=t.longitude,i.globalData.lat=t.latitude,e.getCityNameByLatLng(t.longitude,t.latitude,1)},fail:function(){}}),e.getCityNameByLatLng(i.globalData.lng,i.globalData.lat,1)):(console.log("11111111"),uni.openSetting({success:function(e){console.log(e.authSetting)}}))}})},selectQuanGuo:function(e){this.selectedQuanGuo.checked=!0,this.selectedCity.checked=!1,this.selectedCityLocal.checked=!1,this.selectedCityTemp.checked=!1,this.setData({selectedQuanGuo:this.selectedQuanGuo,selectedCity:this.selectedCity,selectedCityTemp:this.selectedCityTemp,selectedCityLocal:this.selectedCityLocal})},selectOld:function(e){this.clearAllChecked(),this.selectedCity.checked=!0,this.setData({selectedQuanGuo:this.selectedQuanGuo,selectedCity:this.selectedCity,selectedCityTemp:this.selectedCityTemp,selectedCityLocal:this.selectedCityLocal})},reset:function(e){this.clearAllChecked(),this.selectedQuanGuo.checked=!0,this.setAllSelected()},selectCity:function(e){var t=e.currentTarget.dataset.city;console.log(t),this.selectedCityLocal.checked=!1;this.selectedCity.id!=t.id&&(this.selectedCity.checked=!1),this.selectedCityTemp=t,this.selectedCityTemp.checked=!0,this.selectedQuanGuo.checked=!1,this.setData({selectedCity:this.selectedCity,selectedCityTemp:this.selectedCityTemp,selectedQuanGuo:this.selectedQuanGuo,selectedCityLocal:this.selectedCityLocal})},loginOut:function(){var e;this.selectedCityTemp.checked?(this.clearAllChecked(),this.selectedCityTemp.checked=!0,e=this.selectedCityTemp,this.selectedCity=this.selectedCityTemp):this.selectedQuanGuo.checked?(this.clearAllChecked(),this.selectedQuanGuo.checked=!0,e=this.selectedQuanGuo):this.selectedCity.checked?(this.clearAllChecked(),this.selectedCity.checked=!0,e=this.selectedCity):this.selectedCityLocal.checked&&(this.clearAllChecked(),this.selectedCityLocal.checked=!0,e=this.selectedCityLocal);try{uni.setStorageSync("selectedCityTempParamStorage",this.selectedCity),uni.setStorageSync("searchCityParamStorage",e),uni.setStorageSync("selectedQuanGuoStorage",this.selectedQuanGuo),uni.setStorageSync("selectedCityStorage",this.selectedCity),uni.setStorageSync("selectedCityLocalStorage",this.selectedCityLocal),uni.setStorageSync("selectedCityTempStorage",this.selectedCityTemp),uni.setStorageSync("FROMCITY",!0)}catch(i){console.log("CatchClause",i),console.log("CatchClause",i),console.log("index-设置查询职位列表参数错误",i)}if("search"==this.from){var t=getCurrentPages(),a=t[t.length-2];a.data.storeJobListSearchForm.cityName=e.name,a.setData({storeJobListSearchForm:a.data.storeJobListSearchForm,searchCityParamStorage:e}),uni.navigateBack({delta:1})}else{t=getCurrentPages(),a=t[t.length-2];a.data.storeJobListSearchForm.cityName=e.name,a.setData({storeJobListSearchForm:a.data.storeJobListSearchForm,searchCityParamStorage:e}),uni.navigateBack({delta:1})}},showInput:function(){this.setData({inputShowed:!0})},hideInput:function(){this.setData({inputVal:"",inputShowed:!1})},clearInput:function(){this.setData({inputVal:""})},inputTyping:function(e){this.setData({inputVal:e.detail.value})},clickHot:function(e){this.setData({toView:"hot"})},goTop:function(e){this.setData({toView:"top"})},chooseLetter:function(e){console.log(e.target.dataset.item),this.setData({toView:e.target.dataset.item})},getAllCityLevel2:function(){var e=this;uni.request({url:i.globalData.ip+"/city/getAllCityLevel2",data:{},header:i.globalData.header,method:"GET",success:function(t){console.log(t),e.setData({cityList:t.data.data}),console.log(e.cityList),i.globalData.isNotEmptyCheck(i.globalData.lng)&&i.globalData.isNotEmptyCheck(i.globalData.lat)?e.getCityNameByLatLng(i.globalData.lng,i.globalData.lat,0):uni.getLocation({type:"gcj02",success:function(t){console.log(t),i.globalData.lng=t.longitude,i.globalData.lat=t.latitude,e.getCityNameByLatLng(t.longitude,t.latitude,0)}})}})},getCityNameByLatLng:function(e,t,a){var o=this;uni.request({url:i.globalData.ip+"/location/getCityNameByLatLng",data:{lng:e,lat:t},header:i.globalData.headers,method:"GET",success:function(e){if(console.log(e),200==e.data.status){var t=e.data.data;o.cityList.forEach((function(e){e.list.forEach((function(e){e.name==t&&(1==a||o.selectedCityLocalStorage.checked?(o.clearAllChecked(),o.selectedCityLocal=e,o.selectedCityLocal.checked=!0,o.setAllSelected()):(o.selectedCityLocal=e,o.selectedCityLocal.checked=!1,o.setAllSelected()))}))}))}}})},clearAllChecked:function(){this.selectedQuanGuo.checked=!1,this.selectedCity.checked=!1,this.selectedCityLocal.checked=!1,this.selectedCityTemp.checked=!1},setAllSelected:function(){this.setData({selectedQuanGuo:this.selectedQuanGuo,selectedCity:this.selectedCity,selectedCityTemp:this.selectedCityTemp,selectedCityLocal:this.selectedCityLocal})}}};t.default=o},"99d9":function(e,t,a){"use strict";a.r(t);var i=a("4eaf"),o=a.n(i);for(var c in i)["default"].indexOf(c)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(c);t["default"]=o.a},aaaa:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",[e.plShow?a("v-uni-view",{staticClass:"positionLetter",style:"top:"+e.pltop+"px"},[e._v(e._s(e.alpha))]):e._e(),a("v-uni-scroll-view",{staticStyle:{height:"100vh"},attrs:{"scroll-y":!0,"scroll-into-view":e.toView},on:{scroll:function(t){arguments[0]=t=e.$handleEvent(t),e.leftMove.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"p10200",attrs:{id:"top"}},[a("v-uni-view",{staticClass:"headTxt"},[e._v("当前城市")]),a("v-uni-view",{staticClass:"container"},[a("v-uni-view",{class:"item "+(e.selectedQuanGuo.checked?"active":""),on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selectQuanGuo.apply(void 0,arguments)}}},[e._v("全国")]),e.selectedCityLocal.shortName?a("v-uni-view",{class:"item "+(e.selectedCityLocal.checked?"active":""),on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getLocation.apply(void 0,arguments)}}},[a("i",{staticClass:"iconfont icon-dizhi mr8"}),e._v(e._s(e.selectedCityLocal.shortName))]):e._e(),""!=e.selectedCity.name&&null!=e.selectedCity.name&&e.selectedCity.name!=e.selectedCityLocal.name?a("v-uni-view",{class:"item "+(e.selectedCity.checked?"active":""),on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selectOld.apply(void 0,arguments)}}},[e._v(e._s(e.selectedCity.shortName))]):e._e()],1),e._l(e.cityList,(function(t,i){return[a("v-uni-view",{key:i+"_0",staticClass:"headTxt",attrs:{id:"热门城市"==t.name?"hot":t.name}},[e._v(e._s(t.name))]),a("v-uni-view",{key:i+"_1",staticClass:"container"},e._l(t.list,(function(t,i){return a("v-uni-view",{key:i,class:"item "+(t.name==e.selectedCityTemp.name&&e.selectedCityTemp.checked?"active":""),attrs:{"data-city":t},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selectCity.apply(void 0,arguments)}}},[e._v(e._s(t.shortName))])})),1)]}))],2)],1),a("v-uni-scroll-view",{staticClass:"letter-list",attrs:{enhanced:!0},on:{touchstart:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t),e.handlerAlphaTap.apply(void 0,arguments)},touchmove:function(t){arguments[0]=t=e.$handleEvent(t),e.touchMove.apply(void 0,arguments)},touchend:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t),e.touchEnd.apply(void 0,arguments)}}},[a("v-uni-view",{class:"letter "+("top"==e.toView?"rlhc":""),attrs:{"hover-class":"rlhc"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goTop.apply(void 0,arguments)}}},[a("i",{staticClass:"iconfont icon-sousuo f12"})]),a("v-uni-view",{class:"letter "+("hot"==e.toView?"rlhc":""),attrs:{"hover-class":"rlhc"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clickHot.apply(void 0,arguments)}}},[e._v("热")]),e._l(e.letter,(function(t,i){return a("v-uni-view",{key:i,class:"letter "+(e.toView==t?"rlhc":""),attrs:{"hover-class":"rlhc","data-item":t},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.chooseLetter.apply(void 0,arguments)}}},[e._v(e._s(t))])}))],2),a("v-uni-view",{staticClass:"btmFix"},[a("v-uni-view",{staticClass:"display-flex"},[a("v-uni-view",{staticClass:"flex-1 pl20 pr10"},[a("v-uni-button",{staticClass:"resetBtn btn",staticStyle:{"font-weight":"400"},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.reset.apply(void 0,arguments)}}},[e._v("重置")])],1),a("v-uni-view",{staticClass:"flex-1 pl10 pr20"},[a("v-uni-button",{staticClass:"loginOut btn",staticStyle:{"font-weight":"400"},attrs:{type:"primary"},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.loginOut.apply(void 0,arguments)}}},[e._v("确定")])],1)],1)],1)],1)},o=[]},be38:function(e,t,a){"use strict";var i=a("0b07"),o=a.n(i);o.a},ffb5:function(e,t,a){"use strict";a.r(t);var i=a("aaaa"),o=a("99d9");for(var c in o)["default"].indexOf(c)<0&&function(e){a.d(t,e,(function(){return o[e]}))}(c);a("be38");var l=a("f0c5"),s=Object(l["a"])(o["default"],i["b"],i["c"],!1,null,"316b07bd",null,!1,i["a"],void 0);t["default"]=s.exports}}]);