|
@@ -16,7 +16,10 @@ function noPower() {
|
|
$bus.$emit('search:filter:no-power')
|
|
$bus.$emit('search:filter:no-power')
|
|
}
|
|
}
|
|
|
|
|
|
-function beforeChangeHandle ($event, char) {
|
|
|
|
|
|
+function beforeChangeHandle ($event, char, isLogin) {
|
|
|
|
+ if(isLogin) {
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
// 发布时间
|
|
// 发布时间
|
|
if(char === 'publishTime') {
|
|
if(char === 'publishTime') {
|
|
if($event.value === 'sinceLastYear') {
|
|
if($event.value === 'sinceLastYear') {
|
|
@@ -57,6 +60,7 @@ const moreFiltersNeedVipKeyList = [
|
|
|
|
|
|
|
|
|
|
function createSearchBidBaseSchema(conf = {}) {
|
|
function createSearchBidBaseSchema(conf = {}) {
|
|
|
|
+ const isLogin = conf.isLogin || false
|
|
const vipUser = conf.vipUser || false
|
|
const vipUser = conf.vipUser || false
|
|
const oldUser = conf.oldUser || false
|
|
const oldUser = conf.oldUser || false
|
|
const showVip = conf.showVip || false
|
|
const showVip = conf.showVip || false
|
|
@@ -71,7 +75,7 @@ function createSearchBidBaseSchema(conf = {}) {
|
|
vipModuleShow: showVip,
|
|
vipModuleShow: showVip,
|
|
freeConf: {
|
|
freeConf: {
|
|
beforeChange ($event) {
|
|
beforeChange ($event) {
|
|
- return beforeChangeHandle($event, 'publishTime')
|
|
|
|
|
|
+ return beforeChangeHandle($event, 'publishTime', isLogin)
|
|
},
|
|
},
|
|
options: ['lately7', 'lately30', 'sinceLastYear'],
|
|
options: ['lately7', 'lately30', 'sinceLastYear'],
|
|
},
|
|
},
|
|
@@ -101,7 +105,7 @@ function createSearchBidBaseSchema(conf = {}) {
|
|
options: defaultScopeOptions,
|
|
options: defaultScopeOptions,
|
|
freeConf: {
|
|
freeConf: {
|
|
beforeChange($event) {
|
|
beforeChange($event) {
|
|
- return beforeChangeHandle($event, 'selectType')
|
|
|
|
|
|
+ return beforeChangeHandle($event, 'selectType', isLogin)
|
|
},
|
|
},
|
|
options: freeOptions,
|
|
options: freeOptions,
|
|
},
|
|
},
|
|
@@ -152,7 +156,7 @@ function createSearchBidBaseSchema(conf = {}) {
|
|
selectorType: 'line',
|
|
selectorType: 'line',
|
|
showDataType: infoType,
|
|
showDataType: infoType,
|
|
beforeChange ($event) {
|
|
beforeChange ($event) {
|
|
- return beforeChangeHandle($event, 'subtype')
|
|
|
|
|
|
+ return beforeChangeHandle($event, 'subtype', isLogin)
|
|
},
|
|
},
|
|
},
|
|
},
|
|
hooks: {}
|
|
hooks: {}
|