Pārlūkot izejas kodu

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
首页修改

1004749546@qq.com 4 gadi atpakaļ
vecāks
revīzija
fda27cc5dd

+ 1 - 1
components/uni-nav-bar/uni-nav-bar.vue

@@ -173,7 +173,7 @@
 		/* #ifndef APP-NVUE */
 		display: flex;
 		/* #endif */
-		width: 300rpx;
+		// width: 300rpx;
 		justify-content: flex-start;
 	}
 

+ 10 - 4
pages/index/index.vue

@@ -1,15 +1,17 @@
 <template>
 	<view class="content">
 		<!-- 顶部导航 -->
-		<uni-nav-bar 
+		<uni-nav-bar
 		:border="false" 
 		@clickLeft="toUserCenter" 
-		leftIcon="person-filled" 
 		 background-color="#fff" 
+		 title="智能快洗"
 		 :status-bar="true" 
 		 :fixed="true" 
 		 color="rgb(255,0,0)">
-		  <view slot="left">个人中心</view>
+		  <view style="padding-left: 20rpx;" slot="left">
+			  <u-image width="40rpx" height="60rpx" mode="aspectFit" src="/static/img/person.png"></u-image>
+		  </view>
 		</uni-nav-bar>
 		<!-- 页面主体 -->
 		<view class="pageContent">
@@ -210,7 +212,11 @@
 						uni.navigateTo({
 						    url: '/pages/userCenter/index'
 						})
-					} 
+					} else {
+						uni.navigateTo({
+							url:`/pages/login/login?lanuch=${false}&path=` + encodeURIComponent('/pages/userCenter/index')
+						})
+					}
 				})
 			},
 			// 打开网点列表

BIN
static/img/person.png