index_new.js
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// pages/reservr/index.js
import PubSub from '../../utils/PubSub'
import util from '../../utils/util';
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: util.http_build_query({
laiyuan:'小程序'
}, '/pages/customer/joinSeller')
})
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
return {
title: '请客订包间,就上周到安排'
}
},
})