From cf2da3b2a63840888815c6a81cbd7948faf93533 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期一, 08 六月 2026 17:41:15 +0800
Subject: [PATCH] aaa
---
h5/pages/index_2/index.vue | 16 +++++-----------
1 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/h5/pages/index_2/index.vue b/h5/pages/index_2/index.vue
index 9e1ca04..aed882f 100644
--- a/h5/pages/index_2/index.vue
+++ b/h5/pages/index_2/index.vue
@@ -289,6 +289,7 @@
import searchShopList from '@/components/searchShopList.vue'
import { categoryList, goodsList, brandList, h5Image, logout, getByLoginNew, listForH5 } from '@/apis/index.js'
import { ANCHOR_PAGE_V3, getAnchorHomePath, normalizeAnchorPageVersion } from '@/utils/anchorHome.js'
+ import { matchKeyword } from '@/utils/goodsFilter.js'
import { mapState } from 'vuex'
export default {
data() {
@@ -358,7 +359,8 @@
title: '',
fontColor: 'rgba(255, 220, 108, 1)',
- fontColorIndex: ''
+ fontColorIndex: '',
+ configuration: null
}
},
components: { bigImg, search, searchShopList },
@@ -573,20 +575,12 @@
},
// 宸查�夊晢鍝佸垪琛ㄦ悳绱㈠搧鐗�
searchBrand(e, item) {
- item.brandSearchList = item.brandList.filter(item => {
- if (item.name.indexOf(e.detail.value) > -1) {
- return item
- }
- })
+ item.brandSearchList = item.brandList.filter(brand => matchKeyword(brand, e.detail.value))
this.$forceUpdate()
},
// 宸查�夊晢鍝佸垪琛ㄦ悳绱㈠瀷鍙�
searchModel(e, item) {
- item.modelSearchList = item.xhData.filter(item => {
- if (item.name.indexOf(e.detail.value) !== -1) {
- return item
- }
- })
+ item.modelSearchList = item.xhData.filter(goods => matchKeyword(goods, e.detail.value))
this.$forceUpdate()
},
// 鑾峰彇鎼滅储鐨勬爣棰�
--
Gitblit v1.9.3