收藏
回答

微信真机提示有bug,确定文字显示不出来?

看图,这是开发工具上的效果:

这是真机上的效果:

回答关注问题邀请回答
收藏

2 个回答

  • 社区技术运营专员-Jahozheng
    社区技术运营专员-Jahozheng
    2020-11-04

    你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

    2020-11-04
    有用
    回复 2
    • 竹风
      竹风
      2021-05-06
      getmsg(frompage) {
          console.log('1111111111111rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr11111111111111111')
          var that = this;
          var tbguid = wx.getStorageSync('tbguid');
          this.Getnoticemsg(
            {
              tbguid:tbguid,
              frompage:frompage
            })
            .then((res) => {
              console.log('111111111111111111111111111111')
              console.log(res)
              if(res.Data.stateCode==1){
                var te=res.Data.te;
                console.log(te)
                if(te.isshowmodel){
                  wx.showModal({
                    title: te.title,
                    content: te.content,
                    showCancel: te.showCancel,//是否显示取消按钮
                    cancelText:te.cancelText,//默认是“取消”
                    cancelColor:te.cancelText,//取消文字的颜色
                    confirmText:te.confirmText,//默认是“确定”
                    confirmColor: te.confirmColor,//确定文字的颜色
                    success: function (res) {
                       if (res.cancel) {
                         that.openpage(te.cancelClicktype,te.cancelClickPage,'cancel',te.msgguid)
                          //点击取消,默认隐藏弹框
                       } else {
                          //点击确定
                          that.openpage(te.confirmClicktype,te.confirmClickPage,'ok',te.msgguid)
                       }
                    },
                    fail: function (res) { },//接口调用失败的回调函数
                    complete: function (res) { },//接口调用结束的回调函数(调用成功、失败都会执行)
                 })
                }
              }
            })
        }
      2021-05-06
      回复
    • 社区技术运营专员-Jahozheng
      社区技术运营专员-Jahozheng
      2021-05-06回复竹风
      按照链接提供代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
      2021-05-06
      回复
  • 少侠
    少侠
    发表于小程序端
    2020-11-04
    wx.showModal?
    2020-11-04
    有用 1
    回复 1
    • 竹风
      竹风
      2021-05-06
      getmsg(frompage) {
          console.log('1111111111111rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr11111111111111111')
          var that = this;
          var tbguid = wx.getStorageSync('tbguid');
          this.Getnoticemsg(
            {
              tbguid:tbguid,
              frompage:frompage
            })
            .then((res) => {
              console.log('111111111111111111111111111111')
              console.log(res)
              if(res.Data.stateCode==1){
                var te=res.Data.te;
                console.log(te)
                if(te.isshowmodel){
                  wx.showModal({
                    title: te.title,
                    content: te.content,
                    showCancel: te.showCancel,//是否显示取消按钮
                    cancelText:te.cancelText,//默认是“取消”
                    cancelColor:te.cancelText,//取消文字的颜色
                    confirmText:te.confirmText,//默认是“确定”
                    confirmColor: te.confirmColor,//确定文字的颜色
                    success: function (res) {
                       if (res.cancel) {
                         that.openpage(te.cancelClicktype,te.cancelClickPage,'cancel',te.msgguid)
                          //点击取消,默认隐藏弹框
                       } else {
                          //点击确定
                          that.openpage(te.confirmClicktype,te.confirmClickPage,'ok',te.msgguid)
                       }
                    },
                    fail: function (res) { },//接口调用失败的回调函数
                    complete: function (res) { },//接口调用结束的回调函数(调用成功、失败都会执行)
                 })
                }
              }
            })
        }
      2021-05-06
      回复
登录 后发表内容
问题标签