school.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // pages/findword/findword.js
  2. var app=getApp();
  3. Page({
  4. /**
  5. * 页面的初始数据
  6. */
  7. data: {
  8. webUrl:'',
  9. },
  10. /**
  11. * 生命周期函数--监听页面加载
  12. */
  13. onLoad: function (options) {
  14. if (options.type == '121') {
  15. this.setData({
  16. webUrl:app.globalData.webUrl + 'applet.html#/traincourse?token=' + app.globalData.token + '&client_type=' + app.globalData.clientype+'&empid='+app.globalData.personMsg.binded.id+'&type=1',
  17. })
  18. } else if (options.type == '212') {
  19. this.setData({
  20. webUrl:app.globalData.webUrl + 'applet.html#/traincourse?token=' + app.globalData.token + '&client_type=' + app.globalData.clientype+'&empid='+app.globalData.personMsg.binded.id+'&type=2',
  21. })
  22. } else if (options.type == '313') {
  23. this.setData({
  24. webUrl:app.globalData.webUrl + 'applet.html#/staffAssess?token=' + app.globalData.token + '&client_type=' + app.globalData.clientype+'&empid='+app.globalData.personMsg.binded.id,
  25. })
  26. } else if (options.type == '11') {
  27. this.setData({
  28. webUrl:app.globalData.webUrl + 'applet.html#/daystudy?token=' + app.globalData.token + '&client_type=' + app.globalData.clientype+'&empid='+app.globalData.personMsg.binded.id,
  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. })