takePhoto.js 870 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // pages/takePhoto/takePhoto.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {},
  7. /**
  8. * 生命周期函数--监听页面加载
  9. */
  10. onLoad(options) {},
  11. /**
  12. * 生命周期函数--监听页面初次渲染完成
  13. */
  14. onReady() {},
  15. /**
  16. * 生命周期函数--监听页面显示
  17. */
  18. onShow() {
  19. if (typeof this.getTabBar === "function" && this.getTabBar()) {
  20. this.getTabBar().setData({
  21. selected: 0,
  22. });
  23. }
  24. },
  25. /**
  26. * 生命周期函数--监听页面隐藏
  27. */
  28. onHide() {},
  29. /**
  30. * 生命周期函数--监听页面卸载
  31. */
  32. onUnload() {},
  33. /**
  34. * 页面相关事件处理函数--监听用户下拉动作
  35. */
  36. onPullDownRefresh() {},
  37. /**
  38. * 页面上拉触底事件的处理函数
  39. */
  40. onReachBottom() {},
  41. /**
  42. * 用户点击右上角分享
  43. */
  44. onShareAppMessage() {},
  45. });