1
This commit is contained in:
@ -183,9 +183,9 @@ export default {
|
||||
}
|
||||
getGoodsListData(params)
|
||||
.then((res) => {
|
||||
const list = res?.data || [];
|
||||
this.goodsList =
|
||||
this.goodPage === 1 ? list : [...this.goodsList, ...list];
|
||||
const list = res?.data.data.products || [];
|
||||
this.goodsList = list;
|
||||
console.log(this.goodsList,'???')
|
||||
this.goodsTotal = res?.count || 0;
|
||||
})
|
||||
.finally(() => {
|
||||
@ -328,13 +328,13 @@ export default {
|
||||
res.eventChannel.emit("createOrder", {
|
||||
goodList: [{
|
||||
...this.goodsData,
|
||||
goods_id:goodsData.product_id,
|
||||
price_id:goodsData.prices[0].price_id,
|
||||
goods_id:goodsData.product.out_id,
|
||||
// price_id:goodsData.prices[0].price_id,
|
||||
number:1,
|
||||
goods_name: goodsData.product_name,
|
||||
price_name: goodsData?.product_name,
|
||||
goods_price: goodsData.prices[0].actual_price,
|
||||
product_pic:goodsData.product_pic
|
||||
goods_name: goodsData.product.product_name,
|
||||
price_name: goodsData?.product.product_name,
|
||||
goods_price: goodsData.product.product_type,
|
||||
product_pic:goodsData.product.product_type
|
||||
}, ],
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user