cxnsrwqjxx.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. // pages/minePages/cxnsrwqjxx/cxnsrwqjxx.js
  2. import {
  3. xcxGetCompanyList,
  4. } from "../../../apis/index"
  5. import {
  6. illegalInformationSelect,
  7. } from "../../../apis/smzc"
  8. Page({
  9. /**
  10. * 页面的初始数据
  11. */
  12. data: {
  13. swjgShow: false,
  14. swjgList: [],
  15. swjg: {}
  16. },
  17. /**
  18. * 生命周期函数--监听页面加载
  19. */
  20. onLoad(options) {
  21. },
  22. selectSwjg() {
  23. let that = this
  24. wx.showLoading({
  25. title: '正在获取税务机关信息',
  26. })
  27. that.setData({
  28. swjgShow: true
  29. })
  30. xcxGetCompanyList({
  31. xm: wx.getStorageSync('USERINFO').name,
  32. sfzjhm: wx.getStorageSync('USERINFO').idcard
  33. }).then(res => {
  34. wx.hideLoading()
  35. if (res.code == 200) {
  36. that.setData({
  37. swjgList: res.list
  38. })
  39. } else {
  40. wx.showToast({
  41. title: res.msg || res.message,
  42. icon: "none",
  43. duration: 5000
  44. })
  45. }
  46. })
  47. },
  48. selectedSwjg(e) {
  49. let that = this
  50. let item = e.currentTarget.dataset.item
  51. that.setData({
  52. swjgShow: false,
  53. swjg: item
  54. })
  55. },
  56. close() {
  57. let that = this
  58. that.setData({
  59. swjgShow: false
  60. })
  61. },
  62. /**
  63. * 生命周期函数--监听页面初次渲染完成
  64. */
  65. onReady() {
  66. },
  67. /**
  68. * 生命周期函数--监听页面显示
  69. */
  70. onShow() {
  71. },
  72. /**
  73. * 生命周期函数--监听页面隐藏
  74. */
  75. onHide() {
  76. },
  77. /**
  78. * 生命周期函数--监听页面卸载
  79. */
  80. onUnload() {
  81. },
  82. /**
  83. * 页面相关事件处理函数--监听用户下拉动作
  84. */
  85. onPullDownRefresh() {
  86. },
  87. /**
  88. * 页面上拉触底事件的处理函数
  89. */
  90. onReachBottom() {
  91. },
  92. /**
  93. * 用户点击右上角分享
  94. */
  95. onShareAppMessage() {
  96. }
  97. })