async presentEpay(
alertController: AlertController,
message: string,
router?: Router,
url?: string
) {
const alert = await alertController.create({
header: '',
message:
'<img id="picture" style="max-height: 150%; max-width:150% ; margin-left: 35%" src="" >',
buttons: [
{
text: '关闭',
// cssClass: 'style=\'margin-left:40%\'',
handler: () => {
if (url !== null && url !== undefined) {
router.navigateByUrl(url);
localStorage.clear();
this.clickPicturePaused();
// localStorage.removeItem('userCode');
} else {
// console.log('Confirm Okay');
}
}
}
]
});