评论商品接口有问题

This commit is contained in:
bobobobo
2026-01-16 00:12:33 +08:00
parent d2ba0df2b5
commit 5cd2732562
164 changed files with 14318 additions and 197 deletions

View File

@@ -6,6 +6,8 @@
const viewData = ref({})
const productId = ref('')
// 分享二维码进入
const groupId = ref('')
/** 评论数量 */
const commentNum = ref(0)
const getData = async productId => {
@@ -39,12 +41,14 @@
const onConfirm = () => {
navigateTo('/pages/mall/confirm-order', {
productId: productId.value
productId: productId.value,
groupId: groupId.value
})
}
onLoad(async e => {
productId.value = e.productId
groupId.value = e?.groupId || ''
await getData(e.productId)
await getComment(e.productId)
})