浏览代码

修改首页图标样式

YY 2 年之前
父节点
当前提交
f43db0b88f
共有 1 个文件被更改,包括 11 次插入7 次删除
  1. 11 7
      pages/home/index.vue

+ 11 - 7
pages/home/index.vue

@@ -1,12 +1,15 @@
 <template>
 	<mobile-frame :frameStyle="frameStyle" @toPath="toPath">
-		<scroll-view class="scrollView" scroll-with-animation :scroll-into-view="topItem" scroll-y="true" @scroll="handleScroll">
+		<scroll-view class="scrollView" scroll-with-animation :scroll-into-view="topItem" scroll-y="true"
+			@scroll="handleScroll">
 			<view class="main" id="top">
 				<view class="zero one">
-					<input type="text" placeholder="搜索商品" @tap="toCommon('pagesHome/market/search')" placeholder-class="placss">
+					<input type="text" placeholder="搜索商品" @tap="toCommon('pagesHome/market/search')"
+						placeholder-class="placss">
 				</view>
 				<view class="zero two">
-					<swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff" indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
+					<swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff"
+						indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
 						<swiper-item class="list" v-for="(item,index) in bannerList" :key="index">
 							<image class="image" :src="item.url&&item.url.length>0?item.url[0].url:''" mode=""></image>
 						</swiper-item>
@@ -34,7 +37,8 @@
 					</view>
 				</view>
 				<view class="zero five">
-					<view class="list" v-for="(item,index) in marketList" :key="index" @tap="toCommon('pagesHome/order/detail')">
+					<view class="list" v-for="(item,index) in marketList" :key="index"
+						@tap="toCommon('pagesHome/order/detail')">
 						<image class="image" :src="item.url" mode=""></image>
 						<view class="name">
 							{{item.name}}
@@ -272,9 +276,9 @@
 				margin: 0 0 2vw 0;
 
 				.image {
-					width: 100%;
-					height: 16vw;
-					margin: 0 0 1vw 0;
+					width: 80%;
+					height: 13vw;
+					margin: 1.5vw 0 1.5vw 0;
 				}
 
 				.name {