Commit 0cc37974 authored by jiangjiantao's avatar jiangjiantao

bugfixed

parent 2d2d3a49
...@@ -304,6 +304,11 @@ ...@@ -304,6 +304,11 @@
margin-left: 2%; margin-left: 2%;
} }
.shopcart-list-hidden {
height: 0;
width:0;
}
/* 顶部空白 */ /* 顶部空白 */
.shopcart-cart-top-blank { .shopcart-cart-top-blank {
......
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
<image class="empty-remind-icon" mode="aspectFit" src="/images/scan_good_guide.png"/> <image class="empty-remind-icon" mode="aspectFit" src="/images/scan_good_guide.png"/>
</view> </view>
<!-- 购物车有数据 --> <!-- 购物车有数据 -->
<scroll-view class="shopcart-list" scroll-y="{{true}}" hidden="{{goods.length == 0}}"> <scroll-view class="{{goods.length == 0 ? 'shopcart-list-hidden' : 'shopcart-list'}}" scroll-y="{{true}}" hidden="{{goods.length == 0}}">
<view class="shopcart-cart-top-blank"> <view class="shopcart-cart-top-blank">
</view> </view>
<block a:for="{{goods}}"> <block a:for="{{goods}}">
......
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