Przeglądaj źródła

多颜色优化

shish 6 miesięcy temu
rodzic
commit
0c34500d0d
1 zmienionych plików z 6 dodań i 8 usunięć
  1. 6 8
      ghsPad/src/mixins/product.js

+ 6 - 8
ghsPad/src/mixins/product.js

@@ -253,7 +253,6 @@ export default {
 					list.splice(index,1)
 					//删除当前花材的多颜色
 					this.delCurrentXj(item)
-					
 				}else{
 					list[index].currentNum = item.currentNum
 					list[index].unitPrice = item.unitPrice
@@ -273,17 +272,16 @@ export default {
 			if(item.variety == 0){
 				return true
 			}
-			console.log('item',item)
             let saveInfo = uni.getStorageSync("xj")
             const ptItemId = item.itemId
             if (!this.$util.isEmpty(saveInfo)) {
-                saveInfo.forEach((colorItem, colorIndex) => {
-                    if (colorItem.ptItemId == ptItemId) {
-                        saveInfo.splice(colorIndex, 1)
-                    }
-                })
+				saveInfo.forEach((colorItem, colorIndex) => {
+					if (colorItem.ptItemId == ptItemId) {
+						saveInfo.splice(colorIndex, 1)
+					}
+				})
 				uni.setStorageSync("xj", saveInfo)
-            } 
+            }
 		},
 		//显示可以修改花材的弹框
 		showAddModelFn(info) {