|
|
@@ -521,6 +521,8 @@ export default {
|
|
|
entryCompId: { type: [String, Number], default: '' },
|
|
|
entryOrderType: { type: [String, Number], default: '' },
|
|
|
entryIsHotDian: { type: [String, Number], default: '' },
|
|
|
+ /** 搜索入口关键词 */
|
|
|
+ entrySearch: { type: [String, Number], default: '' },
|
|
|
/** 列表已全部加载后,滑到末尾可循环回第一条(用于 reel 详情页等有限列表) */
|
|
|
loopAtEnd: { type: Boolean, default: false }
|
|
|
},
|
|
|
@@ -748,10 +750,12 @@ export default {
|
|
|
const listType = this.entryListType
|
|
|
const userNo = this.entryUserNo
|
|
|
const compId = this.entryCompId
|
|
|
+ const search = this.entrySearch
|
|
|
if (compId != null && compId !== '') return true
|
|
|
if (findId != null && findId !== '') return true
|
|
|
if (labelId != null && labelId !== '') return true
|
|
|
if (listType != null && listType !== '' && userNo != null && userNo !== '') return true
|
|
|
+ if (search != null && String(search) !== '') return true
|
|
|
return false
|
|
|
},
|
|
|
tryEntryBootstrap(force = false) {
|
|
|
@@ -767,7 +771,8 @@ export default {
|
|
|
page: Number(this.entryPage) || 1,
|
|
|
compId: this.entryCompId,
|
|
|
orderType: this.entryOrderType,
|
|
|
- isHotDian: this.entryIsHotDian
|
|
|
+ isHotDian: this.entryIsHotDian,
|
|
|
+ search: this.entrySearch
|
|
|
})
|
|
|
},
|
|
|
clipKey(clip, index) {
|
|
|
@@ -1653,7 +1658,8 @@ export default {
|
|
|
page = 1,
|
|
|
compId = '',
|
|
|
orderType = '',
|
|
|
- isHotDian = ''
|
|
|
+ isHotDian = '',
|
|
|
+ search = ''
|
|
|
} = {}) {
|
|
|
const filters = {}
|
|
|
const hasComp = compId != null && String(compId) !== ''
|
|
|
@@ -1668,6 +1674,7 @@ export default {
|
|
|
}
|
|
|
if (!hasComp && orderType != null && orderType !== '') filters.order_type = orderType
|
|
|
if (!hasComp && isHotDian != null && isHotDian !== '') filters.is_hot_dian = isHotDian
|
|
|
+ if (!hasComp && search != null && String(search) !== '') filters.search = String(search)
|
|
|
const startPage = Number(page) || 1
|
|
|
|
|
|
// find_id 仅用于首屏定位,不写入 listFilters,避免分页一直带 find_id
|