# void setVoipEndPagePath(Object req)
Sets the path to the jump page after the plug-in function is executed.
# parameter
# Object req
attribute | type | Default value | Required | Introductions | Minimum version |
---|---|---|---|---|---|
url | string | yes | The path to the jump page | ||
key | string | yes | Type of business, see below | ||
options | string | no | Jump Page's queryString。The path to the final jump is url + '?' + options | ||
routeType | string | redirectTo | no | The way the page jumps, the value is: redirectTo/switchTab/reLaunch | 2.3.9 |
Type of business
key The parameter has the following values
Call
: Set the path to the page to jump after the call ends,Be sure to set up before the end of the call。BindContact
: Sets the path to the page to jump to after the contact binding relationship page action is completed. Used only forCampus scene payment brush face mode。
# Return value
nothing
# sample code
const wmpfVoip = requirePlugin('wmpf-voip' ).default
// May be based upon typeof wmpf !== 'undefined' Determine whether the device is jumping to a different page
wmpfVoip.setVoipEndPagePath({
url: '/pages/contactList/contactList',
options: 'param1=xxx¶m2=xxx',
key: 'Call',
})