diff --git a/app/components/PlanetBaseInfo.vue b/app/components/PlanetBaseInfo.vue index 11f01f9..2695cda 100644 --- a/app/components/PlanetBaseInfo.vue +++ b/app/components/PlanetBaseInfo.vue @@ -32,17 +32,7 @@ async function getCommunityDetail() { try { const res = await request.get(`/community/detail?communityId=${props.communityId}&tenantId=${props.tenantId}`) if (res.code === 200) { - const { imageUrl, communityName, communityTag, type, price, validityDay, description, id } = res.data - planetInfo.value = { - imageUrl, - communityName, - communityTag: communityTag.toString(), - type: type.toString(), - price, - id, - validityDay, - description, - } + planetInfo.value = res.data } } catch (error) { diff --git a/app/components/planet-item.vue b/app/components/planet-item.vue index bf1b5b7..94a6256 100644 --- a/app/components/planet-item.vue +++ b/app/components/planet-item.vue @@ -109,8 +109,14 @@ function handleSuccess() { } function goDetail(item: any) { - if (item.isJoin === 1) { - router.push(`/public-planet-detail?communityId=${item.id}&tenantId=${item.tenantId}`) + if (item.isJoin === 0) { + router.push({ + path: '/public-planet-detail', + state: { + communityId: item.id, + tenantId: item.tenantId, + }, + }) } else { router.push(`/planet-detail?communityId=${item.id}&tenantId=${item.tenantId}`) diff --git a/app/pages/public-planet-detail/index.vue b/app/pages/public-planet-detail/index.vue index 329c67c..b319c01 100644 --- a/app/pages/public-planet-detail/index.vue +++ b/app/pages/public-planet-detail/index.vue @@ -1,10 +1,36 @@