Browse Source

问题解决文件

master
巴林闲侠 2 years ago
parent
commit
82884a6551
  1. 6
      weapp/app.js
  2. 15
      weapp/app.json
  3. 66
      weapp/package/troubleshooting/index.js
  4. 3
      weapp/package/troubleshooting/index.json
  5. 2
      weapp/package/troubleshooting/index.wxml
  6. 1
      weapp/package/troubleshooting/index.wxss
  7. 6
      weapp/pages/overview/overview.js
  8. 4
      weapp/pages/overview/overview.wxml
  9. 2
      weapp/project.config.json
  10. 6
      weapp/project.private.config.json

6
weapp/app.js

@ -3,9 +3,9 @@ App({
onLaunch () { },
globalData: {
userInfo: null,
baseUrl: 'http://10.8.16.221:4900', //api 本地环境
webUrl: "http://10.8.16.221:5900/", //web 本地环境
imgUrl: 'http://10.8.16.221:5900/_file-server/', //文件 本地环境
baseUrl: 'http://10.8.30.112:4900', //api 本地环境
webUrl: "http://10.8.30.112:5900/", //web 本地环境
imgUrl: 'http://10.8.30.112:5900/_file-server/', //文件 本地环境
key: 'ODQBZ-3FZAU-6VIVL-2XXNM-F7CP7-WVFCY' //获取位置信息
},
onShow (e) {

15
weapp/app.json

@ -5,16 +5,19 @@
"pages/myInfo/myInfo",
"pages/overview/overview"
],
"subPackages": [{
"subPackages": [
{
"root": "package",
"pages": [
"polling/polling",
"polling/inspectionRecordDetail/inspectionRecordDetail",
"basic/basic",
"startInspection/startInspection",
"inspectionInput/inspectionInput"
"inspectionInput/inspectionInput",
"troubleshooting/index"
]
}],
}
],
"window": {
"backgroundTextStyle": "dark",
"navigationBarBackgroundColor": "#1979ff",
@ -25,12 +28,14 @@
"selectedColor": "#2F54FF",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [{
"list": [
{
"pagePath": "pages/index/index",
"iconPath": "images/tabBar/icon_polling.png",
"selectedIconPath": "images/tabBar/icon_polling_active.png",
"text": "巡检总览"
}, {
},
{
"pagePath": "pages/overview/overview",
"iconPath": "images/tabBar/icon_menu.png",
"selectedIconPath": "images/tabBar/icon_menu_active.png",

66
weapp/package/troubleshooting/index.js

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

3
weapp/package/troubleshooting/index.json

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

2
weapp/package/troubleshooting/index.wxml

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

1
weapp/package/troubleshooting/index.wxss

@ -0,0 +1 @@
/* package/bindTroubleshooting/index.wxss */

6
weapp/pages/overview/overview.js

@ -15,6 +15,12 @@ Page({
})
},
bindTroubleshooting() {
wx.navigateTo({
url: '/package/troubleshooting/index',
})
},
/**
* 生命周期函数--监听页面加载
*/

4
weapp/pages/overview/overview.wxml

@ -5,12 +5,12 @@
<view class="txt">巡检</view>
<image class="right" src="/images/right.svg"></image>
</view>
<!-- <view class="box">
<view class="box" bindtap="bindTroubleshooting">
<image class="logo" src="/images/tabBar/icon_menu.png"></image>
<view class="txt">问题处理</view>
<image class="right" src="/images/right.svg"></image>
</view>
<view class="box">
<!-- <view class="box">
<image class="logo" src="/images/tabBar/icon_menu.png"></image>
<view class="txt">巡检报告</view>
<image class="right" src="/images/right.svg"></image>

2
weapp/project.config.json

@ -41,7 +41,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.19.4",
"appid": "wxdd82ae635b22ccdb",
"appid": "wx79ff58f03d17f24d",
"projectname": "miniprogram-92",
"condition": {},
"editorSetting": {

6
weapp/project.private.config.json

@ -1,6 +1,8 @@
{
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"setting": {
"urlCheck": false
}
"urlCheck": false,
"compileHotReLoad": true
},
"projectname": "%E8%BF%90%E7%BB%B4%E5%B7%A1%E6%A3%80"
}
Loading…
Cancel
Save