恢复修改的数据
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, onMounted, watch } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { AppButton } from '@/components'
|
||||
// 业务详情页:数据只经 useHomeStore,不直接 import api
|
||||
import { useHomeStore } from '@/stores/modules/home'
|
||||
import type { BusinessType } from '@/types/api'
|
||||
import HomeServiceTabs from './cpns/HomeServiceTabs.vue'
|
||||
import HomeServiceContents from './cpns/HomeServiceContents.vue'
|
||||
import HomeServiceTypes from './cpns/HomeServiceTypes.vue'
|
||||
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
const homeStore = useHomeStore()
|
||||
|
||||
const line = computed(() => homeStore.currentBusiness)
|
||||
@@ -47,10 +50,15 @@ onMounted(load)
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<HomeServiceTabs
|
||||
:service-types="line.serviceTypes"
|
||||
:service-content="line.serviceContent"
|
||||
/>
|
||||
<HomeServiceTypes :service-types="line.serviceTypes" />
|
||||
|
||||
<HomeServiceContents :contents="line.contents" />
|
||||
|
||||
<div class="business-detail__cta">
|
||||
<AppButton type="primary" size="lg" @click="router.push('/demand')">
|
||||
立即提报
|
||||
</AppButton>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<p v-else class="text-secondary">
|
||||
@@ -104,5 +112,13 @@ onMounted(load)
|
||||
&__slogan {
|
||||
font-size: @font-size-base;
|
||||
}
|
||||
|
||||
&__cta {
|
||||
padding-top: @spacing-base;
|
||||
|
||||
.app-button {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user