clientInfo.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. // pages/clientInfo/clientInfo.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. urls: [
  8. "https://img1.baidu.com/it/u=202543353,3627416815&fm=26&fmt=auto",
  9. "https://img0.baidu.com/it/u=745609344,230882238&fm=26&fmt=auto",
  10. "https://img0.baidu.com/it/u=286636366,3227707112&fm=26&fmt=auto",
  11. "https://img1.baidu.com/it/u=2450865760,444795162&fm=26&fmt=auto",
  12. "https://img0.baidu.com/it/u=4226275504,4103997964&fm=26&fmt=auto",
  13. "https://img0.baidu.com/it/u=2247422843,411257408&fm=26&fmt=auto",
  14. "https://img0.baidu.com/it/u=3098615520,360170704&fm=26&fmt=auto",
  15. "https://img1.baidu.com/it/u=510862345,2249984174&fm=26&fmt=auto",
  16. "https://img2.baidu.com/it/u=2222750380,2392750381&fm=26&fmt=auto",
  17. ],
  18. tags: ['美丽貌美','短短胳膊粗粗的腿','闭月羞花','人美声甜白富美']
  19. },
  20. /**
  21. * 生命周期函数--监听页面加载
  22. */
  23. onLoad: function (options) {
  24. },
  25. /**
  26. * 生命周期函数--监听页面初次渲染完成
  27. */
  28. onReady: function () {
  29. },
  30. /**
  31. * 生命周期函数--监听页面显示
  32. */
  33. onShow: function () {
  34. },
  35. /**
  36. * 生命周期函数--监听页面隐藏
  37. */
  38. onHide: function () {
  39. },
  40. /**
  41. * 生命周期函数--监听页面卸载
  42. */
  43. onUnload: function () {
  44. },
  45. /**
  46. * 页面相关事件处理函数--监听用户下拉动作
  47. */
  48. onPullDownRefresh: function () {
  49. },
  50. /**
  51. * 页面上拉触底事件的处理函数
  52. */
  53. onReachBottom: function () {
  54. },
  55. /**
  56. * 用户点击右上角分享
  57. */
  58. onShareAppMessage: function () {
  59. },
  60. afterCalendarRender(e) {
  61. const calendar = this.selectComponent('#calendar').calendar
  62. console.log('afterCalendarRender -> calendar', calendar)
  63. const toSet = [
  64. {
  65. year: 2021,
  66. month: 11,
  67. date: 15
  68. },
  69. {
  70. year: 2019,
  71. month: 3,
  72. date: 18
  73. }
  74. ]
  75. calendar.setSelectedDates(toSet)
  76. },
  77. /**
  78. * 图片预览
  79. */
  80. previewImage(e) {
  81. wx.previewImage({
  82. current: e.currentTarget.dataset.index,
  83. urls: this.data.urls
  84. })
  85. }
  86. })