拓恒河湖长制全民护河平台WEB端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
830B

  1. // package_mine/pages/myId/index.js
  2. import {getIdApprove} from '../../../api/mine.js'
  3. Page({
  4. /**
  5. * 页面的初始数据
  6. */
  7. data: {
  8. records: {}
  9. },
  10. /**
  11. * 生命周期函数--监听页面加载
  12. */
  13. onLoad(options) {
  14. this.getApproveRecord()
  15. },
  16. getApproveRecord() {
  17. const openid = wx.getStorageSync('openid')
  18. getIdApprove({openid}).then(res=> {
  19. if(res.code === 0) {
  20. this.setData({
  21. records: res.data
  22. })
  23. }
  24. })
  25. },
  26. // 重新申请
  27. reApprove() {
  28. wx.navigateTo({
  29. url: '/package_mine/pages/IdList/index',
  30. })
  31. },
  32. // 返回我的页面
  33. returnList() {
  34. wx.switchTab({
  35. url: '/pages/mine/index',
  36. })
  37. }
  38. })