recruit.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. var app = getApp();
  2. var util = require('../../utils/util.js');
  3. var WxParse = require('../../wxParse/wxParse.js');
  4. var status = require('../../utils/index.js');
  5. Page({
  6. /**
  7. * 页面的初始数据
  8. */
  9. data: {
  10. },
  11. /**
  12. * 生命周期函数--监听页面加载
  13. */
  14. onLoad: function (options) {
  15. status.setNavBgColor();
  16. let that = this;
  17. app.util.request({
  18. 'url': 'entry/wxapp/index',
  19. 'data': {
  20. controller: 'supply.get_apply_page'
  21. },
  22. dataType: 'json',
  23. success: function (res) {
  24. if (res.data.code == 0) {
  25. console.log(res)
  26. let article = res.data.data || '';
  27. WxParse.wxParse('article', 'html', article, that, 5);
  28. }
  29. }
  30. })
  31. },
  32. /**
  33. * 生命周期函数--监听页面初次渲染完成
  34. */
  35. onReady: function () {
  36. },
  37. /**
  38. * 生命周期函数--监听页面显示
  39. */
  40. onShow: function () {
  41. },
  42. /**
  43. * 生命周期函数--监听页面隐藏
  44. */
  45. onHide: function () {
  46. },
  47. /**
  48. * 生命周期函数--监听页面卸载
  49. */
  50. onUnload: function () {
  51. },
  52. /**
  53. * 页面相关事件处理函数--监听用户下拉动作
  54. */
  55. onPullDownRefresh: function () {
  56. },
  57. /**
  58. * 页面上拉触底事件的处理函数
  59. */
  60. onReachBottom: function () {
  61. },
  62. /**
  63. * 用户点击右上角分享
  64. */
  65. onShareAppMessage: function () {
  66. }
  67. })