Browse Source

feat:样式问题修改

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

10
weapp/pages/home/home.wxml

@ -1,11 +1,12 @@
<!--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">
<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">
<swiper-item>
<image src="{{item.imgurl}}" mode="aspectFill"/>
<image src="{{item.imgurl}}" mode="aspectFill" style="width: 100%;"/>
</swiper-item>
</block>
</swiper>
@ -74,4 +75,5 @@
</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 {
width: 18px;
height: 17px;

Loading…
Cancel
Save