shish 4 лет назад
Родитель
Сommit
e0d29d15bd
2 измененных файлов с 25 добавлено и 0 удалено
  1. 9 0
      ghsApp/src/mixins/product.js
  2. 16 0
      hdApp/src/mixins/product.js

+ 9 - 0
ghsApp/src/mixins/product.js

@@ -657,6 +657,15 @@ export default {
 				if(this.py.indexOf('hs') == 0 && this.py.length <= 2){
 					return
 				}
+				if(this.py.indexOf('zs') == 0 && this.py.length <= 2){
+					return
+				}
+				if(this.py.indexOf('ls') == 0 && this.py.length <= 2){
+					return
+				}
+				if(this.py.indexOf('bs') == 0 && this.py.length <= 2){
+					return
+				}
 				let commonChildList = [];
 				list.forEach(ele => {
 					//过滤常用

+ 16 - 0
hdApp/src/mixins/product.js

@@ -1039,6 +1039,22 @@ export default {
 				if(this.py.length <=1){
 					return
 				}
+				//红色粉色紫色绿色白色花材太多,搜索时会卡住,所以设置输入第三个字母时才搜索
+				if(this.py.indexOf('fs') == 0 && this.py.length <= 2){
+					return
+				}
+				if(this.py.indexOf('hs') == 0 && this.py.length <= 2){
+					return
+				}
+				if(this.py.indexOf('zs') == 0 && this.py.length <= 2){
+					return
+				}
+				if(this.py.indexOf('ls') == 0 && this.py.length <= 2){
+					return
+				}
+				if(this.py.indexOf('bs') == 0 && this.py.length <= 2){
+					return
+				}
 
 				clearInterval(this.timeFun)
 				let commonChildList = [];