This commit is contained in:
francis-fh
2026-07-15 23:55:48 +08:00
parent 805122c23f
commit 3980aecd56
2 changed files with 8 additions and 2 deletions

View File

@@ -46,7 +46,7 @@
:class="{ 'hidden-height': shouldHideTop }"
>
<view class="container-search" v-if="shouldShowJobSeekerContent">
<view class="search-input button-click" @click="navTo('/pages/search/search')">
<view class="search-input button-click" @click="navTo('/pages/search/search', { query: { regionCode: selectedCity.code, regionName: selectedCity.name } })">
<uni-icons class="iconsearch" color="#666666" type="search" size="18"></uni-icons>
<text class="inpute">职位名称薪资要求等</text>
</view>

View File

@@ -79,7 +79,13 @@ onLoad((query) => {
if (arr) {
historyList.value = uni.getStorageSync('searchList');
}
const {job} = query;
const {job, regionCode, regionName} = query;
if (regionCode) {
pageState.search.regionCode = regionCode;
}
if (regionName) {
pageState.search.regionName = regionName;
}
if (job) {
searchValue.value = job;
searchBtn();