shish 3 лет назад
Родитель
Сommit
1a9ecc67b0
1 измененных файлов с 43 добавлено и 44 удалено
  1. 43 44
      ghsApp/src/mixins/product.js

+ 43 - 44
ghsApp/src/mixins/product.js

@@ -252,51 +252,50 @@ export default {
 			if(this.py.length <=1){
 				return
 			}
-			if(notChinese){
-				//红色粉色花材太多,搜索时会卡住,所以设置输入第三个字母时才搜索
-				if(this.py.indexOf('fs') == 0 && this.py.length <= 2){
-					return
-				}
-				if(this.py.indexOf('粉色') == 0 && this.py.length <= 2){
-					return
-				}
-				if(this.py.indexOf('hs') == 0 && this.py.length <= 2){
-					return
-				}
-				if(this.py.indexOf('红色') == 0 && this.py.length <= 2){
-					return
-				}
-				if(this.py.indexOf('zs') == 0 && this.py.length <= 2){
-					return
-				}
-				if(this.py.indexOf('紫色') == 0 && this.py.length <= 2){
-					return
-				}
-				if(this.py.indexOf('ls') == 0 && this.py.length <= 2){
-					return
-				}
-				if(this.py.indexOf('绿色') == 0 && this.py.length <= 2){
-					return
-				}
-				if(this.py.indexOf('bs') == 0 && this.py.length <= 2){
-					return
-				}
-				if(this.py.indexOf('白色') == 0 && this.py.length <= 2){
-					return
-				}
-				if(this.py.indexOf('cs') == 0 && this.py.length <= 2){
-					return
-				}
-				if(this.py.indexOf('橙色') == 0 && this.py.length <= 2){
-					return
-				}
-				if(this.py.indexOf('银色') == 0 && this.py.length <= 2){
-					return
-				}
-				if(this.py.indexOf('yj') == 0 && this.py.length <= 2){
-					return
-				}
+			//颜色花材太多,搜索时会卡住,所以设置输入第三个字母时才搜索
+			if(this.py.indexOf('fs') == 0 && this.py.length <= 2){
+				return
+			}
+			if(this.py.indexOf('粉色') == 0 && this.py.length <= 2){
+				return
+			}
+			if(this.py.indexOf('hs') == 0 && this.py.length <= 2){
+				return
+			}
+			if(this.py.indexOf('红色') == 0 && this.py.length <= 2){
+				return
+			}
+			if(this.py.indexOf('zs') == 0 && this.py.length <= 2){
+				return
+			}
+			if(this.py.indexOf('紫色') == 0 && this.py.length <= 2){
+				return
+			}
+			if(this.py.indexOf('ls') == 0 && this.py.length <= 2){
+				return
+			}
+			if(this.py.indexOf('绿色') == 0 && this.py.length <= 2){
+				return
+			}
+			if(this.py.indexOf('bs') == 0 && this.py.length <= 2){
+				return
+			}
+			if(this.py.indexOf('白色') == 0 && this.py.length <= 2){
+				return
+			}
+			if(this.py.indexOf('cs') == 0 && this.py.length <= 2){
+				return
 			}
+			if(this.py.indexOf('橙色') == 0 && this.py.length <= 2){
+				return
+			}
+			if(this.py.indexOf('银色') == 0 && this.py.length <= 2){
+				return
+			}
+			if(this.py.indexOf('yj') == 0 && this.py.length <= 2){
+				return
+			}
+
 			//涉及记住花材的代码和流程,请全项目搜索关键词remember_item
 			//将已选的花材按productId键名组合
 			let selectListData = []