码迷,mamicode.com
首页 > 微信 > 详细

微信小程序之wx.showmodal

时间:2018-07-14 13:14:29      阅读:12006      评论:0      收藏:0      [点我收藏+]

标签:title   tle   showmodal   分享图片   als   size   自己   current   style   

 

1.

.技术分享图片

wx.showModal({
      title: "2222步",
      content: currentCache ? "确定为自己城市添加步数吗" : "确定取消为自己城市添加步数吗?",
      showCancel: true,
      cancelText: "取消111",
      cancelColor: "#000",
      confirmText: "确定",
      confirmColor: "#0f0",
      success: function (res) {
        console.log(res)
        if (res.confirm) {
          // 重新设置缓存
          //wx.setStorageSync(‘cache_key‘, cache);
          // 更新数据绑定,从而切换图片
          //that.setData({
            //collection: currentCache
          //})
        }
      }
    })

  

2...

技术分享图片

 

 

 wx.showModal({
      title: "2222步",
      content: currentCache ? "确定为自己城市添加步数吗" : "确定取消为自己城市添加步数吗?",
      showCancel: false,
      // cancelText: "取消111",
      // cancelColor: "#000",
      confirmText: "确定",
      confirmColor: "#0f0",
      success: function (res) {
        console.log(res)
        if (res.confirm) {
          // 重新设置缓存
          wx.setStorageSync(‘cache_key‘, cache);
          // 更新数据绑定,从而切换图片
          //that.setData({
            //collection: currentCache
         // })
        }
      }
    })

  

微信小程序之wx.showmodal

标签:title   tle   showmodal   分享图片   als   size   自己   current   style   

原文地址:https://www.cnblogs.com/520BigBear/p/9308949.html

(1)
(1)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!