hwb0 vor 3 Jahren
Ursprung
Commit
28cc19df4c
2 geänderte Dateien mit 12 neuen und 10 gelöschten Zeilen
  1. 12 10
      pages/core/index.vue
  2. BIN
      static/core/core_bg.png

+ 12 - 10
pages/core/index.vue

@@ -4,8 +4,8 @@
 		<u-navbar leftIconSize="0" :placeholder="true" bgColor="#ffffff">
 			<view class="u-nav-slot" slot="left">
 				<view class="u-nav-slot__input flex">
-					<u--input v-model="goodsTitle" placeholder="搜索商品" border="none" prefixIcon="search" prefixIconStyle="font-size: 22px;color: #909399" />
-					<view class="u-nav-slot__input__btn" @click="toGoodsList()">搜索</view>
+					<u--input v-model="goodsTitle" @blur="toGoodsList()" placeholder="搜索商品" border="none" prefixIcon="search" prefixIconStyle="font-size: 22px;color: #909399" />
+					<!-- <view class="u-nav-slot__input__btn" @click="toGoodsList()">搜索</view> -->
 				</view>
 			</view>
 		</u-navbar>
@@ -411,10 +411,11 @@
 	
 	// 轮播
 	.core-swiper {
-		margin-bottom: 20rpx;
+		margin: 0 34rpx 20rpx;
+		border-radius: 16rpx;
 		
 		&-centent {
-			height: 330rpx;
+			height: 300rpx;
 			
 			.swiper-item {
 				width: 100%;
@@ -423,6 +424,7 @@
 				image {
 					width: 100%;
 					height: 100%;
+					border-radius: 16rpx;
 				}
 			}
 		}
@@ -467,22 +469,22 @@
 		display: flex;
 		align-items: center;
 		position: relative;
-		margin-bottom: 34rpx;
-		height: 400rpx;
+		margin: 0 34rpx 34rpx;
+		height: 380rpx;
 		
 		&-imgBg {
 			position: absolute;
 			top: 0;
-			width: 100vw;
-			height: 400rpx;
+			width: 100%;
+			height: 380rpx;
 		}
 		
 		&-content {
-			width: 100vw;
+			width: 100%;
 			position: absolute;
 			top: 0;
 			z-index: 5;
-			padding: 26rpx 32rpx;
+			padding: 26rpx 22rpx;
 			
 			&-nav {
 				justify-content: space-between;

BIN
static/core/core_bg.png