# functional-page-navigator

Start from base library version 2.1.0. Please remaining backward compatible.

Valid only in plug-ins for jumping to plug-in feature pages.

attribute type Default value Required Introductions Minimum version
version string release no Jump to the Mini Program version,The online version must be set to release 2.1.0
name string no Function page to jump to 2.1.0
args object no Function page parameters, parameter format related to specific function page 2.1.0
bindsuccess eventhandler no The function page is returned and triggered when the operation succeeds, detail Format related to specific function pages 2.1.0
bindfail eventhandler no Function pages are returned and triggered when the operation fails, detail Format related to specific function pages 2.1.0
bindcancel eventhandler no Triggered when a user action returns from a feature page 2.4.1

version Legal value

value Introductions Minimum version
develop Development version
trial Experience version
release Official version

name Legal value

value Introductions Minimum version
loginAndGetUserInfo User Information Function Page 2.1.0
requestPayment Payment Function Page 2.1.0
chooseAddress Receiving Address Function Page 2.4.0
chooseInvoice Get Invoice Feature Page 2.14.1
chooseInvoiceTitle Get Invoice Header Feature Page 2.14.1

# Bug & Tip

  1. tip: A feature page is a special page in the plug-in owner Mini Program that the developer cannot customize the appearance of.
  2. tip: Some interfaces associated with interface presentation will be disabled during the function page presentation fail )。
  3. tip: This component itself can be used in developer tools, but the jump to the feature page is not currently supported in the developer tools debugging, please test on the real machine.

# sample code

<!-- sample.wxml -->
<functional-page-navigator name="loginAndGetUserInfo" bind:success="loginSuccess">
  <button>Log in to the plug-in</button>
</functional-page-navigator>
// redirect.js navigator.js
Component({
  methods: {
    loginSuccess: function(e) {
      console.log(and.detail.code) // wx.login of code
      console.log(and.detail.userInfo) // wx.getUserInfo of userInfo
    }
  }
})