mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-09 15:52:40 +08:00
转移"搜索所有资源"到设置页面
This commit is contained in:
@@ -26,9 +26,6 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="zy-checkbox">
|
||||
<input type="checkbox" v-model="searchAllSites" class="search-all-check-input" > 搜索所有资源
|
||||
</div>
|
||||
</div>
|
||||
<div class="body zy-scroll" infinite-wrapper>
|
||||
<div class="body-box" v-show="!show.find">
|
||||
@@ -138,8 +135,7 @@ export default {
|
||||
infiniteId: +new Date(),
|
||||
searchList: [],
|
||||
searchTxt: '',
|
||||
searchContents: [],
|
||||
searchAllSites: false
|
||||
searchContents: []
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -427,7 +423,7 @@ export default {
|
||||
},
|
||||
searchEvent (wd) {
|
||||
var sites = []
|
||||
if (this.searchAllSites) {
|
||||
if (this.setting.searchAllSites) {
|
||||
sites.push(...this.sites)
|
||||
} else {
|
||||
sites.push(this.site)
|
||||
|
||||
@@ -66,6 +66,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='site'>
|
||||
<div class="title">搜索</div>
|
||||
<div class="zy-checkbox">
|
||||
<input type="checkbox" v-model="setting.searchAllSites"> 搜索所有资源
|
||||
</div>
|
||||
</div>
|
||||
<div class="theme">
|
||||
<div class="title">主题</div>
|
||||
<div class="theme-box">
|
||||
@@ -135,6 +141,7 @@ export default {
|
||||
site: '',
|
||||
theme: '',
|
||||
shortcut: true,
|
||||
searchAllSites: true,
|
||||
view: 'picture'
|
||||
}
|
||||
}
|
||||
@@ -161,7 +168,8 @@ export default {
|
||||
site: res.site,
|
||||
theme: res.theme,
|
||||
shortcut: res.shortcut,
|
||||
view: res.view
|
||||
view: res.view,
|
||||
searchAllSites: res.searchAllSites
|
||||
}
|
||||
this.setting = this.d
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user