积分接口联调
This commit is contained in:
@@ -116,11 +116,13 @@ const swiperIndex = ref(0);
|
||||
onLoad(async (e: any) => {
|
||||
goodsBean.value = await getGoodsDetail(e.goodsId);
|
||||
const { rows } = await getGoodsList({
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
bean: {
|
||||
keyword: '',
|
||||
typeIds: ['1724629185362591745']
|
||||
page: {
|
||||
page: 1,
|
||||
pageSize: 20,
|
||||
bean: {
|
||||
keyword: '',
|
||||
typeIds: ['1724629185362591745']
|
||||
}
|
||||
}
|
||||
});
|
||||
recommendList.value = rows;
|
||||
@@ -146,7 +148,8 @@ const addShoppingCart = () => {
|
||||
shoppingCart.save(
|
||||
{
|
||||
...goodsBean.value,
|
||||
...skuBean.value
|
||||
...skuBean.value,
|
||||
count: 1
|
||||
}
|
||||
);
|
||||
showToast('加入购物车成功');
|
||||
|
Reference in New Issue
Block a user