1、页面跳转
a、跳转到新页面 dd.navigateTo({ url: '../get-auth-code/get-auth-code' })
b、在当前页面打开 dd.redirectTo({ url: '../get-auth-code/get-auth-code' });
c、跳转 Tab - 组件
dd.switchTab({
url: '/page/component/index',
success: () => {
dd.showToast({
content: '成功',
type: 'success',
duration: 4000
});}});
d、返回上一页 dd.navigateBack()
2、提示
dd.showToast({
content: "扫一扫",
type: 'success',
duration: 3000,
success() {
console.log('toast end');
},
});