|
@@ -18,7 +18,7 @@
|
|
import RecommendProjectCard from '@/views/article/components/RecommendProjectCard.vue'
|
|
import RecommendProjectCard from '@/views/article/components/RecommendProjectCard.vue'
|
|
import { mapState } from 'vuex'
|
|
import { mapState } from 'vuex'
|
|
import { LINKS } from '@/data'
|
|
import { LINKS } from '@/data'
|
|
-import { openAppOrWxPage } from '@/utils/'
|
|
|
|
|
|
+import { openAppOrWxPage, calcNotExactTime } from '@/utils/'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'ContentBusinessRecommendProject',
|
|
name: 'ContentBusinessRecommendProject',
|
|
@@ -64,11 +64,13 @@ export default {
|
|
},
|
|
},
|
|
formatFilter() {
|
|
formatFilter() {
|
|
const searchFilter = this.recommendMap.search || {}
|
|
const searchFilter = this.recommendMap.search || {}
|
|
|
|
+ const lately90 = calcNotExactTime('lately90')
|
|
|
|
+ lately90.exact = 'exact'
|
|
return {
|
|
return {
|
|
- keywords: searchFilter?.keywords?.split(',') || [],
|
|
|
|
- buyerClass: searchFilter?.buyerClass ? [searchFilter?.buyerClass] : [],
|
|
|
|
|
|
+ keywords: searchFilter?.keywords?.split(',') || [],
|
|
|
|
+ buyerClass: searchFilter?.buyerclass ? [searchFilter?.buyerclass] : [],
|
|
area: searchFilter?.regionMap,
|
|
area: searchFilter?.regionMap,
|
|
- publishTime: searchFilter?.publishtime
|
|
|
|
|
|
+ publishTime: lately90
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async toMore() {
|
|
async toMore() {
|
|
@@ -78,12 +80,14 @@ export default {
|
|
if (this.beforeLeavePage) {
|
|
if (this.beforeLeavePage) {
|
|
await this.beforeLeavePage()
|
|
await this.beforeLeavePage()
|
|
}
|
|
}
|
|
|
|
+ const filters = this.formatFilter()
|
|
|
|
+ this.$storage.set('bidding-search-filters-restore', filters, {
|
|
|
|
+ storage: sessionStorage,
|
|
|
|
+ login: true
|
|
|
|
+ })
|
|
// 带入筛选条件
|
|
// 带入筛选条件
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- name: 'search-bidding',
|
|
|
|
- params: {
|
|
|
|
- filters: this.formatFilter()
|
|
|
|
- },
|
|
|
|
|
|
+ path: '/search/result/bidding',
|
|
query: {
|
|
query: {
|
|
nocache: 1,
|
|
nocache: 1,
|
|
searchGroup: 2
|
|
searchGroup: 2
|