index_new.js 1.23 KB
// pages/reservr/index.js
import PubSub from '../../utils/PubSub'
Page({
  data: {
    background: ['https://qn.colorcun.com/homeImg1.png', 'https://qn.colorcun.com/homeImg2.png',
      'https://qn.colorcun.com/homeImg3.png', 'https://qn.colorcun.com/homeImg4.png',
      'https://qn.colorcun.com/homeImg5.png', 'https://qn.colorcun.com/homeImg6.png',
      'https://qn.colorcun.com/homeImg7.png', 'https://qn.colorcun.com/homeImg8.png',
      'https://qn.colorcun.com/homeImg9.png'
    ]
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {},

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {},

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    PubSub.emit('custom-tab-bar')
  },
  // 跳转到商家入驻页
  gotoJoinSeller() {
    wx.navigateTo({
      url: '/pages/customer/joinSeller',
    })
  },
  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    return {
      title: '请客订包间,就上周到安排'
    }
  },
})