# void setVoipEndPagePath(Object req)
Set the path to the page when the plug-in function is executed.
# parameter
# Object req
| attribute | type | Default values | Required to fill in | Introductions | Minimum version |
|---|---|---|---|---|---|
| url | string | yes | Jump to the path of the page | ||
| key | string | yes | For the type of business, see below | ||
| options | string | no | QueryString of the jump page.The final jump path isurl + '?' + options | ||
| routeType | string | redirectTo | no | The requested URL / redirectTo / switchTab / reLaunch was not found on this server. | 2.3.9 |
Type of business
Key parameters have the following values
Call: Set the page path to jump after the call, Ensure that is set before the call.BindContact: Sets the path of the page to jump to when the page operation completes.Only used for campus scene payment face brush mode .
# Return value
nothing
# sample code
const wmpfVoip = requirePlugin('wmpf-voip').default
// Available under typeofwmpf!= = 'undefined' to determine whether the device side to jump to a different page
wmpfVoip.setVoipEndPagePath({
url: '/pages/contactList/contactList',
options: 'param1=xxx¶m2=xxx',
key: 'Call',
})