liujiangyong
1 year ago
6 changed files with 158 additions and 77 deletions
@ -1,78 +1,83 @@ |
|||||
{ |
{ |
||||
"pages": [ |
"pages": [ |
||||
"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", |
"pages/home/home", |
||||
"custom-tab-bar/index" |
"custom-tab-bar/index", |
||||
], |
"pages/workbench/workbench" |
||||
"subPackages": [ |
], |
||||
{ |
"subPackages": [ |
||||
"root": "package", |
{ |
||||
"pages": [ |
"root": "package", |
||||
"polling/polling", |
"pages": [ |
||||
"polling/inspectionRecordDetail/inspectionRecordDetail", |
"polling/polling", |
||||
"basic/basic", |
"polling/inspectionRecordDetail/inspectionRecordDetail", |
||||
"startInspection/startInspection", |
"basic/basic", |
||||
"inspectionInput/inspectionInput", |
"startInspection/startInspection", |
||||
"troubleshooting/index", |
"inspectionInput/inspectionInput", |
||||
"troubleshooting/shootingForm/index", |
"troubleshooting/index", |
||||
"inspectionReport/inspectionReport", |
"troubleshooting/shootingForm/index", |
||||
"pointsStatus/pointsStatus", |
"inspectionReport/inspectionReport", |
||||
"pie/index", |
"pointsStatus/pointsStatus", |
||||
"subSystem/subSystem" |
"subSystem/subSystem" |
||||
] |
] |
||||
} |
} |
||||
], |
], |
||||
"window": { |
"window": { |
||||
"backgroundTextStyle": "dark", |
"backgroundTextStyle": "dark", |
||||
"navigationBarBackgroundColor": "#1979ff", |
"navigationBarBackgroundColor": "#1979ff", |
||||
"navigationBarTextStyle": "white" |
"navigationBarTextStyle": "white" |
||||
}, |
}, |
||||
"tabBar": { |
"tabBar": { |
||||
"custom": true, |
"custom": true, |
||||
"color": "#000000", |
"color": "#000000", |
||||
"selectedColor": "#2F54FF", |
"selectedColor": "#2F54FF", |
||||
"borderStyle": "black", |
"borderStyle": "black", |
||||
"backgroundColor": "#ffffff", |
"backgroundColor": "#ffffff", |
||||
"list": [ |
"list": [ |
||||
{ |
{ |
||||
"pagePath": "pages/index/index", |
"pagePath": "pages/index/index", |
||||
"iconPath": "images/tabBar/icon_polling.png", |
"iconPath": "images/tabBar/icon_polling.png", |
||||
"selectedIconPath": "images/tabBar/icon_polling_active.png", |
"selectedIconPath": "images/tabBar/icon_polling_active.png", |
||||
"text": "巡检总览" |
"text": "巡检总览" |
||||
}, |
}, |
||||
{ |
{ |
||||
"pagePath": "pages/overview/overview", |
"pagePath": "pages/overview/overview", |
||||
"iconPath": "images/tabBar/icon_menu.png", |
"iconPath": "images/tabBar/icon_menu.png", |
||||
"selectedIconPath": "images/tabBar/icon_menu_active.png", |
"selectedIconPath": "images/tabBar/icon_menu_active.png", |
||||
"text": "工作台" |
"text": "工作台" |
||||
}, |
}, |
||||
{ |
{ |
||||
"pagePath": "pages/myInfo/myInfo", |
"pagePath": "pages/myInfo/myInfo", |
||||
"iconPath": "images/tabBar/icon_person.png", |
"iconPath": "images/tabBar/icon_person.png", |
||||
"selectedIconPath": "images/tabBar/icon_person_active.png", |
"selectedIconPath": "images/tabBar/icon_person_active.png", |
||||
"text": "我的" |
"text": "我的" |
||||
} |
}, |
||||
, |
{ |
||||
{ |
"pagePath": "pages/home/home", |
||||
"pagePath": "pages/home/home", |
"iconPath": "/images/tabBar/icon_home.png", |
||||
"iconPath": "/images/tabBar/icon_home.png", |
"selectedIconPath": "/images/tabBar/icon_home_active.png", |
||||
"selectedIconPath": "/images/tabBar/icon_home_active.png", |
"text": "首页" |
||||
"text": "首页" |
}, |
||||
} |
{ |
||||
] |
"pagePath": "pages/workbench/workbench", |
||||
}, |
"iconPath": "images/tabBar/icon_menu.png", |
||||
"permission": { |
"selectedIconPath": "images/tabBar/icon_menu_active.png", |
||||
"scope.userLocation": { |
"text": "工作台" |
||||
"desc": "你的位置信息将用于小程序位置接口的效果展示" |
} |
||||
} |
] |
||||
}, |
}, |
||||
"requiredPrivateInfos": [ |
"permission": { |
||||
"getLocation" |
"scope.userLocation": { |
||||
], |
"desc": "你的位置信息将用于小程序位置接口的效果展示" |
||||
"sitemapLocation": "sitemap.json", |
} |
||||
"lazyCodeLoading": "requiredComponents", |
}, |
||||
"usingComponents": {} |
"requiredPrivateInfos": [ |
||||
|
"getLocation" |
||||
|
], |
||||
|
"sitemapLocation": "sitemap.json", |
||||
|
"lazyCodeLoading": "requiredComponents", |
||||
|
"usingComponents": {} |
||||
} |
} |
@ -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() { |
||||
|
|
||||
|
} |
||||
|
}) |
@ -0,0 +1,3 @@ |
|||||
|
{ |
||||
|
"usingComponents": {} |
||||
|
} |
@ -0,0 +1,2 @@ |
|||||
|
<!--pages/workbench/workbench.wxml--> |
||||
|
<text>pages/workbench/workbench.wxml</text> |
@ -0,0 +1 @@ |
|||||
|
/* pages/workbench/workbench.wxss */ |
Loading…
Reference in new issue