uni.showModal提示内容
const title = "提示的内容。。";
uni.showModal({
title: "提示",
content: title,
cancelText: "取消",
confirmText: "确定",
confirmColor: "#815EC9",
showCancel: true,
success: async (res) => {
if (res.confirm) {
console.log("用户点击确定");
} else if (res.cancel) {
console.log("用户点击取消");
}
},
});