Browse Source

跳转修改

tanxue 1 month ago
parent
commit
dd0027e04b
2 changed files with 8 additions and 11 deletions
  1. 5 2
      pages/chanpinXuanze/index.vue
  2. 3 9
      pages/login/login.vue

+ 5 - 2
pages/chanpinXuanze/index.vue

@@ -19,7 +19,10 @@
 			
 		</view>
 		
-		<footTabbarVue :currentTabNumber="0"></footTabbarVue>
+		<CustomTabBar :currentTabNumber="0"></CustomTabBar>
+		<CustomTabBar :levelId="levelId" :currentTabNumber="3" :typeId="typeId" :subjectId="subjectId"
+			:tipFlag="tipFlag">
+		</CustomTabBar>
 </template>
 
 <script setup>
@@ -27,7 +30,7 @@
 	import shuxueListVue from "./components/shuxueList.vue";
 	import {onLoad} from "@dcloudio/uni-app"
 	import * as shuxueHttp from "@/api/chanpinShuxue.js"
-	import footTabbarVue from "./components/footTabbar.vue";
+	import CustomTabBar from "@/components/custom-tabbar/custom-tabbar.vue";
 	
 	const data = reactive({
 		list: [

+ 3 - 9
pages/login/login.vue

@@ -117,15 +117,9 @@
 				login(req).then(res => {
 					if (res.code == 0) {
 						cacheManager.set('auth', res.data)
-						if (res.data.subjectId ==0 &&res.data.levelId == 0) {
-							uni.redirectTo({
-								url: `/pages/selectGradesTerms/index`
-							})
-						} else {
-							uni.redirectTo({
-								url: `/pages/study/index`
-							})
-						}
+						uni.redirectTo({
+							url: `/pages/chanpinXuanze/index`
+						})
 					}
 				})
 			},