⼩程序之wx.showmodal
1.
通讯仪
.
wx.showModal({
title: "2222步",
content: currentCache ? "确定为⾃⼰城市添加步数吗" : "确定取消为⾃⼰城市添加步数吗?", showCancel: true,
cancelText: "取消111",
cancelColor: "#000",
confirmText: "确定",
confirmColor: "#0f0",
再生油
success: function (res) {
console.log(res)
if (firm) {
// 重新设置缓存
//wx.setStorageSync('cache_key', cache);
//that.setData({交通事故现场图
//collection: currentCache
//})
}
}
凝胶材料
})
<
wx.showModal({
title: "2222步",
相框组合content: currentCache ? "确定为⾃⼰城市添加步数吗" : "确定取消为⾃⼰城市添加步数吗?",
showCancel: false,
// cancelText: "取消111",
// cancelColor: "#000",
confirmText: "确定",
confirmColor: "#0f0",
success: function (res) {
亮晶晶眼贴
console.log(res)
success: function (res) {
if (res.cancel) {
//点击取消,默认隐藏弹框
} else {
//点击确定
temp.splice(index, 1),
that.setData({
tempFilePaths: temp,
})
}
},
fail: function (res) { },//接⼝调⽤失败的回调函数 complete: function (res) { },//接⼝调⽤结束的回调函数(调⽤成功、失败都会执⾏)
}
})