wxc-result

Common error result pages, which include general errors, no products, no network, and error of locating errors

Rule

  • Used for error pages to reduce user anxiety.
  • You can configure this type.js for custom errors

Demo

    

Code Example

<template>
  <wxc-result type="errorPage"
              :show="show"
              padding-top="232"
              @wxcResultButtonClicked="wxcResultButtonClicked"></wxc-result>
</template>
<script>
  import { WxcResult } from 'weex-ui';
  export default {
    components: { WxcResult },
    data: () => ({
        show: true
    }),
    methods: {
      wxcResultButtonClicked(e){
        modal.toast({
          'message': e.type,
          'duration': 1,
        })
      }
    }
  };
</script>

More details can be found in here

API

PropTypeRequiredDefaultDescription
typeStringNerrorPageerrorPage、noNetwork、noGoods、errorLocation
showBooleanNtruewhether to show
padding-topNumberN240padding top from screen
custom-setObjectN{}custom config type.js
wrap-styleObjectN{}custom wrap style

Custom Config

this.customSet={errorPage: { button: null, desc: 'You can try to reduce the filter content', content: 'I'm sorry, Sir. I haven't found the recommended conditions' }}

Event

@wxcResultButtonClicked="wxcResultButtonClicked"