Ver código fonte

首页样式

chenxiong 3 anos atrás
pai
commit
46353f9548
1 arquivos alterados com 16 adições e 10 exclusões
  1. 16 10
      pages/index/index.vue

+ 16 - 10
pages/index/index.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="index">
-		<u-navbar :is-back="false" :border-bottom="false"  title-color="#333333" back-icon-color="#ffffff">
+		<u-navbar class="navbar" :is-back="false" :border-bottom="false"  title-color="#333333" back-icon-color="#ffffff">
 			<view class="slot-wrap">
 				<image  src="/static/logo2.png"></image>
 			</view>
@@ -601,19 +601,25 @@ export default {
 <style lang="scss" scoped>
 
 .index {
-	.slot-wrap {
-		width:100%;
-		display: flex;
-		align-items: center;
-		justify-content: flex-end;
+	.navbar {
+		/deep/ .u-navbar-inner {
+			margin-right:0!important;
+		}
 		
-		image {
-			margin-right:98rpx;
-			width: 178rpx;
-			height: 31rpx;
+		.slot-wrap {
+			width:100%;
+			display: flex;
+			align-items: center;
+			justify-content: center;
+			
+			image {
+				width: 178rpx;
+				height: 31rpx;
+			}
 		}
 	}
 	
+	
 	.swiper {
 		width:100%;
 		position: relative;