wkw 6 ヶ月 前
コミット
3374ae9c1b
1 ファイル変更2 行追加19 行削除
  1. 2 19
      pages/index/index.vue

+ 2 - 19
pages/index/index.vue

@@ -30,15 +30,13 @@
 					</view>
 				</view>
 			</view>
-
 		</block>
 		<block v-else>
 			<!-- 用户端 -->
 			<view v-if="userType == 1" class="page-container" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
 
 				<view class="topbg-sticky">
-					<image class="top-bg" src="/static/images/index/index-bg.png" mode="widthFix" />
-					<!-- <view class="top-bg"></view> -->
+					<image class="top-bg" src="/static/images/index/index-bg.png" mode="aspectFill" :style="`height: ${280 + statusBarHeight}rpx;`" />
 					<!-- 标题-搜索 -->
 					<view class="topbg-sticky-box">
 						<view class="topbg-sticky-title flex justify-between align-center">
@@ -261,7 +259,7 @@
 
 			<!---------------------------------------- 企业版 -------------------------------------------------------->
 			<view v-else class="page-container" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
-				<image class="qySx-bg" src="/static/images/index/index-bg1.png" mode="widthFix"></image>
+				<image class="qySx-bg" src="/static/images/index/index-bg1.png" mode="aspectFill" :style="`height: ${280 + statusBarHeight}rpx;`"></image>
 				<view class="topbg-sticky">
 					<!-- 标题-搜索 -->
 					<view class="topbg-sticky-box">
@@ -2189,21 +2187,6 @@ page {
 .topbg-sticky {}
 
 .top-bg {
-	// box-shadow: 0px 4px 62px 0px rgba(153, 171, 198, 0.18);
-	// background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
-	// width: 100%;
-	// height: 300rpx;
-	// position: sticky;
-	// top: 0px;
-	// z-index: 999;
-
-	/* 波浪效果 */
-	// --c: rgba(255, 255, 255, 0.1);
-	// --w1: radial-gradient(100% 57% at top, #0000 100%, var(--c) 100.5%) no-repeat;
-	// --w2: radial-gradient(100% 57% at bottom, var(--c) 100%, #0000 100.5%) no-repeat;
-	// background: var(--w1), var(--w2), linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
-	// background-position: 0% 100%, 100% 100%, 0 0;
-	// background-size: 50% 100%, 50% 100%, 100% 100%;
 	position: absolute;
 	top: 0;
 	z-index: 0;