mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-18 00:15:54 +08:00
fix: 🐛 后端修改es商品返回数据字段,前端同步
This commit is contained in:
@@ -434,7 +434,7 @@ export default {
|
|||||||
async getGoodsData() {
|
async getGoodsData() {
|
||||||
let res = await getGoodsList(this.goodsParams);
|
let res = await getGoodsList(this.goodsParams);
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
this.goodsList.push(...res.data.result.content);
|
this.goodsList.push(...res.data.result.records);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
// #TODO
|
// #TODO
|
||||||
let goodsList = await getGoodsList(this.params);
|
let goodsList = await getGoodsList(this.params);
|
||||||
if (goodsList.data.success) {
|
if (goodsList.data.success) {
|
||||||
this.goodsList.push(...goodsList.data.result.content);
|
this.goodsList.push(...goodsList.data.result.records);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ export default {
|
|||||||
const res = await getGoodsList(this.params);
|
const res = await getGoodsList(this.params);
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
this.goodsResult = res.data.result
|
this.goodsResult = res.data.result
|
||||||
const result = res.data.result.content.map(item=>item.content)
|
const result = res.data.result.records
|
||||||
this.goodsData.push(...result);
|
this.goodsData.push(...result);
|
||||||
console.log(this.goodsData)
|
console.log(this.goodsData)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user