May 19, 2021 WeChat Mini Program Development Document
Base library 1.5.0 starts to support, and low versions need to be compatible
Select the user's invoice header
Object parameter description:
Parameters | Type | Required | Description |
---|---|---|---|
success | Function | Whether | The interface calls a successful callback function |
fail | Function | Whether | The interface calls the failed callback function |
complete | Function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Success returns a description of the parameters:
The name of the argument | Type | Description |
---|---|---|
type | String | Head-up type (0:units, 1:individual) |
title | String | Head up the name |
taxNumber | String | Head up the tax number |
companyAddress | String | The work address |
telephone | String | Mobile phone number |
bankName | String | The name of the bank |
bankAccount | String | Account |
errMsg | String | The result of the interface call |
Example code:
wx.chooseInvoiceTitle({
success(res) {
}
})