# Shipping Address Function Page

From the base library version {% version (2.16.1)%}, this feature page is deprecated and can be used directly with wx.chooseAddress Implement corresponding functions;Clickfunctional-page-navigatorwill no longer enter the function page, directly into the receiving address selection page.

file

The shipping address function page is used to display a list of the user's shipping addresses, and the user can select the shipping address within it.Supported since the base library version {% version ('2.4.0')%}.

# Call parameters

When the user information function page uses functional-page-navigator , the corresponding parameter name should be a fixed valuechooseAddress, returns parameters same as wx.chooseAddress .

Bindsuccess returns a parameter explaination:

attribute type Introductions Minimum version
userName string Name of the consignee
postalCode string postal code
provinceName string National standards shipping addresses First level addresses
cityName string National standards shipping addresses First level addresses
countyName string National standards shipping addresses First level addresses
detailInfo string Detailed shipping address information
nationalCode string Shipping Address Country Code
telNumber string The consignee's 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>选择收货地址</button>
  </functional-page-navigator>
// plugin/components/hello-component.js
Component({
  methods: {
    onSuccess: function (res) {
      console.log(res.detail);
    },
    onFail: function (res) {
      console.log(res);
    }
  }
});