LAPTOP-2OQMQSSM\ASUS 3 tahun lalu
induk
melakukan
9ed012a30a
4 mengubah file dengan 10 tambahan dan 168 penghapusan
  1. 1 0
      .gitignore
  2. 2 31
      common/router/router.js
  3. 1 114
      pages.json
  4. 6 23
      pages/index/index.vue

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
 unpackage/
 .idea/
 node_modules/
+.hbuilderx/

+ 2 - 31
common/router/router.js

@@ -8,7 +8,7 @@ const router = createRouter({
     routes: [...ROUTES]
 });
 //全局路由前置守卫
-const whiteList = ['/','/pages/index/index', '/pages/login/index', '/pages/login/module/login-data/login-data','/pages/home/lawyer-team/lawyer-team','/pages/home/navigation-glory/navigation-glory','/pages/home/navigation-product/navigation-product','/pages/navigation-dynamic/module/dynamic-details/dynamic-details','/pages/home/case-particulars-copy/case-particulars-copy','/components/teamd-etails/teamd-etails']
+const whiteList = ['/','/pages/index/index']
 
 router.beforeEach((to, from, next) => {
     let token = to.query.token;
@@ -31,36 +31,7 @@ router.beforeEach((to, from, next) => {
     }
     console.log('前置守卫to----------', to)
     next();
-    // console.log('前置守卫from----------', from)
-    // if (getPlatform() == 'H5') {
-    //     console.log('userToken-------', userToken);
-    //     console.log('userMid-------', userMid);
-    //     if (userToken && userMid) {
-    //         if (to.fullPath == '/pages/login/index' || to.fullPath == '/pages/permission/index') {
-    //             uni.navigateTo({
-    //                 url: '/pages/index/index?value=0'
-    //             });
-    //         } else {
-    //             next();
-    //         }
-    //     } else {
-    //         /**
-    //          * 当本地缓存查询不到认证信息时,清除所有用户数据
-    //          */
-    //         store.commit('user/removeToken')
-    //         const index = whiteList.indexOf(to.fullPath)
-    //         if (index > -1) {
-    //             next();
-    //         } else {
-    //             tools.error('登录失效')
-    //             uni.navigateTo({
-    //                 url: '/pages/login/index'
-    //             });
-    //         }
-    //     }
-    // } else {
-    //     next();
-    // }
+
 });
 // 全局路由后置守卫
 router.afterEach((to, from) => {

+ 1 - 114
pages.json

@@ -12,120 +12,7 @@
 				"navigationBarTitleText": "登陆"
 			}
 		},
-		{
-			"path": "pages/login/module/login-data/login-data",
-			"style": {
-				"navigationBarTitleText": "用户协议"
-			}
-		},
-		{
-			"path": "pages/home/attend-section/attend-section",
-			"style": {
-				"navigationBarTitleText": "参与会议"
-			}
-		},
-		{
-			"path": "pages/home/lawyer-team/lawyer-team",
-			"style": {
-				"navigationBarTitleText": "律师团队"
-			}
-		},
-		{
-			"path": "pages/home/navigation-glory/navigation-glory",
-			"style": {
-				"navigationBarTitleText": "福航荣誉"
-			}
-		},
-		{
-			"path": "pages/home/navigation-product/navigation-product",
-			"style": {
-				"navigationBarTitleText": "福航产品"
-			}
-		},
-		{
-			"path": "pages/my-case/module/case-details/case-details",
-			"style": {
-				"navigationBarTitleText": "案件列表"
-			}
-		},
-		{
-			"path": "pages/navigation-dynamic/module/dynamic-details/dynamic-details",
-			"style": {
-				"navigationBarTitleText": "福航动态"
-			}
-		},
-		{
-			"path": "pages/my-case/module/case-detailed/case-detailed",
-			"style": {
-				"navigationBarTitleText": "案件详情"
-			}
-		},
-		{
-			"path": "pages/person-center/module/legal-serve/legal-serve",
-			"style": {
-				"navigationBarTitleText": "法务服务"
-			}
-		},
-		{
-			"path": "pages/person-center/module/perfect-information/perfect-information",
-			"style": {
-				"navigationBarTitleText": "完善信息"
-			}
-		},
-		{
-			"path": "pages/person-center/module/information/information",
-			"style": {
-				"navigationBarTitleText": "系统公告"
-			}
-		},
-		{
-			"path": "pages/person-center/module/exclusive-legal/exclusive-legal",
-			"style": {
-				"navigationBarTitleText": "专属法务"
-			}
-		},
-		{
-			"path": "pages/person-center/module/alter-password/alter-password",
-			"style": {
-				"navigationBarTitleText": "修改密码"
-			}
-		},
-		{
-			"path": "pages/person-center/module/alter-password-copy/alter-password-copy",
-			"style": {
-				"navigationBarTitleText": "绑定手机"
-			}
-		},
-		{
-			"path": "pages/home/case-particulars/case-particulars",
-			"style": {
-				"navigationBarTitleText": "案例详情"
-			}
-		},
-		{
-			"path": "pages/home/case-particulars-copy/case-particulars-copy",
-			"style": {
-				"navigationBarTitleText": "产品详情"
-			}
-		},
-		{
-			"path": "components/teamd-etails/teamd-etails",
-			"style": {
-				"navigationBarTitleText": "律师详情"
-			}
-		},
-		{
-			"path": "components/information-details/information-details",
-			"style": {
-				"navigationBarTitleText": "会议详情"
-			}
-		},
-		{
-			"path": "pages/person-center/module/notice/notice",
-			"style": {
-				"navigationBarTitleText": "公告详情"
-			}
-		}
+		
 	],
 
 	"globalStyle": {

+ 6 - 23
pages/index/index.vue

@@ -1,42 +1,25 @@
 <template>
 	<view class="">
-		<Home v-if="index ===0"></Home>
-		<myCase v-else-if="index === 1"></myCase>
-		<navigationDynamic v-else-if="index === 2"></navigationDynamic>
-		<personCenter v-else></personCenter>
-		<Tab @toIndex="toIndex" :index="index"></Tab>
+		使用
 	</view>
 </template>
 <script>
-	import Home from "../home/home.vue"
-	import myCase from "../my-case/my-case.vue"
-	import navigationDynamic from "../navigation-dynamic/navigation-dynamic.vue"
-	import personCenter from "../person-center/person-center.vue"
-	import Tab from "../../components/Tab/Tab.vue"
-	import {
-		newsBanner
-	} from "../../api/news";
+	
+
 	export default {
 		components: {
-			Home,
-			myCase,
-			navigationDynamic,
-			personCenter,
+			
 		},
 		data() {
 			return {
-				index: 0,
-
+				
 			}
 		},
 		mounted() {
 
 		},
 		methods: {
-			toIndex(index) {
-				this.index = index
-				// console.log("AAAAAAA", this.index)
-			},
+			
 
 		},
 	}