| | |
| | | <div class="home-header"> |
| | | <div class="home-searchbar-wrapper"> |
| | | <div class="city-btn-wrapper"> |
| | | <div class="city-btn" @click="goCitySelect"> |
| | | <div class="city-btn"> |
| | | <img :src="IconLocaltion" class="city-btn-icon" /> |
| | | <div class="city-btn-text">{{ locationCity }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="reset-localtion">重新定位</div> |
| | | <div class="reset-localtion" @click="resetLocation">重新定位</div> |
| | | </div> |
| | | <div class="home-banner-wrapper"> |
| | | <nut-swiper :auto-play="3000"> |
| | |
| | | import HomeQueryMenuView from './HomeQueryMenuView.vue'; |
| | | import HomeQueryPositionMenuView from './HomeQueryPositionMenuView.vue'; |
| | | import IconLocaltion from '@/assets/home/icon-localtion.png'; |
| | | import { setLocationCity } from '@/utils'; |
| | | |
| | | const { locationCity } = useUser(); |
| | | |
| | |
| | | url: `${RouterPath.flexJobDetail}?id=${item.id}`, |
| | | }); |
| | | } |
| | | |
| | | async function resetLocation() { |
| | | try { |
| | | await setLocationCity(); |
| | | } catch (error) {} |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |