Skip to content

Commit 51f8b15

Browse files
committed
初始化项目
0 parents  commit 51f8b15

File tree

13 files changed

+204
-0
lines changed

13 files changed

+204
-0
lines changed

app.js

Whitespace-only changes.

app.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"pages": [
3+
"pages/home/home",
4+
"pages/about/about"
5+
]
6+
}

app.wxss

Whitespace-only changes.

pages/about/about.js

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
})

pages/about/about.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"usingComponents": {}
3+
}

pages/about/about.wxml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!--pages/about/about.wxml-->
2+
<text>pages/about/about.wxml</text>

pages/about/about.wxss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* pages/about/about.wxss */

pages/home/home.js

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
})

pages/home/home.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"usingComponents": {}
3+
}

pages/home/home.wxml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!--pages/home/home.wxml-->
2+
<text class='title'>Hello World</text>
3+
<button size='mini'>按钮</button>

pages/home/home.wxss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* pages/home/home.wxss */
2+
.title {
3+
color: red;
4+
font-size: 30px;
5+
}

project.config.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"description": "项目配置文件",
3+
"packOptions": {
4+
"ignore": []
5+
},
6+
"setting": {
7+
"urlCheck": true,
8+
"es6": true,
9+
"postcss": true,
10+
"minified": true,
11+
"newFeature": true,
12+
"autoAudits": false
13+
},
14+
"compileType": "miniprogram",
15+
"libVersion": "2.7.1",
16+
"appid": "wx44a8878d2bb8c7d8",
17+
"projectname": "MiniProgram",
18+
"debugOptions": {
19+
"hidedInDevtools": []
20+
},
21+
"isGameTourist": false,
22+
"simulatorType": "wechat",
23+
"simulatorPluginLibVersion": {},
24+
"condition": {
25+
"search": {
26+
"current": -1,
27+
"list": []
28+
},
29+
"conversation": {
30+
"current": -1,
31+
"list": []
32+
},
33+
"game": {
34+
"currentL": -1,
35+
"list": []
36+
},
37+
"miniprogram": {
38+
"current": -1,
39+
"list": []
40+
}
41+
}
42+
}

sitemap.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3+
"rules": [{
4+
"action": "allow",
5+
"page": "*"
6+
}]
7+
}

0 commit comments

Comments
 (0)