智慧申请系统
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.

89 lines
1.4 KiB

  1. // pages/family/community/community.js
  2. const app = getApp()
  3. Page({
  4. /**
  5. * 页面的初始数据
  6. */
  7. data: {
  8. communityList: [],
  9. index: 0,
  10. communityInfo: {}
  11. },
  12. /**
  13. * 生命周期函数--监听页面加载
  14. */
  15. onLoad(options) {
  16. },
  17. /**
  18. * 生命周期函数--监听页面初次渲染完成
  19. */
  20. onReady() {
  21. },
  22. /**
  23. * 生命周期函数--监听页面显示
  24. */
  25. onShow() {
  26. this.getArea();
  27. },
  28. getArea() {
  29. app.ajax('jjSubsidyApply/client/getApplyRegion', 'get', {}, null, (res)=> {
  30. this.setData({
  31. communityList: res,
  32. communityInfo: res[0]
  33. })
  34. },(err)=> {
  35. app.tips(err)
  36. })
  37. },
  38. bindPickerChange(e) {
  39. let value = e.detail.value;
  40. let info = this.data.communityList[value]
  41. this.setData({
  42. index: value,
  43. communityInfo: info
  44. })
  45. },
  46. confirm() {
  47. let { orgcode, jgxh } = this.data.communityInfo;
  48. app.justpage(`/pages/familys/advanced/advanced?jgdm=${orgcode}&jgxh=${jgxh}`)
  49. },
  50. /**
  51. * 生命周期函数--监听页面隐藏
  52. */
  53. onHide() {
  54. },
  55. /**
  56. * 生命周期函数--监听页面卸载
  57. */
  58. onUnload() {
  59. },
  60. /**
  61. * 页面相关事件处理函数--监听用户下拉动作
  62. */
  63. onPullDownRefresh() {
  64. },
  65. /**
  66. * 页面上拉触底事件的处理函数
  67. */
  68. onReachBottom() {
  69. },
  70. /**
  71. * 用户点击右上角分享
  72. */
  73. onShareAppMessage() {
  74. }
  75. })