称重,默认选择营业时间
This commit is contained in:
@@ -862,7 +862,6 @@
|
||||
// 称重
|
||||
const refweighitem = ref(null)
|
||||
const tapweigh = (foodsindex, index) => {
|
||||
console.log(foodsindex, index)
|
||||
const goods = data.tabbar[index].foods[foodsindex]
|
||||
refweighitem.value.open(foodsindex, index, goods)
|
||||
}
|
||||
@@ -990,7 +989,6 @@
|
||||
}
|
||||
|
||||
function searchGoodsUpdate(goodsItem, goodsIndex, isAdd) {
|
||||
console.log(goodsItem.goodsIndex, goodsItem.index, isAdd, goodsIndex, 111111)
|
||||
goodsUpdate(goodsItem.goodsIndex, goodsItem.index, isAdd, goodsIndex)
|
||||
}
|
||||
|
||||
@@ -1015,10 +1013,6 @@
|
||||
const productId = $goods.id
|
||||
const skuId = $goods.specList[0].id
|
||||
let suit = $goods.specList[0].suit || 1
|
||||
// 不影响之前的代码 称重suit单独处理
|
||||
if ($goods.type == 'weigh' && showCurrentInput) {
|
||||
suit = showCurrentInput
|
||||
}
|
||||
if (goodsInCarIndex !== -1) {
|
||||
//更新
|
||||
const carGoods = cars[goodsInCarIndex]
|
||||
@@ -1050,6 +1044,10 @@
|
||||
$goods.chooseNumber = number
|
||||
setSearchGoods(searchGoodsIndex, number)
|
||||
} else {
|
||||
// 不影响之前的代码 称重suit单独处理
|
||||
if ($goods.type == 'weigh' && showCurrentInput) {
|
||||
suit = showCurrentInput
|
||||
}
|
||||
// 套餐和单规格
|
||||
if ($goods.groupType != 1) {
|
||||
//增加
|
||||
@@ -1060,7 +1058,7 @@
|
||||
skuId
|
||||
})
|
||||
infoBox.showToast('添加成功')
|
||||
$goods.chooseNumber = num
|
||||
$goods.chooseNumber = Number(num)
|
||||
cars.push(cartGoods)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user