Browse Source

fix[litemall-wx]: ScrollView高度设置增加像素单位 (#481)

没有像素单位会导致高度设置无效
uuz.vva 4 years ago
parent
commit
fc2f694edd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      litemall-wx/pages/category/category.wxml

+ 2 - 2
litemall-wx/pages/category/category.wxml

@@ -6,7 +6,7 @@
       </view>
     </scroll-view>
   </view>
-  <scroll-view scroll-y="true" scroll-top="{{scrollTop}}" style="height:{{scrollHeight}};">
+  <scroll-view scroll-y="true" scroll-top="{{scrollTop}}" style="height:{{scrollHeight}}px;">
 
     <view class="cate-item">
       <view class="h">
@@ -22,4 +22,4 @@
       </view>
     </view>
   </scroll-view>
-</view>
+</view>