mine.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. // pages/mine/mine.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. navigation: {},
  8. section2List: [{
  9. children: [{
  10. name: "税费争议",
  11. icon: "../../images/mine/sfzy.png",
  12. path: ""
  13. },
  14. {
  15. name: "年度评价\n结果查询",
  16. icon: "../../images/mine/ndpjjgcx.png",
  17. path: "../minePages/ndpjjgcx/ndpjjgcx"
  18. },
  19. {
  20. name: "违法违章\n信息查询",
  21. icon: "../../images/mine/wfwzxxcx.png",
  22. path: "../minePages/wfwzxxcx/wfwzxxcx"
  23. },
  24. {
  25. name: "办税日历",
  26. icon: "../../images/mine/bsrl.png",
  27. path: "../minePages/bsrl/bsrl"
  28. }
  29. ]
  30. },
  31. {
  32. children: [{
  33. name: "设立登记\n信息查询",
  34. icon: "../../images/mine/sldjxxcx.png",
  35. path: "../minePages/sldjxxcx/sldjxxcx"
  36. },
  37. {
  38. name: "查询纳税\n人未清缴(欠税费信息)",
  39. icon: "../../images/mine/cxnsrwqj.png",
  40. path: "../minePages/cxnsrwqjxx/cxnsrwqjxx"
  41. },
  42. {
  43. name: "公积金",
  44. icon: "../../images/mine/gjj.png",
  45. path: ""
  46. },
  47. {
  48. name: "国家企业信用信用公示",
  49. icon: "../../images/mine/gjqyxy.png",
  50. path: ""
  51. }
  52. ]
  53. }
  54. ],
  55. userInfo: {},
  56. address: ""
  57. },
  58. /**
  59. * 生命周期函数--监听页面加载
  60. */
  61. onLoad(options) {
  62. let that = this
  63. that.getNavigationBar()
  64. },
  65. getNavigationBar() {
  66. let that = this
  67. const res = wx.getMenuButtonBoundingClientRect()
  68. let navigation = {
  69. width: res.left + 'px',
  70. height: res.height + 6 + 'px',
  71. paddingTop: res.top - 3 + 'px'
  72. }
  73. that.setData({
  74. navigation: navigation
  75. })
  76. },
  77. init() {
  78. let that = this
  79. let address = wx.getStorageSync('ADDRESS')
  80. let userInfo = wx.getStorageSync('USERINFO')
  81. that.setData({
  82. userInfo: userInfo,
  83. address: address
  84. })
  85. },
  86. myInfo() {
  87. wx.navigateTo({
  88. url: "../minePages/grxxxg/grxxxg",
  89. })
  90. },
  91. moreFunction(e) {
  92. let item = e.currentTarget.dataset.item
  93. if (item.path) {
  94. wx.navigateTo({
  95. url: item.path,
  96. })
  97. } else {
  98. wx.showToast({
  99. title: '该功能暂未开通',
  100. icon: "none",
  101. duration: 2000
  102. })
  103. }
  104. },
  105. test() {
  106. wx.showToast({
  107. title: '该功能暂未开通',
  108. icon: "none",
  109. duration: 2000
  110. })
  111. },
  112. /**
  113. * 生命周期函数--监听页面初次渲染完成
  114. */
  115. onReady() {
  116. },
  117. /**
  118. * 生命周期函数--监听页面显示
  119. */
  120. onShow() {
  121. let that = this
  122. that.init()
  123. },
  124. /**
  125. * 生命周期函数--监听页面隐藏
  126. */
  127. onHide() {
  128. },
  129. /**
  130. * 生命周期函数--监听页面卸载
  131. */
  132. onUnload() {
  133. },
  134. /**
  135. * 页面相关事件处理函数--监听用户下拉动作
  136. */
  137. onPullDownRefresh() {
  138. },
  139. /**
  140. * 页面上拉触底事件的处理函数
  141. */
  142. onReachBottom() {
  143. },
  144. /**
  145. * 用户点击右上角分享
  146. */
  147. onShareAppMessage() {
  148. }
  149. })