Browse Source

feat:业主端工作台初始化

master
liujiangyong 1 year ago
parent
commit
efa9168a99
  1. 2
      weapp/app.js
  2. 13
      weapp/app.json
  3. 70
      weapp/pages/workbench/workbench.js
  4. 3
      weapp/pages/workbench/workbench.json
  5. 2
      weapp/pages/workbench/workbench.wxml
  6. 1
      weapp/pages/workbench/workbench.wxss

2
weapp/app.js

@ -45,7 +45,7 @@ App({
"text": "首页"
},
{
"pagePath": "/pages/overview/overview",
"pagePath": "/pages/workbench/workbench",
"iconPath": "/images/tabBar/icon_menu.png",
"selectedIconPath": "/images/tabBar/icon_menu_active.png",
"text": "工作台"

13
weapp/app.json

@ -5,7 +5,8 @@
"pages/myInfo/myInfo",
"pages/overview/overview",
"pages/home/home",
"custom-tab-bar/index"
"custom-tab-bar/index",
"pages/workbench/workbench"
],
"subPackages": [
{
@ -20,7 +21,6 @@
"troubleshooting/shootingForm/index",
"inspectionReport/inspectionReport",
"pointsStatus/pointsStatus",
"pie/index",
"subSystem/subSystem"
]
}
@ -54,13 +54,18 @@
"iconPath": "images/tabBar/icon_person.png",
"selectedIconPath": "images/tabBar/icon_person_active.png",
"text": "我的"
}
,
},
{
"pagePath": "pages/home/home",
"iconPath": "/images/tabBar/icon_home.png",
"selectedIconPath": "/images/tabBar/icon_home_active.png",
"text": "首页"
},
{
"pagePath": "pages/workbench/workbench",
"iconPath": "images/tabBar/icon_menu.png",
"selectedIconPath": "images/tabBar/icon_menu_active.png",
"text": "工作台"
}
]
},

70
weapp/pages/workbench/workbench.js

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

3
weapp/pages/workbench/workbench.json

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

2
weapp/pages/workbench/workbench.wxml

@ -0,0 +1,2 @@
<!--pages/workbench/workbench.wxml-->
<text>pages/workbench/workbench.wxml</text>

1
weapp/pages/workbench/workbench.wxss

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