# Shipping address function page
From the base library version 2.16.1 The feature page is deprecated and can be used directly. wx.chooseAddress
Implement the corresponding functionsto hit functional-page-navigator
You will also no longer go to the feature page and go directly to the shipping address selection page.
file
The shipping address function page is used to display the user's shipping address list, and the user can select the shipping address. Self-base library version 2.4.0 Start supporting.
# Call parameter
User Information Features Page Use functional-page-navigator When the jump is made, the corresponding parameters Name Should be a fixed value chooseAddress
, returns the parameter with the wx.chooseAddress Same.
bindsuccess Return Parameter Dxplaination:
attribute | type | Introductions | Minimum version |
---|---|---|---|
userName | string | Name of consignee | |
postalCode | string | postal code | |
province | string | National standard delivery address first level address | |
cityName | string | National standard delivery address first level address | |
countyName | string | National standard delivery address first level address | |
detailInfo | string | Detailed Shipping Address Information | |
nationalCode | string | Shipping address country code | |
telNumber | string | Consignee mobile phone number | |
errMsg | string | Error message |
# sample code
<!--plugin/components/Hello-component.wxml-- >
<functional-page-navigator
name="chooseAddress"
version="develop"
bind:success="onSuccess"
bind:fail="onFail"
>
<button>Select the shipping address</button>
</functional-page-navigator>
// plugin/components/hello-component.js
Component({
methods: {
onSuccess: function (res) {
console.log(res.detail)
},
onFail: function (res) {
console.log(res)
}
}
})