话不多说直接上图

代码如下

wx.showModal({    title: '删除图片',    content: '确定要删除该图片?',    showCancel: true,//是否显示取消按钮    cancelText:"否",//默认是“取消”    cancelColor:'skyblue',//取消文字的颜色    confirmText:"是",//默认是“确定”    confirmColor: 'skyblue',//确定文字的颜色    success: function (res) {        if (res.cancel) {        //点击取消,默认隐藏弹框        } else {        //点击确定            wx.navigateTo({             url: '/pages/didiOrderEnsure/didiOrderEnsure?payInfo='+JSON.stringify(payInfo),            })        }     },     fail: function (res) { },//接口调用失败的回调函数     complete: function (res) { },//接口调用结束的回调函数(调用成功、失败都会执行)})

 

TAG标签: 微信小程序showmodal

http://www.xiaochengxub.com/read-105386.html