zxz 3 years ago
parent
commit
226379e913
1 changed files with 22 additions and 18 deletions
  1. 22 18
      pages/index/index.vue

+ 22 - 18
pages/index/index.vue

@@ -4,16 +4,19 @@
 			@confirm="confirm" :default-value="defaultvalue"
 		   :list="memberQyColumns"></u-select>
 		
-		<u-navbar :is-back="false" :border-bottom="false"><img class="homeLogo" src="/static/img/homeLogo.png" alt=""></u-navbar>
-		<view class="home-head">
-			<view class="homeTab">
-				<u-tabs :list="tabList" :current="current" @change="change" :show-bar="false" active-color="#333" inactive-color="#c4c0c0"></u-tabs>
+		<u-navbar :is-back="false" :border-bottom="false" height="84" >
+			<img class="homeLogo" src="/static/img/homeLogo.png" alt="">
+			<view class="home-head">
+				<view class="homeTab">
+					<u-tabs :list="tabList" :current="current" @change="change" :show-bar="false" active-color="#333" inactive-color="#c4c0c0"></u-tabs>
+				</view>
+				<view class="homeAdd" >
+					<u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
+					<span  @click="memberQyshowBtn">{{memberQyObj.name}}</span>
+				</view>
 			</view>
-			<view class="homeAdd" >
-				<u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
-				<span  @click="memberQyshowBtn">{{memberQyObj.name}}</span>
- 			</view>
-		</view>
+		</u-navbar>
+		
 		<view class="homeWrap">
 			<u-swiper :list="wrapList" @click="clickBanner" :img-mode="'aspectFit'" :name="'picUrl'" height="300" border-radius="24"></u-swiper>
 		</view>
@@ -210,25 +213,27 @@
 		}
 	}
 </script>
-
+<style>
+	/deep/.u-slot-content{
+		flex-direction: column;
+		align-items: flex-start;
+	}	
+</style>
 <style lang="scss" scoped>
+	
 	.homeLogo{
 		margin-left: 15px;
 		height: 28px;
 		width: 148px;
 	}
 	.home-head{
-		display: flex;
-		justify-content: space-between;
-		align-items: center;
 		padding-right: 15px;  
-		position: fixed;
-		left: 0;
-		right: 0;
-		top: 44px;
 		background-color: #fff;
 		z-index: 99;
 		.homeAdd{
+			position: absolute;
+			right: 15px;
+			top:45px;
 			color: #FF5E5E;
 			span{
 				margin-left: 3px;
@@ -237,7 +242,6 @@
 	}
 	.homeWrap{
 		padding:0 15px;
-		margin-top: 55px;
 	}
 	.homeUser{
 		display: flex;