Sfoglia il codice sorgente

修改:1.修复首页logo图片高度的问题

littleblue55 4 giorni fa
parent
commit
280f4fe2df
1 ha cambiato i file con 8 aggiunte e 4 eliminazioni
  1. 8 4
      pages/index/index.vue

+ 8 - 4
pages/index/index.vue

@@ -1,8 +1,8 @@
 <template>
 	<view class="container" :style="{backgroundColor: `${backgroundColor}`}">
-		<u-navbar :is-back="false" title="" :style="{backgroundColor: `${backgroundColor}`}" :border-bottom="false">
-			<view class="slot-wrap">
-				<image :src="`${FILE_URL}/login-icon.png`" mode="aspectFit" style="width: 300rpx;"></image>
+		<u-navbar :is-back="false" title="" :style="{backgroundColor: `${backgroundColor}`, overflow:'hidden'}" :border-bottom="false">
+			<view class="slot-wrap" style="height: 100%;">
+				<image :src="`${FILE_URL}/login-icon.png`" mode="aspectFit" style="height: 100%;width: 300rpx;"></image>
 			</view>
 		</u-navbar>
 		<!-- <u-link href="http://www.uviewui.com">蜀道难,难于上青天</u-link> -->
@@ -488,7 +488,11 @@
 
 	})
 </script>
-
+<style lang="scss">
+	::v-deep(.u-slot-content){
+		height: 100%;
+	}
+</style>
 <style lang="scss" scoped>
 	.container {
 		width: 100vw;