py 1 سال پیش
والد
کامیت
3a89112411
1فایلهای تغییر یافته به همراه21 افزوده شده و 19 حذف شده
  1. 21 19
      pages-takeout/takeout.vue

+ 21 - 19
pages-takeout/takeout.vue

@@ -26,7 +26,7 @@
 					<view class="input-icon">
 						<uni-icons type="search" size="22" color="#999"></uni-icons>
 					</view>
-					<input v-model="search" type="text" @confirm='searchClick' confirm-type="search"
+					<input class="input-box" v-model="search" type="text" @confirm='searchClick' confirm-type="search"
 						placeholder="请输入商家或者商品名称">
 					<view class="fs-28 fc-f index-search-box-buttom" @click="searchClick">搜索</view>
 				</view>
@@ -205,6 +205,8 @@
 				if (this.category_id == id) {
 					return
 				}
+				console.log(this.page);
+				this.page = 1
 				this.category_id = id
 				this.listData = []
 				this.getGoodsList()
@@ -352,7 +354,7 @@
 				background: #FFFFFF;
 				border-radius: 200rpx;
 				box-sizing: border-box;
-				padding: 0 20rpx 0 78rpx;
+				padding: 0 120rpx 0 78rpx;
 				border: 1rpx solid #41ABF5;
 			}
 		}
@@ -558,21 +560,21 @@
 		}
 	}
 
-	.index-search-box {
-		width: 100%;
-		height: 72rpx;
-		padding: 0 6rpx 0 24rpx;
-		border-radius: 200rpx;
-		border: 2rpx solid #4FB3EF;
-
-		.index-search-box-buttom {
-			width: 120rpx;
-			height: 60rpx;
-			background: linear-gradient(90deg, #57CAFF 0%, #41ABF5 100%);
-			border-radius: 200rpx;
-			margin-left: auto;
-			line-height: 60rpx;
-			text-align: center;
-		}
-	}
+	// .index-search-box {
+	// 	width: 100%;
+	// 	height: 72rpx;
+	// 	padding: 0 6rpx 0 24rpx;
+	// 	border-radius: 200rpx;
+	// 	border: 2rpx solid #4FB3EF;
+
+	// 	.index-search-box-buttom {
+	// 		width: 120rpx;
+	// 		height: 60rpx;
+	// 		background: linear-gradient(90deg, #57CAFF 0%, #41ABF5 100%);
+	// 		border-radius: 200rpx;
+	// 		margin-left: auto;
+	// 		line-height: 60rpx;
+	// 		text-align: center;
+	// 	}
+	// }
 </style>