wx.showModal({//小さなプログラムのポップアップウィンドウの
タイトル: 'まだログインしていません。最初にログインしてください'、//プロンプトのタイトル、
showCancel: true, //是否显示取消按钮,
cancelText: '拒绝登陆', //取消按钮的文字,默认为取消,最多 4 个字符,
cancelColor: '#000000', //取消按钮的文字颜色,
confirmText: '前往登陆', //确定按钮的文字,默认为取消,最多 4 个字符,
confirmColor: '#3CC51F', //确定按钮的文字颜色,
success: res => {
if (res.confirm) {
wx.navigateTo({ //页面跳转
url:'/pages/mine/mine'
});
} else if (res.cancel) {
console.log(111111) //tab跳转
wx.switchTab({ url: '/pages/logs/logs' })
}
}
});