# Invoice Function Page
From the base library version 2.16.1 The feature page is deprecated and can be used directly. wx.chooseInvoice
Implement the corresponding functionsto hit functional-page-navigator
Will also no longer go to the feature page, go directly to the invoice selection page.
file
The invoice function page is used to display the user's list of invoices, from which the user can select invoices. Self-base library version 2.14.1 Start supporting.
# Call parameter
Invoice Function Page Usage functional-page-navigator When the jump is made, the corresponding parameters Name Should be a fixed value chooseInvoice
, returns the parameter with the wx.chooseInvoice Same.
bindsuccess Return Parameter Dxplaination:
attribute | type | Introductions |
---|---|---|
invoiceInfo | String | Invoice information selected by the user, in the format of a JSON Character string containing three fields card_Id: the selected invoice card voucher cardId,encrypt_Code: Encryption of selected invoice card vouchers Code, the reimbursement party can be accessed through the cardId and encryptCode Get information on reimbursement invoices, app_id: Invoice Party appId。 |
# sample code
<!--plugin/components/Hello-component.wxml-- >
<functional-page-navigator
name="chooseInvoice"
version="develop"
bind:success="onSuccess"
bind:fail="onFail"
>
<button>Select the invoice</button>
</functional-page-navigator>
// plugin/components/hello-component.js
Component({
methods: {
onSuccess: function (res) {
console.log(res.detail)
},
onFail: function (res) {
console.log(res)
}
}
})