|
@@ -9,6 +9,7 @@ import ObliqueView from "@/views/ObliqueView.vue"
|
|
|
import PanoView from "@/views/PanoView.vue"
|
|
|
import PanoList from "@/components/PanoList.vue"
|
|
|
import TestView from "@/components/TestView.vue"
|
|
|
+import RelicsApprCover from "@/views/RelicsApprCover.vue"
|
|
|
|
|
|
Vue.use(VueRouter)
|
|
|
|
|
@@ -125,6 +126,7 @@ const routes = [
|
|
|
meta: {
|
|
|
isShowBottomBar: true,
|
|
|
canFullScreen: false,
|
|
|
+ detailCompNameAffix: '',
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
@@ -147,6 +149,38 @@ const routes = [
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
+ path: '/lookGoods',
|
|
|
+ name: 'lookGoods',
|
|
|
+ component: RelicsApprCover,
|
|
|
+ meta: {
|
|
|
+ isShowBottomBar: false,
|
|
|
+ canFullScreen: false,
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/relics-appr-no-exit',
|
|
|
+ name: 'RelicsApprNoExit',
|
|
|
+ component: RelicsAppr,
|
|
|
+ meta: {
|
|
|
+ isShowBottomBar: false,
|
|
|
+ canFullScreen: false,
|
|
|
+ detailCompNameAffix: 'NoExit',
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'relic-detail',
|
|
|
+ name: 'RelicDetailNoExit',
|
|
|
+ component: RelicDetail,
|
|
|
+ meta: {
|
|
|
+ isShowBottomBar: false,
|
|
|
+ canFullScreen: false,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
path: '/about',
|
|
|
name: 'about',
|
|
|
// route level code-splitting
|
|
@@ -162,14 +196,14 @@ const router = new VueRouter({
|
|
|
routes
|
|
|
})
|
|
|
|
|
|
-router.beforeEach((to, from, next) => {
|
|
|
- console.log('beforeEach: ', to, from, next)
|
|
|
- // 强制每次都从首页进入
|
|
|
- if (process.env.NODE_ENV === 'production' && !from.name && to.name !== 'HomeView' && to.name !== 'SwkkView') {
|
|
|
- next('/')
|
|
|
- } else {
|
|
|
- next()
|
|
|
- }
|
|
|
-})
|
|
|
+// router.beforeEach((to, from, next) => {
|
|
|
+// console.log('beforeEach: ', to, from, next)
|
|
|
+// // 强制每次都从首页进入
|
|
|
+// if (process.env.NODE_ENV === 'production' && !from.name && to.name !== 'HomeView' && to.name !== 'SwkkView') {
|
|
|
+// next('/')
|
|
|
+// } else {
|
|
|
+// next()
|
|
|
+// }
|
|
|
+// })
|
|
|
|
|
|
export default router
|