Commit 603d4eb5 by 李嘉林

优化

parent 2c17abeb
...@@ -9,15 +9,15 @@ ...@@ -9,15 +9,15 @@
duration="{{duration}}" duration="{{duration}}"
circular="true" circular="true"
bindchange="bannerChange" bindchange="bannerChange"
style="height:{{bannerHeight}}" style="height:{{bannerHeight}};border-radius:{{datas.componentData.borderRadius/3}}em"
> >
<block wx:for="{{newArr}}" wx:key="index"> <block wx:for="{{newArr}}" wx:key="index">
<swiper-item data-item="{{item}}" bindtap="onClick"> <swiper-item data-item="{{item}}" bindtap="onClick">
<view class="swiper-item"> <view class="swiper-item">
<image <image
src="{{item.imageUrl}}" src="{{item.imageUrl}}"
style="width:100%;border-radius:{{datas.componentData.borderRadius*2}}rpx" style="width:100%;"
mode="widthFix" mode="aspectFill"
bindload="loadImg" bindload="loadImg"
class="bannerImgItem" class="bannerImgItem"
></image> ></image>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
} }
.swiper{ .swiper{
width: 100%; width: 100%;
overflow: hidden;
/* height: calc(100vw*9/16); */ /* height: calc(100vw*9/16); */
} }
.onterDot{ .onterDot{
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<view <view
class="name" class="name"
wx:if="{{datas.componentData['nameShow']}}" wx:if="{{datas.componentData['nameShow']}}"
style="color:{{datas.componentData['nameColor']}};font-weight:{{datas.componentData['nameFontWeight']}};font-size:{{datas.componentData['nameFontSize']}}em;height:2.8em;" style="color:{{datas.componentData['nameColor']}};font-weight:{{datas.componentData['nameFontWeight']}};font-size:{{datas.componentData['nameFontSize']}}em;"
> >
{{items!=null?items['productName']:'名称'}} {{items!=null?items['productName']:'名称'}}
</view> </view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment