E企盈营销工具技术服务商 热线:4006-838-530

微信小程序开具发票获取公司抬头

E企盈直播平台营销卖货系统

获取用户发票抬头需要用户点击授权,所以有两种情况,确认授权、取消授权。情况一,用户第一次访问用户地址授权,并且点击确定授权。情况二,用户点击取消授权后,再次获取授权完整代码:image src=’/images/address.png’ class=’address’ bindtap=’onAddress’/image  //地址簿  onAddress: function() {    wx.getSetting({      success(res) {        console.log(res)        if (res.authSetting[‘scope.address’]) {          wx.chooseAddress({            success(res) {              console.log(res)            }          })        } else {          if (res.authSetting[‘scope.address’] == false) {            console.log(“222”)            wx.openSetting({              success(res) {                console.log(res.authSetting)              }            })          } else {            console.log(“eee”)            wx.chooseAddress({              success(res) {                console.log(res.userName)                console.log(res.postalCode)                console.log(res.provinceName)                console.log(res.cityName)                console.log(res.countyName)                console.log(res.detailInfo)                console.log(res.nationalCode)                console.log(res.telNumber)              }            })          }        }      }    })  },

赞(0) 打赏
未经允许不得转载:E企盈小程序开发-热线:4006-838-530 » 微信小程序开具发票获取公司抬头
分享到: 更多 (0)
E企盈小程序直播营销卖货系统
E企盈直播平台营销卖货系统

评论 抢沙发

E企盈小程序开发

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏