This commit is contained in:
parent
b97969964f
commit
60221dc3ae
|
|
@ -80,7 +80,7 @@ export const constantRoutes = [
|
||||||
path: '/index_1',
|
path: '/index_1',
|
||||||
component: () => import('@/views/publicService/index_1.vue'),
|
component: () => import('@/views/publicService/index_1.vue'),
|
||||||
name: 'Index_1',
|
name: 'Index_1',
|
||||||
meta: { title: '公共服务平台' },
|
meta: { title: '公共服务平台', icon: 'dashboard' },
|
||||||
},
|
},
|
||||||
|
|
||||||
// 公共服务平台最终页
|
// 公共服务平台最终页
|
||||||
|
|
@ -90,26 +90,39 @@ export const constantRoutes = [
|
||||||
hidden: true,
|
hidden: true,
|
||||||
name: 'PublicService',
|
name: 'PublicService',
|
||||||
redirect: 'productCenter',
|
redirect: 'productCenter',
|
||||||
// meta: { title: '公共服务平台', icon: 'dashboard', affix: true },
|
|
||||||
children: [
|
children: [
|
||||||
|
// 产品中心
|
||||||
{
|
{
|
||||||
path: 'productCenter',
|
path: 'productCenter',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/publicService/productCenter/index.vue'),
|
import('@/views/publicService/productCenter/index.vue'),
|
||||||
name: 'ProductCenter',
|
name: 'ProductCenter',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 产品中心 ---- 查看详情页面
|
||||||
|
{
|
||||||
|
path: 'productCenter/detail/:id',
|
||||||
|
component: () =>
|
||||||
|
import(
|
||||||
|
'@/views/publicService/productCenter/product-detail.vue'
|
||||||
|
),
|
||||||
|
name: 'ProductDetail',
|
||||||
|
},
|
||||||
|
// 公共组件
|
||||||
{
|
{
|
||||||
path: 'commonCom',
|
path: 'commonCom',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/publicService/commonCom/index.vue'),
|
import('@/views/publicService/commonCom/index.vue'),
|
||||||
name: 'commonCom',
|
name: 'commonCom',
|
||||||
},
|
},
|
||||||
|
// 宣传物料
|
||||||
{
|
{
|
||||||
path: 'proMaterials',
|
path: 'proMaterials',
|
||||||
component: () =>
|
component: () =>
|
||||||
import('@/views/publicService/proMaterials/index.vue'),
|
import('@/views/publicService/proMaterials/index.vue'),
|
||||||
name: 'ProMaterials',
|
name: 'ProMaterials',
|
||||||
},
|
},
|
||||||
|
// 文档中心
|
||||||
{
|
{
|
||||||
path: 'docCenter',
|
path: 'docCenter',
|
||||||
component: () =>
|
component: () =>
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ export default {
|
||||||
name: 'PublicService_1',
|
name: 'PublicService_1',
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$router.push('/publicService/productCenter')
|
this.$router.push('/publicService/productCenter')
|
||||||
|
|
||||||
// console.log('PublicService_1')
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -191,7 +191,12 @@ export default {
|
||||||
},
|
},
|
||||||
// 在 index.vue 中的 handleDetail 方法
|
// 在 index.vue 中的 handleDetail 方法
|
||||||
handleDetail(service) {
|
handleDetail(service) {
|
||||||
console.log('查看详情:', service.title)
|
// console.log('查看详情:', service.title)
|
||||||
|
// this.$router.push({
|
||||||
|
// name: 'ProductDetail',
|
||||||
|
// params: { id: service.id },
|
||||||
|
// })
|
||||||
|
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'ProductDetail',
|
name: 'ProductDetail',
|
||||||
params: { id: service.id },
|
params: { id: service.id },
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue