PageResult

Fault page.

Sample Code

copy
	// API-DEMO page/component/page-result/page-result.json
	{
	  "defaultTitle": "fault feedback",
	  "usingComponents": {
	    "page-result": "mini-antui/es/page-result/index"
	  }
	}
copy
	<!-- API-DEMO page/component/page-result/page-result.axml -->
	<page-result
	  type="network"
	  title="Network is poor"
	  brief="It looks like the furthest distance in the world"
	/>
	<page-result
	  type="network"
	  title="Network is poor"
	  brief="It looks like the furthest distance in the world"
	>
	  <view class="am-page-result-btns">
	    <view onTap="backHome">Back home</view>
	    <view>Sample button</view>
	  </view>
	</page-result>
copy
	// API-DEMO page/component/page-result/page-result.js
	Page({
	  backHome() {
	    my.navigateBack();
	  }
	});
copy
	.am-page-result {
	  display: flex;
	  flex-direction: column;
	}
	.am-page-result-btns {
	  flex: 1;
	  display: flex;
	  flex-direction: column;
	  justify-content: flex-end;
	  align-content: center;
	  padding-bottom: 100rpx;
	}
	.am-page-result-btns > view {
	  color: #108EE9;
	  font-size: 40rpx;
	  margin-top: 52rpx;
	  text-align: center;
	}

Attributes

Property

DescriptionTypeDefault

Required

typeFault page type: network fault - network, service busy - busy, service abnormity - error, empty status - empty, user logoff - logoff.StringnetworkNo
localIs local fault content or not.BooleanfalseNo
titleFault prompt title.String-No
briefFault prompt brief.String-No