diff --git a/weapp/app.json b/weapp/app.json index 057624e..61c9182 100644 --- a/weapp/app.json +++ b/weapp/app.json @@ -3,7 +3,8 @@ "pages/index/index", "pages/login/login", "pages/myInfo/myInfo", - "pages/overview/overview" + "pages/overview/overview", + "pages/home/home" ], "subPackages": [ { @@ -17,7 +18,8 @@ "troubleshooting/index", "troubleshooting/shootingForm/index", "inspectionReport/inspectionReport", - "pointsStatus/pointsStatus" + "pointsStatus/pointsStatus", + "homePage/homePage" ] } ], @@ -38,6 +40,12 @@ "selectedIconPath": "images/tabBar/icon_polling_active.png", "text": "巡检总览" }, + { + "pagePath": "pages/home/home", + "iconPath": "images/tabBar/icon_polling.png", + "selectedIconPath": "images/tabBar/icon_polling_active.png", + "text": "首页" + }, { "pagePath": "pages/overview/overview", "iconPath": "images/tabBar/icon_menu.png", diff --git a/weapp/images/conduct.png b/weapp/images/conduct.png new file mode 100644 index 0000000..347b3ee Binary files /dev/null and b/weapp/images/conduct.png differ diff --git a/weapp/images/electricalStorageRoom.png b/weapp/images/electricalStorageRoom.png new file mode 100644 index 0000000..3a9efc9 Binary files /dev/null and b/weapp/images/electricalStorageRoom.png differ diff --git a/weapp/images/elevator'.png b/weapp/images/elevator'.png new file mode 100644 index 0000000..39897f3 Binary files /dev/null and b/weapp/images/elevator'.png differ diff --git a/weapp/images/gas.png b/weapp/images/gas.png new file mode 100644 index 0000000..762b767 Binary files /dev/null and b/weapp/images/gas.png differ diff --git a/weapp/images/highTension.png b/weapp/images/highTension.png new file mode 100644 index 0000000..a64737d Binary files /dev/null and b/weapp/images/highTension.png differ diff --git a/weapp/images/lightningProtection.png b/weapp/images/lightningProtection.png new file mode 100644 index 0000000..a7acbc0 Binary files /dev/null and b/weapp/images/lightningProtection.png differ diff --git a/weapp/images/pipeGallery.png b/weapp/images/pipeGallery.png new file mode 100644 index 0000000..01f74ea Binary files /dev/null and b/weapp/images/pipeGallery.png differ diff --git a/weapp/images/power.png b/weapp/images/power.png new file mode 100644 index 0000000..97486f7 Binary files /dev/null and b/weapp/images/power.png differ diff --git a/weapp/images/security.png b/weapp/images/security.png new file mode 100644 index 0000000..f9163fc Binary files /dev/null and b/weapp/images/security.png differ diff --git a/weapp/images/waterSupply.png b/weapp/images/waterSupply.png new file mode 100644 index 0000000..d41bd33 Binary files /dev/null and b/weapp/images/waterSupply.png differ diff --git a/weapp/package/homePage/homePage.js b/weapp/package/homePage/homePage.js new file mode 100644 index 0000000..dd2982c --- /dev/null +++ b/weapp/package/homePage/homePage.js @@ -0,0 +1,66 @@ +// package/homePage/homePage.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/weapp/package/homePage/homePage.json b/weapp/package/homePage/homePage.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/weapp/package/homePage/homePage.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/weapp/package/homePage/homePage.wxml b/weapp/package/homePage/homePage.wxml new file mode 100644 index 0000000..af2e511 --- /dev/null +++ b/weapp/package/homePage/homePage.wxml @@ -0,0 +1,2 @@ + +package/homePage/homePage.wxml diff --git a/weapp/package/homePage/homePage.wxss b/weapp/package/homePage/homePage.wxss new file mode 100644 index 0000000..eec2e46 --- /dev/null +++ b/weapp/package/homePage/homePage.wxss @@ -0,0 +1 @@ +/* package/homePage/homePage.wxss */ \ No newline at end of file diff --git a/weapp/pages/home/home.js b/weapp/pages/home/home.js new file mode 100644 index 0000000..0ab33e6 --- /dev/null +++ b/weapp/pages/home/home.js @@ -0,0 +1,66 @@ +// pages/home/home.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/weapp/pages/home/home.json b/weapp/pages/home/home.json new file mode 100644 index 0000000..cf62bd8 --- /dev/null +++ b/weapp/pages/home/home.json @@ -0,0 +1,6 @@ +{ + "navigationBarBackgroundColor": "#1979ff", + "navigationBarTextStyle": "white", + "navigationBarTitleText": "首页", + "enablePullDownRefresh": true + } \ No newline at end of file diff --git a/weapp/pages/home/home.wxml b/weapp/pages/home/home.wxml new file mode 100644 index 0000000..0863465 --- /dev/null +++ b/weapp/pages/home/home.wxml @@ -0,0 +1,5 @@ + + + + +pages/home/home.wxml diff --git a/weapp/pages/home/home.wxss b/weapp/pages/home/home.wxss new file mode 100644 index 0000000..bc0eec7 --- /dev/null +++ b/weapp/pages/home/home.wxss @@ -0,0 +1 @@ +/* pages/home/home.wxss */ \ No newline at end of file