Starting from base library version 2.16.1, this functional page has been deprecated. You can directly use wx.chooseInvoiceTitle to achieve the same functionality; clicking functional-page-navigator will no longer lead to the functional page, but will directly open the invoice title selection page.
Documentation
The invoice title functional page is used to display the user's list of invoice titles, allowing users to select an invoice title from the list. Supported since base library version 2.14.1.
Invocation Parameters
When using functional-page-navigator to navigate to the Invoice Title page, the corresponding parameter name should be the fixed value chooseInvoiceTitle. The return parameters are the same as those for wx.chooseInvoiceTitle.
Description of bindsuccess return parameters:
| Attribute | Type | Description |
|---|---|---|
| type | string | Type of the title |
| title | string | Name of the title |
| taxNumber | string | Tax number of the title |
| companyAddress | string | Company address |
| telephone | string | Mobile phone number |
| bankName | string | Bank name |
| bankAccount | string | Bank account number |
| errMsg | string | Error message |
Legal values for res.type
| Value | Description | Minimum Version |
|---|---|---|
| 0 | Organization | |
| 1 | Individual |
Example Code
<!--plugin/components/hello-component.wxml-->
<functional-page-navigator
name="chooseInvoiceTitle"
version="develop"
bind:success="onSuccess"
bind:fail="onFail"
>
<button>Select Invoice Title</button>
</functional-page-navigator>
// plugin/components/hello-component.js
Component({
methods: {
onSuccess: function (res) {
console.log(res.detail);
},
onFail: function (res) {
console.log(res);
}
}
});