商品详情.评价页面.购物车页面.首页轮播图.搜索功能.分类接口

This commit is contained in:
落日晚风
2023-10-31 17:41:57 +08:00
parent 6a327ac0e7
commit f4c1b30f2e
14 changed files with 496 additions and 470 deletions
@@ -46,10 +46,10 @@
async function getComment(id) {
const { data } = await sheep.$api.goods.comment(id, {
list_rows: 3,
});
console.log(data)
});
const {data:datas} = await sheep.$api.goods.comment2(id);
state.commentList = data;
state.total = data.total;
state.total = datas.total;
}
onBeforeMount(() => {
getComment(props.goodsId);