From 0b4fa4b2cfd68528d15aa71557425a7a80e3fc41 Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期五, 17 五月 2024 21:08:50 +0800
Subject: [PATCH] 222

---
 src/pages/index/index.vue |   45 ++++++++++++++++++++++-----------------------
 1 files changed, 22 insertions(+), 23 deletions(-)

diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 16483d0..c7c1dca 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -16,7 +16,7 @@
 						<view class="flex searchCss" :style="{'backgroundColor': isExpanded==true?'#fff':''}"
 							style="border-radius: .5rem; height: 75%; width: 2.33rem;margin-right: .30rem;justify-content: flex-end;">
 							<!-- overflow: hidden;  -->
-							<input :style="{'display': isExpanded == true ? 'block' : 'none'}" type="text"
+							<input :style="{'display': isExpanded == true ? 'block' : 'none'}" @confirm="toggleSearch" type="text"
 								style="margin-left: .05rem;color: #2C2C2C; flex: 1; background-color: #fff; font-size: .13rem;"
 								class="search-input" v-model="searchInput" placeholder="璇疯緭鍏ユ悳绱㈠唴瀹�" />
 							<view class="search-logo" @click="toggleSearch"
@@ -25,8 +25,8 @@
 						<el-dropdown trigger="click" @command="handleCommand" style="margin-right:  .3rem;">
 							<view @click="iconClick(2)" class="s2 ss1 "></view>
 							<el-dropdown-menu v-if="isCommand" slot="dropdown">
-								<el-dropdown-item command="1" icon="el-icon-plus">淇敼瀵嗙爜</el-dropdown-item>
-								<el-dropdown-item command="2" icon="el-icon-circle-plus">閫�鍑虹櫥褰�</el-dropdown-item>
+								<el-dropdown-item command="1" >淇敼瀵嗙爜</el-dropdown-item>
+								<el-dropdown-item command="2" >閫�鍑虹櫥褰�</el-dropdown-item>
 							</el-dropdown-menu>
 						</el-dropdown>
 						<view @click="iconClick(item+2)" v-for="item in 1" :key="item" :class="'s'+(item+2)"
@@ -115,19 +115,19 @@
 				},
 				// 涔︾睄鏁版嵁
 				listData: [{
-						name: '鍘嗕唬鍖诲浼犺搴�',
+						name: '涓尰浜虹墿鏁版嵁搴�',
 						id: 1,
 					}, {
-						name: '涓栧尰鍖诲搴�',
+						name: '涓栧尰鍖诲鏁版嵁搴�',
 						id: 2,
 					}, {
-						name: '鍖诲瀛︽湳娴佹淳',
+						name: '涓尰瀛︽湳娴佹淳',
 						id: 3,
 					}, {
-						name: '涓浗鍦板煙鍖昏氨',
+						name: '涓尰鍦板煙鍖昏氨',
 						id: 4,
 					}, {
-						name: '涓浗鍖讳簨鍒跺害',
+						name: '涓尰鍖讳簨鍒跺害',
 						id: 5,
 					},
 
@@ -152,25 +152,22 @@
 			// 鎼滅储
 			onSearch(val) {
 				uni.navigateTo({
-					url: '/pages/knowledgeBase/knowledgeBase?name=' + val
+					url: '/pages/knowledgeBase/knowledgeBase?keyword=' + val.text
 				})
-				console.log('vv', val);
 			},
 			// 鎼滅储
 			// 鍒囨崲鎼滅储妗嗙殑灞曞紑鍜屾敹璧风姸鎬�
 			toggleSearch() {
-				console.log('sdf');
-				// console.log('鎾掓棪鑼冨痉钀ㄥ彂鐢熺殑',this.searchInput);
 				this.isExpanded = !this.isExpanded;
 				this.$nextTick(() => {
 					if (this.searchInput.trim() !== '') {
-						console.log('鎼滅储', this.searchInput);
+						uni.navigateTo({
+							url: '/pages/knowledgeBase/knowledgeBase?keyword=' + this.searchInput
+						})
 					} else {
 						console.log('涓嶆悳绱�');
 					}
-
 					this.searchInput = '';
-					console.log(this.isExpanded);
 				})
 			},
 			// 鍒楄〃椤硅烦杞�
@@ -180,17 +177,20 @@
 				// uni.setStorageSync('globalData', { id: 123, name: 'example' });
 				if (item.id == 1) {
 					uni.navigateTo({
-						// url: '/pages/repository/repository?id=' + item.id
-						url: '/pages/characterRelation/characterRelation?id=' + item.id
+						// url: '/pages/character/detail?id=' + item.id
+						url: '/pages/character/index?id=' + item.id
 					})
 				} else if (item.id == 2) {
 					console.log(item.name);
 					uni.navigateTo({
-						url: '/pages/zhongyi/zhongyi?id=' + item.id
+						url: '/pages/inherit/index?id=' + item.id
 					})
+					// uni.navigateTo({
+					// 	url: '/pages/shiyiHome/shiyiHome'
+					// })
 				} else if (item.id == 3) {
 					uni.navigateTo({
-						url: '/pages/dataDisplay/dataDisplay?id=' + item.id
+						url: '/pages/academicGenres/index?id=' + item.id
 					})
 				} else if (item.id == 4) {
 					uni.navigateTo({
@@ -481,7 +481,7 @@
 		}
 	}
 
-	@media screen and (min-width:1366px) and (max-width:1920px) {
+	@media screen and (min-width:1366px) {
 		.Ttop {
 			margin-bottom: .6rem !important;
 		}
@@ -525,9 +525,7 @@
 			width: 2rem !important;
 		}
 
-		.hua {
-			height: 4rem !important;
-		}
+		
 	}
 
 
@@ -689,6 +687,7 @@
 			background: #EBF4FF;
 			font-weight: 600;
 			margin: 0 .21rem;
+			cursor: pointer;
 		}
 	}
 

--
Gitblit v1.9.1