Commit 603d4eb5 by 李嘉林

优化

parent 2c17abeb
......@@ -9,15 +9,15 @@
duration="{{duration}}"
circular="true"
bindchange="bannerChange"
style="height:{{bannerHeight}}"
style="height:{{bannerHeight}};border-radius:{{datas.componentData.borderRadius/3}}em"
>
<block wx:for="{{newArr}}" wx:key="index">
<swiper-item data-item="{{item}}" bindtap="onClick">
<view class="swiper-item">
<image
src="{{item.imageUrl}}"
style="width:100%;border-radius:{{datas.componentData.borderRadius*2}}rpx"
mode="widthFix"
style="width:100%;"
mode="aspectFill"
bindload="loadImg"
class="bannerImgItem"
></image>
......
......@@ -6,6 +6,7 @@
}
.swiper{
width: 100%;
overflow: hidden;
/* height: calc(100vw*9/16); */
}
.onterDot{
......
......@@ -84,7 +84,7 @@
<view
class="name"
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']:'名称'}}
</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