完成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

@@ -135,7 +135,7 @@ const shareRecord = ref<ShareRecordType>({
const buyers = ref<BuyerType[]>([])
const buyersLoading = ref<boolean>(false)
const defaultImage: string = '/static/images/default-product.png'
const defaultImage: string = '/static/images/default.png'
const loadShareDetail = async (): Promise<void> => {
if (shareId.value === '') return
@@ -255,9 +255,10 @@ const formatTime = (timeStr: string | null): string => {
onLoad((options) => {
if (options != null) {
const idVal = options['id']
if (idVal != null) {
shareId.value = idVal as string
const optionsObj = options as UTSJSONObject
const idVal = optionsObj.getString('id') ?? ''
if (idVal != '') {
shareId.value = idVal
loadShareDetail()
}
}

View File

@@ -88,7 +88,7 @@ type ShareRecord = {
const shares = ref<ShareRecord[]>([])
const loading = ref<boolean>(true)
const showRules = ref<boolean>(false)
const defaultImage: string = '/static/images/default-product.png'
const defaultImage: string = '/static/images/default.png'
const totalShares = computed((): number => shares.value.length)