Browse Source

feat:首页添加

master
zhaobing’ 1 year ago
parent
commit
2fab464649
  1. 12
      weapp/app.json
  2. BIN
      weapp/images/conduct.png
  3. BIN
      weapp/images/electricalStorageRoom.png
  4. BIN
      weapp/images/elevator'.png
  5. BIN
      weapp/images/gas.png
  6. BIN
      weapp/images/highTension.png
  7. BIN
      weapp/images/lightningProtection.png
  8. BIN
      weapp/images/pipeGallery.png
  9. BIN
      weapp/images/power.png
  10. BIN
      weapp/images/security.png
  11. BIN
      weapp/images/waterSupply.png
  12. 66
      weapp/package/homePage/homePage.js
  13. 3
      weapp/package/homePage/homePage.json
  14. 2
      weapp/package/homePage/homePage.wxml
  15. 1
      weapp/package/homePage/homePage.wxss
  16. 66
      weapp/pages/home/home.js
  17. 6
      weapp/pages/home/home.json
  18. 5
      weapp/pages/home/home.wxml
  19. 1
      weapp/pages/home/home.wxss

12
weapp/app.json

@ -3,7 +3,8 @@
"pages/index/index", "pages/index/index",
"pages/login/login", "pages/login/login",
"pages/myInfo/myInfo", "pages/myInfo/myInfo",
"pages/overview/overview" "pages/overview/overview",
"pages/home/home"
], ],
"subPackages": [ "subPackages": [
{ {
@ -17,7 +18,8 @@
"troubleshooting/index", "troubleshooting/index",
"troubleshooting/shootingForm/index", "troubleshooting/shootingForm/index",
"inspectionReport/inspectionReport", "inspectionReport/inspectionReport",
"pointsStatus/pointsStatus" "pointsStatus/pointsStatus",
"homePage/homePage"
] ]
} }
], ],
@ -38,6 +40,12 @@
"selectedIconPath": "images/tabBar/icon_polling_active.png", "selectedIconPath": "images/tabBar/icon_polling_active.png",
"text": "巡检总览" "text": "巡检总览"
}, },
{
"pagePath": "pages/home/home",
"iconPath": "images/tabBar/icon_polling.png",
"selectedIconPath": "images/tabBar/icon_polling_active.png",
"text": "首页"
},
{ {
"pagePath": "pages/overview/overview", "pagePath": "pages/overview/overview",
"iconPath": "images/tabBar/icon_menu.png", "iconPath": "images/tabBar/icon_menu.png",

BIN
weapp/images/conduct.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 783 B

BIN
weapp/images/electricalStorageRoom.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
weapp/images/elevator'.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
weapp/images/gas.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
weapp/images/highTension.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
weapp/images/lightningProtection.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
weapp/images/pipeGallery.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
weapp/images/power.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
weapp/images/security.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
weapp/images/waterSupply.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

66
weapp/package/homePage/homePage.js

@ -0,0 +1,66 @@
// package/homePage/homePage.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

3
weapp/package/homePage/homePage.json

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

2
weapp/package/homePage/homePage.wxml

@ -0,0 +1,2 @@
<!--package/homePage/homePage.wxml-->
<text>package/homePage/homePage.wxml</text>

1
weapp/package/homePage/homePage.wxss

@ -0,0 +1 @@
/* package/homePage/homePage.wxss */

66
weapp/pages/home/home.js

@ -0,0 +1,66 @@
// pages/home/home.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

6
weapp/pages/home/home.json

@ -0,0 +1,6 @@
{
"navigationBarBackgroundColor": "#1979ff",
"navigationBarTextStyle": "white",
"navigationBarTitleText": "首页",
"enablePullDownRefresh": true
}

5
weapp/pages/home/home.wxml

@ -0,0 +1,5 @@
<!--pages/home/home.wxml-->
<view>
<image src="/images/email.svg" />
</view>
<text>pages/home/home.wxml</text>

1
weapp/pages/home/home.wxss

@ -0,0 +1 @@
/* pages/home/home.wxss */
Loading…
Cancel
Save