Commit 9fdcc826 by 张立顺

fix bug修复

1 parent c8f1df5c
...@@ -758,6 +758,8 @@ export default { ...@@ -758,6 +758,8 @@ export default {
// goodsSpecificationNameList 商品 // goodsSpecificationNameList 商品
res = res.data res = res.data
console.log(res, 'res') console.log(res, 'res')
if (res.specificationType == 2) {
console.log(res, 'res')
goodType = res.goodsSpecificationNameList.map((item, index) => { goodType = res.goodsSpecificationNameList.map((item, index) => {
item.name = item.specificationName item.name = item.specificationName
item.propertyList = item.goodsSpecificationValueList.map((el, elIndex) => { item.propertyList = item.goodsSpecificationValueList.map((el, elIndex) => {
...@@ -799,6 +801,7 @@ export default { ...@@ -799,6 +801,7 @@ export default {
// 获取所有的规格 // 获取所有的规格
this.getShopGoodsType() this.getShopGoodsType()
this.initGoodType() this.initGoodType()
}
this.goodsInfo = res this.goodsInfo = res
this.tableInfo = res?.upgradeGoodsList?.merchantGoodsInfoList this.tableInfo = res?.upgradeGoodsList?.merchantGoodsInfoList
...@@ -867,6 +870,7 @@ export default { ...@@ -867,6 +870,7 @@ export default {
// 判断是否有值 // 判断是否有值
params.upgradeGoodsId && params.upgradeGoodsId &&
this.$apis.purchaseShopping.shoppingCarAdd(params).then(res => { this.$apis.purchaseShopping.shoppingCarAdd(params).then(res => {
console.log(res, 'res')
this.$message.success('加入购物车成功') this.$message.success('加入购物车成功')
this.$EventBus.$emit('updateCarShopping') this.$EventBus.$emit('updateCarShopping')
this.dialogShow = false this.dialogShow = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!