|
@@ -81,10 +81,11 @@ export default {
|
|
|
methods: {
|
|
|
// 过度是否结束
|
|
|
onTransitionEnd(block) {
|
|
|
+ console.log(block.isSliding, "过度是否结束", this.overView.length, "overView====原数组", this.keywordList.length, "keywordList====搜索数组", this.otherList.length, "otherList====");
|
|
|
if (block.isSliding) {
|
|
|
block.isSliding = false;
|
|
|
if (this.isBlockInArray(block, this.otherList)) {
|
|
|
- this.otherList = this.otherList.filter(b => b.catalog !== block.catalog || b.name !== block.name);
|
|
|
+ this.otherList = this.otherList.filter(b => b.catalog !== block.catalog || b.name !== block.name || b.target !== block.target || b.moa !== block.moa);
|
|
|
this.keywordList.push(block);
|
|
|
block.styleOpacity = "0"
|
|
|
setTimeout(() => {
|
|
@@ -105,6 +106,10 @@ export default {
|
|
|
return array.some(b => b.catalog === block.catalog || b.name === block.name || b.target === block.target || b.moa === block.moa);
|
|
|
},
|
|
|
search() {
|
|
|
+ let list = []
|
|
|
+ list.concat(this.overView)
|
|
|
+ this.otherList = this.overView
|
|
|
+ console.log(this.overView.length, "overView====原数组", this.keywordList.length, "keywordList====搜索数组", this.otherList.length, "otherList====");
|
|
|
// 回到顶部
|
|
|
document.body.scrollTop = 0;
|
|
|
const keyword = this.keyword.trim().toLowerCase();
|