Blogger Information
Blog 56
fans 7
comment 11
visits 222435
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
小程序获取微信发fa票抬头
樂成的开发笔记
Original
1699 people have browsed it

小程序快速获取微信保存的发fa票抬头

  1. //获取微信发fa票抬头
  2. onInvoiceTitle: function () {
  3. var that = this;
  4. wx.getSetting({
  5. success(res) {
  6. console.log(res)
  7. if (res.authSetting['scope.invoiceTitle']) {
  8. wx.chooseInvoiceTitle({
  9. success(res) {
  10. console.log(res)
  11. that.setData({
  12. BankAccount: res.bankAccount, //银行账户
  13. BankDeposit: res.bankName, //开户行
  14. CompanyAddress: res.companyAddress, //公司地址
  15. RatepayingNumber: res.taxNumber, //纳税号
  16. ConsigneeAddress: res.companyAddress, //收件地址(默认公司地址)
  17. PhoneNumber:res.telephone, //***
  18. Rise: res.title //抬头
  19. });
  20. }
  21. })
  22. } else {
  23. if (res.authSetting['scope.invoiceTitle'] == false) {
  24. console.log("没获取权限")
  25. wx.openSetting({
  26. success(res) {
  27. console.log(res.authSetting)
  28. }
  29. })
  30. } else {
  31. console.log("重新获取")
  32. wx.chooseInvoiceTitle({
  33. success(res) {
  34. that.setData({
  35. BankAccount: res.bankAccount, //银行账户
  36. BankDeposit: res.bankName, //开户行
  37. CompanyAddress: res.companyAddress, //公司地址
  38. RatepayingNumber: res.taxNumber, //纳税号
  39. ConsigneeAddress: res.companyAddress, //收件地址(默认公司地址)
  40. PhoneNumber: res.telephone, //***
  41. Rise: res.title //抬头
  42. });
  43. }
  44. })
  45. }
  46. }
  47. }
  48. })
  49. },
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post