|
本帖最后由 8080 于 2024-4-18 17:25 编辑
var dialogBox = api.require('dialogBox');
dialogBox.alert({
texts: {
title: title,
content: msg,
leftBtnTitle: lmsg,
rightBtnTitle: rmsg
},
tapClose: true,
// animation:true,
styles: {
bg: '#fff',
w: 290,
corner: 5,
title: {
marginT: 20,
titleSize: 16,
titleColor: '#333'
},
content: {
marginT: 15,
marginB: 20,
color: '#333',
size: 14
},
left: {
marginB: 15,
marginL: 30,
w: 100,
h: 35,
corner: 5,
bg: '#999',
size: 14,
color: '#fff'
},
right: {
marginB: 15,
marginL: 30,
w: 100,
h: 35,
corner: 5,
bg: '#fb7269',
size: 14,
color: '#fff'
}
}
}, function (ret,err) {
console.log(JSON.stringify(ret)+JSON.stringify(err));
});
|
|