myAppointment.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // pages/myAppointment/myAppointment.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. navItemActive: '0',
  8. dataList: [1,1,1,1,1,1,1,1,1],
  9. vanoverlayshow: false
  10. },
  11. /**
  12. * 生命周期函数--监听页面加载
  13. */
  14. onLoad(options) {
  15. },
  16. /**
  17. * 生命周期函数--监听页面初次渲染完成
  18. */
  19. onReady() {
  20. },
  21. /**
  22. * 生命周期函数--监听页面显示
  23. */
  24. onShow() {
  25. wx.showLoading({
  26. title: '加载中...',
  27. mask: true
  28. })
  29. setTimeout(() => {
  30. wx.hideLoading({
  31. success: (res) => {},
  32. })
  33. }, 1500);
  34. },
  35. /**
  36. * 生命周期函数--监听页面隐藏
  37. */
  38. onHide() {
  39. },
  40. /**
  41. * 生命周期函数--监听页面卸载
  42. */
  43. onUnload() {
  44. },
  45. handleOverlayCancel() {
  46. this.setData({
  47. vanoverlayshow: false
  48. })
  49. },
  50. handleoverlayConfirm () {
  51. },
  52. /**
  53. * 取消预约
  54. */
  55. handleCancel() {
  56. this.setData({
  57. vanoverlayshow: true
  58. })
  59. },
  60. /**
  61. * 切换nav
  62. */
  63. handleChangeNav(e) {
  64. var navItemActive = e.currentTarget.dataset.index
  65. this.setData({
  66. navItemActive: navItemActive
  67. })
  68. }
  69. })