收藏
回答

wx.addPhoneContact在安卓上调取失败

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.addPhoneContact 客户端 7.0.3 2.6.0


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

1 个回答

  • 是小白啊
    是小白啊
    2019-02-15

    提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2019-02-15
    有用
    回复 3
    • 付之一笑
      付之一笑
      2019-02-15

      oppor9 7.0.3

      小米note5  7.0.3


      wx.addPhoneContact({

      photoFilePath: that.data.res.photo,

      firstName: that.data.name,

      mobilePhoneNumber: that.data.mobile,

      success: function(res) {

      console.log('1034',res)

      if (res.errMsg == 'addPhoneContact:ok') {

      var info = {

      user_id: that.data.user_id,

      card_id: that.data.card_id,

      readuser_id: that.data.readuser_id,

      readcard_id: that.data.readcard_id,

      porductid: null,

      productstaytime: time,

      status: 7, //保存名片

      }

      util.Conduct_statistical(info) //util.js中

      that.setData({

      bccs: that.data.bccs * 1 + 1

      })

      }

      },

      fail:function(res){

      console.log('1052',res)

      }

      })


      2019-02-15
      回复
    • 是小白啊
      是小白啊
      2019-02-15回复付之一笑

      https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html,按照这个提供下

      2019-02-15
      回复
    • 付之一笑
      付之一笑
      2019-02-15回复是小白啊

      找到问题了,是name没获取到谢谢了


      2019-02-15
      回复
登录 后发表内容