Browse Source

feat:样式问题修改

master
zhaobing’ 1 year ago
parent
commit
972ea1cb3a
  1. 8
      weapp/pages/home/home.wxml
  2. 8
      weapp/pages/home/home.wxss

8
weapp/pages/home/home.wxml

@ -1,11 +1,12 @@
<!--pages/home/home.wxml--> <!--pages/home/home.wxml-->
<view style="height:{{pageHeight}} ; overflow: auto; padding: 0 15px;"> <scroll-view scroll-y="true" style="height:{{pageHeight}} ;">
<view style="overflow: auto; padding: 0 15px;">
<!--轮播图--> <!--轮播图-->
<view class="card"> <view class="card">
<swiper class="home-swiper" indicator-dots="true" autoplay="{{true}}" interval="{{2000}}" duration="{{500}}"> <swiper indicator-dots="true" autoplay="{{true}}" interval="{{2000}}" duration="{{500}}">
<block wx:for-items="{{swiperData}}" wx:key="*this"> <block wx:for-items="{{swiperData}}" wx:key="*this">
<swiper-item> <swiper-item>
<image src="{{item.imgurl}}" mode="aspectFill"/> <image src="{{item.imgurl}}" mode="aspectFill" style="width: 100%;"/>
</swiper-item> </swiper-item>
</block> </block>
</swiper> </swiper>
@ -75,3 +76,4 @@
</view> </view>
<view></view> <view></view>
</view> </view>
</scroll-view>

8
weapp/pages/home/home.wxss

@ -56,14 +56,6 @@
/* 其他样式属性,根据需要添加 */ /* 其他样式属性,根据需要添加 */
} }
.home-swiper {
}
.slide-image {
/* background: 100% 100% */
/* background-size:cover; */
}
.fontStyle { .fontStyle {
width: 18px; width: 18px;
height: 17px; height: 17px;

Loading…
Cancel
Save