Browse Source

调整页面

wangxy 2 tháng trước cách đây
mục cha
commit
0d766d68a1

+ 3 - 3
components/listCard/kaoshiCard.vue

@@ -3,7 +3,7 @@
 		<!-- card title -->
 		<view class="card-head-box">
 			<view class="card-line-title">考试</view>
-			<view class="card-more" @click="checkMore" v-if="data.count">更多<text class="more-num">{{data.count}}</text><icon class="more-jt"></icon></view>
+			<view class="card-more" @click="checkMore" v-if="!data.count">更多<text class="more-num">{{data.count}}</text><icon class="more-jt"></icon></view>
 		</view>
 		
 		<!-- kaoshi title -->
@@ -76,14 +76,14 @@
 	const activeks = ref(null);
 	
 	function checkMore() {
-		uni.redirectTo({
+		uni.navigateTo({
 			url: '/pages/client/Kaoshi/list?from=shouye'
 		})
 	}
 	
 	// 修改身份
 	function handleChangeIdentification() {
-		uni.redirectTo({
+		uni.navigateTo({
 			url:'/pages/client/my/info?from=shouye'
 		})
 	}

+ 2 - 2
components/listCard/kechengCard.vue

@@ -36,13 +36,13 @@
 	})
 	
 	function checkMore() {
-		uni.redirectTo({
+		uni.navigateTo({
 			url:"/pages/client/Kecheng/list?from=shouye"
 		})
 	}
 	
 	function handleStudy(item) {
-		uni.redirectTo({
+		uni.navigateTo({
 			url: `/pages/client/Kecheng/study?kcId=${item.kcId}&from=shouye`
 		})
 	}

+ 3 - 3
components/listCard/lianxiCard.vue

@@ -57,7 +57,7 @@
 	const lxzRef = ref(null)
 	
 	function checkMore() {
-		uni.redirectTo({
+		uni.navigateTo({
 			url: '/pages/client/Lianxi/list?from=shouye'
 		})
 	}
@@ -71,8 +71,8 @@
 	}
 	
 	function checkKaoshi(item) {
-		uni.redirectTo({
-			url: `/pages/client/Lianxi/exam?lxId=${item.lxId}?from=shouye`
+		uni.navigateTo({
+			url: `/pages/client/Lianxi/exam?lxId=${item.lxId}&from=shouye`
 		})
 	}
 	

+ 4 - 14
pages/client/Kaoshi/list.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="phone-list-page">
 		<view class="icon-title-bjcolor-navBar-box">
-			<!-- <view @click="goUpPage" class="nav-bar-icon"></view> -->
+			 <view @click="goUpPage" class="nav-bar-icon"></view>
 			<text class="nav-bar-title">考试管理</text>
 		</view>
 		<!-- 考试列表 -->
@@ -80,19 +80,9 @@
 	})
 	
 	function goUpPage() {
-		if ( data.from == 'shouye') {
-			uni.redirectTo({
-				url: '/pages/client/ShouYe/shouye'
-			})
-		} else if (data.from = 'my'){
-			uni.redirectTo({
-				url: '/pages/client/my/index'
-			})
-		} else {
-			uni.redirectTo({
-				url: '/pages/client/ShouYe/shouye'
-			})
-		}
+		uni.redirectTo({
+			url: '/pages/client/ShouYe/shouye'
+		})
 	}
 	// 修改身份
 	function handleChangeIdentification() {

+ 3 - 13
pages/client/Kecheng/list.vue

@@ -63,19 +63,9 @@
 	})
 
 	function goUpPage() {
-		if ( data.from == 'shouye') {
-			uni.redirectTo({
-				url: '/pages/client/ShouYe/shouye'
-			})
-		} else if (data.from == 'my'){
-			uni.redirectTo({
-				url: '/pages/client/my/index'
-			})
-		} else {
-			uni.redirectTo({
-				url: '/pages/client/ShouYe/shouye'
-			})
-		}
+		uni.redirectTo({
+			url: '/pages/client/ShouYe/shouye'
+		})
 	}
 
 	function handleSearch() {

+ 4 - 14
pages/client/Lianxi/list.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="phone-list-page">
 		<view class="icon-title-bjcolor-navBar-box">
-			<!-- <view @click="goUpPage" class="nav-bar-icon"></view> -->
+			<view @click="goUpPage" class="nav-bar-icon"></view>
 			<text class="nav-bar-title">练习管理</text>
 		</view>
 		<!-- 考试列表 -->
@@ -85,19 +85,9 @@
 	}
 	
 	function goUpPage() {
-		if ( data.from == 'shouye') {
-			uni.redirectTo({
-				url: '/pages/client/ShouYe/shouye'
-			})
-		} else if (data.from == 'my') {
-			uni.redirectTo({
-				url: '/pages/client/my/index'
-			})
-		} else {
-			uni.redirectTo({
-				url: '/pages/client/ShouYe/shouye'
-			})
-		}
+		uni.redirectTo({
+			url: '/pages/client/ShouYe/shouye'
+		})
 	}
 	
 	function handleSearch() {

+ 4 - 4
pages/client/my/myInfo.vue

@@ -172,16 +172,16 @@
 
 	function handleBack() {
 		if (data.from == 'my') {
-			uni.redirectTo({
+			uni.navigateTo({
 				url: '/pages/client/my/index'
 			})
 		} else if (data.from == 'kaoshi') {
-			uni.redirectTo({
+			uni.navigateTo({
 				url: '/pages/client/ShouYe/shouye'
 			})
 		} else {
-			uni.redirectTo({
-				url: '/pages/client/ShouYe/shouye'
+			uni.navigateTo({
+				url: '/pages/client/my/index'
 			})
 		}
 	}