# Invoice raising feature page
From the base library version {% version (2.16.1)%}, this feature page is deprecated and can be used directly with wx.chooseInvoiceTitle Implement corresponding functions;Clickingfunctional-page-navigatorwill no longer enter the function page, but directly enter the invoice selection page.
file
The invoice raising feature page is used to display a list of the user's invoice raises, where the user can select the invoice to raise.Supported since the base library version {% version ('2.14.1')%}.
# Call parameters
functional-page-navigator The parameter name should be a fixed valuechooseInvoiceTitle, returns the same parameter as wx.chooseInvoiceTitle .
Bindsuccess returns a parameter explaination:
| attribute | type | Introductions |
|---|---|---|
| type | string | Head up type |
| title | string | Head up the name |
| taxNumber | string | Look up the tax number. |
| companyAddress | string | Unit Address |
| telephone | string | Phone number |
| bankName | string | Bank Name |
| bankAccount | string | Bank account |
| errMsg | string | Error message |
Legal value of res.type
| value | Introductions | Minimum version |
|---|---|---|
| 0 | unit | |
| 1 | personal |
# sample code
<!--plugin/components/hello-component.wxml-->
<functional-page-navigator
name="chooseInvoiceTitle"
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);
}
}
});