customPage.wxml 1.0 KB

1234567891011121314151617181920212223242526
  1. <!--components/customPage/customPage.wxml-->
  2. <view class="custom-page">
  3. <view class="custom-head" style="{{headStyle}}">
  4. <slot name="head"/>
  5. <view wx:if="{{headBgImage}}" class="head-bg">
  6. <image class="head-bg-img" src="{{headBgImage}}" mode=widthFix" bindload="headImageLoadSuccess"/>
  7. </view>
  8. </view>
  9. <view class="custom-body" style="height: {{bodyHeight}}px;" >
  10. <scroll-view style="height: {{bodyHeight}}px;" scroll-y bindscrolltolower="handleReachBottom">
  11. <view wx:if="{{bodyBgImage}}" class="body-split-bg">
  12. <image class="body-split-img" src="{{bodyBgImage}}" mode="widthFix" bindload="bodyImageLoadSuccess"/>
  13. </view>
  14. <view wx:elif="{{headBgImage}}" class="body-split-bg" style="height:{{bodyImageHeight}}px;">
  15. <image class="body-split-img" style="top:-{{navHeight}}px" src="{{headBgImage}}" mode="widthFix"/>
  16. </view>
  17. <view class="body-content" style="top:-{{bodyImageHeight}}px;">
  18. <slot name="body" />
  19. </view>
  20. </scroll-view>
  21. </view>
  22. </view>