File tree Expand file tree Collapse file tree 13 files changed +204
-0
lines changed Expand file tree Collapse file tree 13 files changed +204
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "pages" : [
3+ " pages/home/home" ,
4+ " pages/about/about"
5+ ]
6+ }
Original file line number Diff line number Diff line change 1+ // pages/about/about.js
2+ Page ( {
3+
4+ /**
5+ * 页面的初始数据
6+ */
7+ data : {
8+
9+ } ,
10+
11+ /**
12+ * 生命周期函数--监听页面加载
13+ */
14+ onLoad : function ( options ) {
15+
16+ } ,
17+
18+ /**
19+ * 生命周期函数--监听页面初次渲染完成
20+ */
21+ onReady : function ( ) {
22+
23+ } ,
24+
25+ /**
26+ * 生命周期函数--监听页面显示
27+ */
28+ onShow : function ( ) {
29+
30+ } ,
31+
32+ /**
33+ * 生命周期函数--监听页面隐藏
34+ */
35+ onHide : function ( ) {
36+
37+ } ,
38+
39+ /**
40+ * 生命周期函数--监听页面卸载
41+ */
42+ onUnload : function ( ) {
43+
44+ } ,
45+
46+ /**
47+ * 页面相关事件处理函数--监听用户下拉动作
48+ */
49+ onPullDownRefresh : function ( ) {
50+
51+ } ,
52+
53+ /**
54+ * 页面上拉触底事件的处理函数
55+ */
56+ onReachBottom : function ( ) {
57+
58+ } ,
59+
60+ /**
61+ * 用户点击右上角分享
62+ */
63+ onShareAppMessage : function ( ) {
64+
65+ }
66+ } )
Original file line number Diff line number Diff line change 1+ {
2+ "usingComponents" : {}
3+ }
Original file line number Diff line number Diff line change 1+ <!--pages/about/about.wxml-->
2+ <text>pages/about/about.wxml</text>
Original file line number Diff line number Diff line change 1+ /* pages/about/about.wxss */
Original file line number Diff line number Diff line change 1+ // pages/home/home.js
2+ Page ( {
3+
4+ /**
5+ * 页面的初始数据
6+ */
7+ data : {
8+
9+ } ,
10+
11+ /**
12+ * 生命周期函数--监听页面加载
13+ */
14+ onLoad : function ( options ) {
15+
16+ } ,
17+
18+ /**
19+ * 生命周期函数--监听页面初次渲染完成
20+ */
21+ onReady : function ( ) {
22+
23+ } ,
24+
25+ /**
26+ * 生命周期函数--监听页面显示
27+ */
28+ onShow : function ( ) {
29+
30+ } ,
31+
32+ /**
33+ * 生命周期函数--监听页面隐藏
34+ */
35+ onHide : function ( ) {
36+
37+ } ,
38+
39+ /**
40+ * 生命周期函数--监听页面卸载
41+ */
42+ onUnload : function ( ) {
43+
44+ } ,
45+
46+ /**
47+ * 页面相关事件处理函数--监听用户下拉动作
48+ */
49+ onPullDownRefresh : function ( ) {
50+
51+ } ,
52+
53+ /**
54+ * 页面上拉触底事件的处理函数
55+ */
56+ onReachBottom : function ( ) {
57+
58+ } ,
59+
60+ /**
61+ * 用户点击右上角分享
62+ */
63+ onShareAppMessage : function ( ) {
64+
65+ }
66+ } )
Original file line number Diff line number Diff line change 1+ {
2+ "usingComponents" : {}
3+ }
Original file line number Diff line number Diff line change 1+ <!--pages/home/home.wxml-->
2+ <text class='title'>Hello World</text>
3+ <button size='mini'>按钮</button>
You can’t perform that action at this time.
0 commit comments