Ver código fonte

辣干子页面优化

mws 4 meses atrás
pai
commit
dd6b7f7ae2

+ 15 - 1
pages/lgz/index/index.vue

@@ -5,8 +5,8 @@
 			<view class="title">
 				梅山古镇
 			</view>
+      <view><image class="logo-img" src="/static/images/common/logo.png" mode="aspectFit" /></view>
 			<view class="head">
-
 				<u-swiper :list="list1"></u-swiper>
 			</view>
 			<view class="text">
@@ -422,6 +422,10 @@ import { randomTexts } from '../../../utils/randomTexts.js';
 			url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/bgi-two.png");
 	}
 
+  .title{
+    height: 4vh;
+    line-height: 5vh;
+  }
 	.head {
 		background-image:
 			url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/zhanshi.png");
@@ -707,4 +711,14 @@ import { randomTexts } from '../../../utils/randomTexts.js';
 		line-height: 15px;
 		z-index: 5;
 	}
+  .logo-img {
+    background-size: cover;
+    /* 确保背景图片自适应填充整个容器 */
+    background-position: center;
+    /* 背景图片居中显示 */
+    background-repeat: no-repeat;
+    /* 防止背景图重复 */
+    height: 42rpx;
+    width: 180rpx
+  }
 </style>

+ 0 - 1
pages/lgz/index/unWinPrize.vue

@@ -10,7 +10,6 @@
           <image class="logo-img" src="/static/images/common/logo.png" mode="aspectFit" />
         </u-col>
         <u-col span="4">
-          <image class="commodity-img" src="/static/images/common/commodity.png" mode="aspectFit" />
         </u-col>
         <u-col span="4">
 

+ 1 - 1
pages/lgz/index/winPrize.vue

@@ -10,7 +10,7 @@
 					<image class="logo-img" src="/static/images/common/logo.png" mode="aspectFit" />
 				</u-col>
 				<u-col span="4">
-					<image class="commodity-img" src="/static/images/common/commodity.png" mode="aspectFit" />
+
 				</u-col>
 				<u-col span="4">