mine.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. path: ""
  42. },
  43. {
  44. name: "公积金",
  45. icon: "../../images/mine/gjj.png",
  46. path: ""
  47. },
  48. {
  49. name: "国家企业信用信用公示",
  50. icon: "../../images/mine/gjqyxy.png",
  51. path: ""
  52. }
  53. ]
  54. }
  55. ],
  56. userInfo: {},
  57. address: ""
  58. },
  59. /**
  60. * 生命周期函数--监听页面加载
  61. */
  62. onLoad(options) {
  63. let that = this
  64. that.getNavigationBar()
  65. },
  66. getNavigationBar() {
  67. let that = this
  68. const res = wx.getMenuButtonBoundingClientRect()
  69. let navigation = {
  70. width: res.left + 'px',
  71. height: res.height + 6 + 'px',
  72. paddingTop: res.top - 3 + 'px'
  73. }
  74. that.setData({
  75. navigation: navigation
  76. })
  77. },
  78. init() {
  79. let that = this
  80. let address = wx.getStorageSync('ADDRESS')
  81. let userInfo = wx.getStorageSync('USERINFO')
  82. that.setData({
  83. userInfo: userInfo,
  84. address: address
  85. })
  86. },
  87. myInfo() {
  88. wx.navigateTo({
  89. url: "../minePages/grxxxg/grxxxg",
  90. })
  91. },
  92. moreFunction(e) {
  93. let item = e.currentTarget.dataset.item
  94. if (item.path) {
  95. wx.navigateTo({
  96. url: item.path,
  97. })
  98. } else {
  99. wx.showToast({
  100. title: '该功能暂未开通',
  101. icon: "none",
  102. duration: 2000
  103. })
  104. }
  105. },
  106. test() {
  107. wx.showToast({
  108. title: '该功能暂未开通',
  109. icon: "none",
  110. duration: 2000
  111. })
  112. },
  113. /**
  114. * 生命周期函数--监听页面初次渲染完成
  115. */
  116. onReady() {
  117. },
  118. /**
  119. * 生命周期函数--监听页面显示
  120. */
  121. onShow() {
  122. let that = this
  123. that.init()
  124. },
  125. /**
  126. * 生命周期函数--监听页面隐藏
  127. */
  128. onHide() {
  129. },
  130. /**
  131. * 生命周期函数--监听页面卸载
  132. */
  133. onUnload() {
  134. },
  135. /**
  136. * 页面相关事件处理函数--监听用户下拉动作
  137. */
  138. onPullDownRefresh() {
  139. },
  140. /**
  141. * 页面上拉触底事件的处理函数
  142. */
  143. onReachBottom() {
  144. },
  145. /**
  146. * 用户点击右上角分享
  147. */
  148. onShareAppMessage() {
  149. }
  150. })