// pages/clientInfo/clientInfo.js Page({ /** * 页面的初始数据 */ data: { urls: [ "https://img1.baidu.com/it/u=202543353,3627416815&fm=26&fmt=auto", "https://img0.baidu.com/it/u=745609344,230882238&fm=26&fmt=auto", "https://img0.baidu.com/it/u=286636366,3227707112&fm=26&fmt=auto", "https://img1.baidu.com/it/u=2450865760,444795162&fm=26&fmt=auto", "https://img0.baidu.com/it/u=4226275504,4103997964&fm=26&fmt=auto", "https://img0.baidu.com/it/u=2247422843,411257408&fm=26&fmt=auto", "https://img0.baidu.com/it/u=3098615520,360170704&fm=26&fmt=auto", "https://img1.baidu.com/it/u=510862345,2249984174&fm=26&fmt=auto", "https://img2.baidu.com/it/u=2222750380,2392750381&fm=26&fmt=auto", ], tags: ['美丽貌美','短短胳膊粗粗的腿','闭月羞花','人美声甜白富美'] }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { }, /** * 生命周期函数--监听页面隐藏 */ onHide: function () { }, /** * 生命周期函数--监听页面卸载 */ onUnload: function () { }, /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh: function () { }, /** * 页面上拉触底事件的处理函数 */ onReachBottom: function () { }, /** * 用户点击右上角分享 */ onShareAppMessage: function () { }, afterCalendarRender(e) { const calendar = this.selectComponent('#calendar').calendar console.log('afterCalendarRender -> calendar', calendar) const toSet = [ { year: 2021, month: 11, date: 15 }, { year: 2019, month: 3, date: 18 } ] calendar.setSelectedDates(toSet) }, /** * 图片预览 */ previewImage(e) { wx.previewImage({ current: e.currentTarget.dataset.index, urls: this.data.urls }) } })