完成consumer端同步

This commit is contained in:
2026-05-14 15:28:09 +08:00
parent 612fb3d360
commit 0ffbc53902
197 changed files with 92657 additions and 7564 deletions

View File

@@ -199,7 +199,7 @@ const pageSize = 10
const filterRating = ref<number>(0)
const hasImageFilter = ref<boolean>(false)
const defaultAvatar: string = '/static/images/default-avatar.png'
const defaultAvatar: string = '/static/images/default.png'
const getRatingCount = (rating: number): number => {
return stats.value.rating_distribution.get(rating.toString()) ?? 0
@@ -375,9 +375,10 @@ const formatTime = (timeStr: string | null): string => {
onLoad((options) => {
if (options != null) {
const idVal = options['product_id']
if (idVal != null) {
productId.value = idVal as string
const optionsObj = options as UTSJSONObject
const idVal = optionsObj.getString('product_id') ?? ''
if (idVal != '') {
productId.value = idVal
loadStats()
loadReviews(1)
}