recruit.js 1.4 KB

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