index.wxml 1.1 KB

1234567891011121314151617181920
  1. <view wx:if="{{show}}" class="l-status-container l-class {{fullScreen ? 'content': ''}}" style="{{'background:'+bgColor}}" bind:tap="tapStatusShow">
  2. <block wx:if="{{custom}}">
  3. <slot />
  4. </block>
  5. <block wx:else>
  6. <image wx:if="{{image}}" class="left-img l-image-class {{fullScreen ? 'image_margin_top': ''}}" src="{{image}}"></image>
  7. <image wx:else class="{{type=='success'||type=='error'?'left-img':'top-img'}} {{type=='address'?'ad-img':''}} l-image-class {{fullScreen ? 'image_margin_top': ''}}" src="{{typeImage}}"></image>
  8. <text wx:if="{{describe}}" class="status-text l-describe-class">{{describe}}</text>
  9. <text wx:else class="status-text l-describe-class">{{typeText}}</text>
  10. <l-button l-class="l-button-class button_margin_top" wx:if="{{buttonText}}">
  11. <view>{{buttonText}}</view>
  12. </l-button>
  13. <l-button l-class="l-button-class button_margin_top" wx:if="{{!buttonText && type =='network'}}">
  14. <view>重新加载</view>
  15. </l-button>
  16. <l-button l-class="l-button-class button_margin_top" wx:if="{{!buttonText && type =='cart'}}">
  17. <view>去逛逛</view>
  18. </l-button>
  19. </block>
  20. </view>