editcase.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. const app=getApp();
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. weburl:'',
  8. },
  9. /**
  10. * 生命周期函数--监听页面加载
  11. */
  12. onLoad(options) {
  13. if(options.cid){
  14. this.setData({
  15. weburl:app.globalData.webUrl+'applet.html#/revisecase?token='+app.globalData.token+"&cid="+options.cid+"&empid="+app.globalData.personMsg.binded.id + '&client_type=' + app.globalData.clientype+"&platform="+app.globalData.platform,
  16. })
  17. }else{{
  18. this.setData({
  19. weburl:app.globalData.webUrl+'applet.html#/editcase?token='+app.globalData.token+"&empid="+app.globalData.personMsg.binded.id + '&client_type=' + app.globalData.clientype+"&platform="+app.globalData.platform,
  20. })
  21. }}
  22. },
  23. /**
  24. * 生命周期函数--监听页面初次渲染完成
  25. */
  26. onReady() {
  27. },
  28. /**
  29. * 生命周期函数--监听页面显示
  30. */
  31. onShow() {
  32. },
  33. /**
  34. * 生命周期函数--监听页面隐藏
  35. */
  36. onHide() {
  37. },
  38. /**
  39. * 生命周期函数--监听页面卸载
  40. */
  41. onUnload() {
  42. },
  43. /**
  44. * 页面相关事件处理函数--监听用户下拉动作
  45. */
  46. onPullDownRefresh() {
  47. },
  48. /**
  49. * 页面上拉触底事件的处理函数
  50. */
  51. onReachBottom() {
  52. },
  53. })