收藏
回答

手机号快速验证登录组件真机调试报错?

getPhoneNumber(e){

var that = this

var code = e.detail.code

console.log(code)

console.log(22222)

// debugger

LoginByWxPhone({code:code,username:that.openIdCode}).then(res=>{

console.log(res)

if (res.code == 200 && res.token) {

uni.setStorageSync('token', res.token);

this.loadUserInfo()

}else{

this.$u.toast('验证失败')

}

}).catch((res) => {

console.log("catch")

console.log(res)

uni.showToast({

title: res,

icon: "none"

})

}).finally(() => {

console.log("finally")

uni.hideLoading()

})

},

报错内容为

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

2 个回答

  • 社区技术运营专员-Jahozheng
    社区技术运营专员-Jahozheng
    03-26

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

    03-26
    有用
    回复
  • hero
    hero
    03-24

    是因为隐私协议正在开通?


    03-24
    有用
    回复 1
    • hero
      hero
      发表于移动端
      03-26
      已解决,确实是用户隐私协议指引没有通过
      03-26
      回复
登录 后发表内容