11
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
:class="{ 'hidden-height': shouldHideTop }"
|
:class="{ 'hidden-height': shouldHideTop }"
|
||||||
>
|
>
|
||||||
<view class="container-search" v-if="shouldShowJobSeekerContent">
|
<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>
|
<uni-icons class="iconsearch" color="#666666" type="search" size="18"></uni-icons>
|
||||||
<text class="inpute">职位名称、薪资要求等</text>
|
<text class="inpute">职位名称、薪资要求等</text>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -79,7 +79,13 @@ onLoad((query) => {
|
|||||||
if (arr) {
|
if (arr) {
|
||||||
historyList.value = uni.getStorageSync('searchList');
|
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) {
|
if (job) {
|
||||||
searchValue.value = job;
|
searchValue.value = job;
|
||||||
searchBtn();
|
searchBtn();
|
||||||
|
|||||||
Reference in New Issue
Block a user