Browse Source

pages.json删除冗余+tabbar冗余页面删除

ming 1 year ago
parent
commit
bdb715c62b
4 changed files with 25 additions and 1230 deletions
  1. 24 715
      src/pages.json
  2. 1 0
      src/pages/index.vue
  3. 0 202
      src/pages/info.vue
  4. 0 313
      src/pages/mine.vue

+ 24 - 715
src/pages.json

@@ -42,725 +42,34 @@
                 "navigationStyle": "custom",
                 "navigationBarTextStyle": "black"
             }
-        },
-        {
-            "path": "pages/info",
-            "style": {
-                "navigationBarTitleText": "消息",
-                "navigationStyle": "custom",
-                "enablePullDownRefresh": false,
-                "app-plus": {
-                    "bounce": "none",
-                    "titleNView": false
-                }
-            }
-        },
-        {
-            "path": "pages/mine",
-            "style": {
-                "navigationBarTitleText": "我的",
-                "navigationStyle": "custom",
-                "app-plus": {
-                    "bounce": "none",
-                    "titleNView": false
-                }
-            }
         }
+        // {
+        //     "path": "pages/info",
+        //     "style": {
+        //         "navigationBarTitleText": "消息",
+        //         "navigationStyle": "custom",
+        //         "enablePullDownRefresh": false,
+        //         "app-plus": {
+        //             "bounce": "none",
+        //             "titleNView": false
+        //         }
+        //     }
+        // },
+        // {
+        //     "path": "pages/mine",
+        //     "style": {
+        //         "navigationBarTitleText": "我的",
+        //         "navigationStyle": "custom",
+        //         "app-plus": {
+        //             "bounce": "none",
+        //             "titleNView": false
+        //         }
+        //     }
+        // }
        
     ],
     "subPackages": [
-        {
-            "name": "公共模块",
-            "root": "pages/common",
-            "pages": [
-                {
-                    "path": "webview/index",
-                    "style": {
-                        "navigationBarTitleText": "浏览网页"
-                    }
-                },
-                {
-                    "path": "textview/index",
-                    "style": {
-                        "navigationBarTitleText": "浏览文本"
-                    }
-                },
-                {
-                    "path": "square/index",
-                    "style": {
-                        "navigationBarTitleText": "",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "invoicing/index",
-                    "style": {
-                        "navigationBarTitleText": "续费提醒",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "phoneVerify/index",
-                    "style": {
-                        "navigationBarTitleText": "",
-                        "navigationBarTextStyle": "black",
-                        "navigationBarBackgroundColor": "#FFFFFF"
-                    }
-                },
-                {
-                    "path": "success/index",
-                    "style": {
-                        "navigationBarTitleText": "提交成功",
-                        "navigationStyle": "custom",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "appMessage/index",
-                    "style": {
-                        "navigationBarTitleText": "消息列表",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "appMessage/details",
-                    "style": {
-                        "navigationBarTitleText": "消息详情",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "alarmMessage/index",
-                    "style": {
-                        "navigationBarTitleText": "告警通知",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "evaluate/index",
-                    "style": {
-                        "navigationBarTitleText": "服务评价",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "nfc/index",
-                    "style": {
-                        "navigationBarTitleText": "NFC读取",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "searchSelect/index",
-                    "style": {
-                        "navigationBarTitleText": "搜索",
-                        "navigationStyle": "custom",
-                        "enablePullDownRefresh": false,
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                }
-            ]
-        },
-        {
-            "name": "我的",
-            "root": "pages/mine",
-            "pages": [
-                {
-                    "path": "info/index",
-                    "style": {
-                        "navigationBarTitleText": "我的信息"
-                    }
-                },
-                {
-                    "path": "msg/index",
-                    "style": {
-                        "navigationBarTitleText": "消息设置"
-                    }
-                },
-                {
-                    "path": "secure/index",
-                    "style": {
-                        "navigationBarTitleText": "账号与安全"
-                    }
-                },
-                {
-                    "path": "secure/loginLog/index",
-                    "style": {
-                        "navigationBarTitleText": "登录日志",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "secure/fingerprint/index",
-                    "style": {
-                        "navigationBarTitleText": "",
-                        "navigationBarTextStyle": "black",
-                        "navigationBarBackgroundColor": "#FFFFFF"
-                    }
-                },
-                {
-                    "path": "avatar/index",
-                    "style": {
-                        "navigationBarTitleText": "修改头像"
-                    }
-                },
-                {
-                    "path": "help/index",
-                    "style": {
-                        "navigationBarTitleText": "常见问题",
-                        "navigationStyle": "custom",
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                },
-                {
-                    "path": "about/index",
-                    "style": {
-                        "navigationBarTitleText": "关于我们",
-                        "navigationStyle": "custom",
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                },
-                {
-                    "path": "setting/index",
-                    "style": {
-                        "navigationBarTitleText": "设置",
-                        "enablePullDownRefresh": false
-                    }
-                }
-            ]
-        },
-        {
-            "name": "智慧安防",
-            "root": "pages/business/zhaf/",
-            "pages": [
-                {
-                    "path": "xunJian/xunJian",
-                    "style": {
-                        "navigationBarTitleText": "巡检",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "xunJian/plan/index",
-                    "style": {
-                        "navigationBarTitleText": "巡检计划",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "xunJian/plan/components/siteDetails",
-                    "style": {
-                        "navigationBarTitleText": "站点详情",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "xunJian/plan/components/content",
-                    "style": {
-                        "navigationBarTitleText": "巡检内容",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "xunJian/plan/components/report",
-                    "style": {
-                        "navigationBarTitleText": "巡检上报",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "xunJian/record/index",
-                    "style": {
-                        "navigationBarTitleText": "巡检记录",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "xunJian/record/recordDetail/index",
-                    "style": {
-                        "navigationBarTitleText": "巡检记录详情",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "xunJian/collect/index",
-                    "style": {
-                        "navigationBarTitleText": "点位采集",
-                        "navigationStyle": "custom",
-                        "enablePullDownRefresh": false,
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                },
-                {
-                    "path": "xunJian/collect/components/collectDetail",
-                    "style": {
-                        "navigationBarTitleText": "采集上报",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "xunJian/collect/components/collectRecord",
-                    "style": {
-                        "navigationBarTitleText": "采集记录",
-                        "navigationStyle": "custom",
-                        "enablePullDownRefresh": false,
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                },
-                {
-                    "path": "xunJian/error/index",
-                    "style": {
-                        "navigationBarTitleText": "异常上报",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "xunJian/error/errorList",
-                    "style": {
-                        "navigationBarTitleText": "异常列表",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "xunJian/error/errorListDetail",
-                    "style": {
-                        "navigationBarTitleText": "事件详情",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "xunJian/error/errorDisposition",
-                    "style": {
-                        "navigationBarTitleText": "处置内容",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "signIn/index",
-                    "style": {
-                        "navigationBarTitleText": "人员签到",
-                        "enablePullDownRefresh": false
-                    }
-                }
-            ]
-        },
-        {
-            "name": "闵行消防",
-            "root": "pages/business/mhxf/",
-            "pages": [
-                {
-                    "path": "informationSelect/index",
-                    "style": {
-                        "navigationBarTitleText": "信息查询",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "deviceManage/index",
-                    "style": {
-                        "navigationBarTitleText": "设备管理",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "coordination/index",
-                    "style": {
-                        "navigationBarTitleText": "协同作战地图",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "unitInfoCollection/index",
-                    "style": {
-                        "navigationBarTitleText": "单位信息采集",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "fireReport/index",
-                    "style": {
-                        "navigationBarTitleText": "消防报告",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "fireReport/components/detailed",
-                    "style": {
-                        "navigationBarTitleText": "消防报告",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "fireReport/components/detailedPath",
-                    "style": {
-                        "navigationBarTitleText": "消防报告",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "needMatter/index",
-                    "style": {
-                        "navigationBarTitleText": "待办事项",
-                        "enablePullDownRefresh": false
-                    }
-                }
-            ]
-        },
-        {
-            "name": "智慧消防",
-            "root": "pages/business/zhxf/",
-            "pages": [
-                {
-                    "path": "messagePush/index",
-                    "style": {
-                        "navigationBarTitleText": "消息推送设置",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "building/index",
-                    "style": {
-                        "navigationBarTitleText": "建筑管理",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "fireInspect/index",
-                    "style": {
-                        "navigationBarTitleText": "消防督察单",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "fireInspect/inspectDetailsList/index",
-                    "style": {
-                        "navigationBarTitleText": "",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "fireInspect/inspectDetails/index",
-                    "style": {
-                        "navigationBarTitleText": "消防督察单处理",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "funReport/index",
-                    "style": {
-                        "navigationBarTitleText": "功能报备",
-                        "enablePullDownRefresh": false,
-                        "onReachBottomDistance": 100
-                    }
-                },
-                {
-                    "path": "funReport/funcAdd/index",
-                    "style": {
-                        "navigationBarTitleText": "功能报备新增",
-                        "enablePullDownRefresh": false
-                    }
-                }
-            ]
-        },
-        {
-            "name": "消防物联网",
-            "root": "pages/business/fireIot/",
-            "pages": [
-                {
-                    "path": "deviceManage/index",
-                    "style": {
-                        "navigationBarTitleText": "设备管理",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "deviceManage/components/deviceDetailsList",
-                    "style": {
-                        "navigationBarTitleText": "",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "deviceManage/components/deviceDetails",
-                    "style": {
-                        "navigationBarTitleText": "设备详情",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "facilitiesGather/index",
-                    "style": {
-                        "navigationBarTitleText": "设施采集",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "facilitiesGather/mapGather",
-                    "style": {
-                        "navigationBarTitleText": "地图采集",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "facilitiesManage/index",
-                    "style": {
-                        "navigationBarTitleText": "设施管理",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "facilitiesManage/mapFacilitiesView",
-                    "style": {
-                        "navigationBarTitleText": "设施查看",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "facilitiesManage/facilitiesDetailsList",
-                    "style": {
-                        "navigationBarTitleText": "",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "facilitiesManage/facilitiesDetails",
-                    "style": {
-                        "navigationBarTitleText": "设施详情",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "alarmManage/index",
-                    "style": {
-                        "navigationBarTitleText": "告警管理",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "alarmManage/alarmDetailsList/index",
-                    "style": {
-                        "navigationBarTitleText": "",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "alarmManage/alarmDetails/index",
-                    "style": {
-                        "navigationBarTitleText": "告警处理",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "repairManage/repairDetailsList",
-                    "style": {
-                        "navigationBarTitleText": "报修列表",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "repairManage/repairDetails",
-                    "style": {
-                        "navigationBarTitleText": "报修处理",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "customManage/index",
-                    "style": {
-                        "navigationBarTitleText": "客户管理",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "repairReport/index",
-                    "style": {
-                        "navigationBarTitleText": "报修申请",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "repairReport/record",
-                    "style": {
-                        "navigationBarTitleText": "报修历史",
-                        "enablePullDownRefresh": false
-                    }
-                }
-            ]
-        },
-        {
-            "name": "业务公共模块",
-            "root": "pages/business/common/",
-            "pages": [
-                {
-                    "path": "fastMail/index",
-                    "style": {
-                        "navigationBarTitleText": "我的快递",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "videoMonitor/videoList",
-                    "style": {
-                        "navigationBarTitleText": "视频监测列表",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "videoMonitor/videoDetail",
-                    "style": {
-                        "navigationBarTitleText": "实时监控",
-                        "enablePullDownRefresh": false
-                    }
-                },
-                {
-                    "path": "projectMange/record/index",
-                    "style": {
-                        "navigationBarTitleText": "工作报告",
-                        "enablePullDownRefresh": false,
-                        "navigationStyle": "custom",
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                },
-                {
-                    "path": "projectMange/record/details",
-                    "style": {
-                        "navigationBarTitleText": "报告详情",
-                        "enablePullDownRefresh": false,
-                        "navigationStyle": "custom",
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                },
-                {
-                    "path": "projectMange/overview/index",
-                    "style": {
-                        "navigationBarTitleText": "项目概览",
-                        "enablePullDownRefresh": false,
-                        "navigationStyle": "custom",
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                },
-                {
-                    "path": "projectMange/record/timingLog",
-                    "style": {
-                        "navigationBarTitleText": "定时日志",
-                        "enablePullDownRefresh": false,
-                        "navigationStyle": "custom",
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                },
-                {
-                    "path": "projectMange/write/index",
-                    "style": {
-                        "navigationBarTitleText": "报告填写",
-                        "enablePullDownRefresh": false,
-                        "navigationStyle": "custom",
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                },
-                {
-                    "path": "projectMange/write/insert",
-                    "style": {
-                        "navigationBarTitleText": "",
-                        "enablePullDownRefresh": false,
-                        "navigationStyle": "custom",
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                },
-                {
-                    "path": "projectMange/list/index",
-                    "style": {
-                        "navigationBarTitleText": "项目列表",
-                        "enablePullDownRefresh": false,
-                        "navigationStyle": "custom",
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                },
-                {
-                    "path": "projectMange/list/addEdit",
-                    "style": {
-                        "navigationBarTitleText": "",
-                        "enablePullDownRefresh": false,
-                        "navigationStyle": "custom",
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                },
-                {
-                    "path": "projectMange/mall/index",
-                    "style": {
-                        "navigationBarTitleText": "选择接收人",
-                        "enablePullDownRefresh": false,
-                        "navigationStyle": "custom",
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                },
-                {
-                    "path": "meeting/index",
-                    "style": {
-                        "navigationBarTitleText": "会议预约",
-                        "enablePullDownRefresh": false,
-                        "navigationStyle": "custom",
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                },
-                {
-                    "path": "meeting/new/index",
-                    "style": {
-                        "navigationBarTitleText": "新建日程",
-                        "enablePullDownRefresh": false,
-                        "navigationStyle": "custom",
-                        "app-plus": {
-                            "bounce": "none",
-                            "titleNView": false
-                        }
-                    }
-                }
-            ]
-        }
+
     ],
     "globalStyle": {
         "navigationBarTextStyle": "white",

+ 1 - 0
src/pages/index.vue

@@ -1,5 +1,6 @@
 <template>
   <view>登录了</view>
+  <!--       <web-view src="https://manager.usky.cn/mobile/#/">跳转</web-view> -->
 </template>
 
 <script setup>

+ 0 - 202
src/pages/info.vue

@@ -1,202 +0,0 @@
-<template>
-  <u-navbar :autoBack="false" :placeholder="true" :safeAreaInsetTop="true" :bgColor="proxy.$settingStore.themeColor.color">
-    <template #left>
-      <view class="u-navbar__content__left__item">
-        <view class="u-navbar__content__left__item__title" style="color: #fff"> 消息中心 </view>
-      </view>
-      <view class="u-navbar__content__left__item topBadge">
-        <u-badge numberType="overflow" max="99" :value="infoList.total || 0"></u-badge>
-      </view>
-      <view class="u-navbar__content__left__item topImage" @click="clearMsg" v-if="infoList.total > 0">
-        <image class="image-bg-top" src="/static/images/common/clear.png" />
-      </view>
-    </template>
-    <template #right>
-      <!-- <view class="u-navbar__content__right__item">
-        <text class="iconfont oaIcon-qingchu" @click="handleIconClick('清除')"></text>
-      </view>
-      <view class="u-navbar__content__right__item">
-        <text class="iconfont oaIcon-sousuo" @click="handleIconClick('搜索')"></text>
-      </view> -->
-      <view class="u-navbar__content__right__item">
-        <text class="iconfont oaIcon-shezhi font20" @click="handleIconClick('设置')"></text>
-      </view>
-    </template>
-  </u-navbar>
-
-  <oa-scroll
-    customClass="info-container scroll-height bg-white"
-    :customStyle="{ height: `calc(100vh - (94px + ${proxy.$settingStore.StatusBarHeight} + ${proxy.$settingStore.tabBarHeight}))`, position: 'relative' }"
-    :refresherLoad="false"
-    :refresherEnabled="true"
-    :refresherEnabledTitle="false"
-    :refresherDefaultStyle="'none'"
-    :refresherThreshold="44"
-    :refresherBackground="'#f5f6f7'"
-    @refresh="init()"
-  >
-    <template #default>
-      <view class="content-area list-cell list-cell-arrow" v-for="item in infoList.infoTypeStatic" :key="item" @tap="goAppMessage(item)">
-        <view class="content-area-avatar">
-          <image class="image-bg" :src="item.img" />
-          <view class="uni_top_right font12" style="margin: auto 0">
-            <u-badge numberType="overflow" max="99" :value="item.notReadCount"></u-badge>
-          </view>
-        </view>
-        <view class="content-area-child">
-          <view class="uni-item mb5 ml10">
-            <view class="uni-item-text font14" style="color: #000000">{{ item.label }}</view>
-          </view>
-          <view class="uni-item">
-            <view class="uni-item-text font12" style="color: #909399">{{ item.cont }}</view>
-          </view>
-        </view>
-      </view>
-    </template>
-  </oa-scroll>
-
-  <oa-tabbar :tabbarValue="1" :tabbarList="proxy.$constData.homeTabbar"></oa-tabbar>
-</template>
-
-<script setup>
-/*----------------------------------依赖引入-----------------------------------*/
-import { onLoad, onShow } from "@dcloudio/uni-app";
-import { reactive, getCurrentInstance, toRefs } from "vue";
-/*----------------------------------接口引入-----------------------------------*/
-import { getMceReceiveStatic, updateMceReceiveStatus } from "@/api/mine/info.js";
-/*----------------------------------组件引入-----------------------------------*/
-/*----------------------------------store引入-----------------------------------*/
-/*----------------------------------公共方法引入-----------------------------------*/
-import { storageSystem } from "@/utils/storage";
-/*----------------------------------公共变量-----------------------------------*/
-const { proxy } = getCurrentInstance();
-const { message_type } = proxy.useDict("message_type");
-/*----------------------------------变量声明-----------------------------------*/
-const state = reactive({
-  infoList: {
-    infoTypeStatic: [],
-    total: 0,
-  },
-});
-const { infoList } = toRefs(state);
-
-function init() {
-  getMceReceiveStatic().then((res) => {
-    let receiveStatic = { infoTypeStatic: res.data.infoTypeStatic, total: res.data.notReadCount };
-    let dictList = message_type.value;
-    if (receiveStatic.infoTypeStatic.length > 0) {
-      for (let i = 0; i < receiveStatic.infoTypeStatic.length; i++) {
-        for (let j = 0; j < dictList.length; j++) {
-          if (receiveStatic.infoTypeStatic[i].infoType == dictList[j].value) {
-            receiveStatic.infoTypeStatic[i].label = dictList[j].label;
-            receiveStatic.infoTypeStatic[i].type = dictList[j].value;
-            if (receiveStatic.infoTypeStatic[i].infoType == 1) {
-              receiveStatic.infoTypeStatic[i].img = "/static/images/common/noticeMessage.png";
-            }
-            if (receiveStatic.infoTypeStatic[i].infoType == 2) {
-              receiveStatic.infoTypeStatic[i].img = "/static/images/common/inspectionMessage.png";
-            }
-            if (receiveStatic.infoTypeStatic[i].infoType == 3) {
-              receiveStatic.infoTypeStatic[i].img = "/static/images/common/meetingMessage.png";
-            }
-            if (receiveStatic.infoTypeStatic[i].infoType == 4) {
-              receiveStatic.infoTypeStatic[i].img = "/static/images/common/alarmMessage.png";
-            }
-            if (receiveStatic.infoTypeStatic[i].infoType == 5) {
-              receiveStatic.infoTypeStatic[i].img = "/static/images/common/reportMessage.png";
-            }
-          }
-        }
-      }
-    }
-
-    proxy.$setting.setBadge(res.data.notReadCount); // 设置角标值
-    state.infoList = receiveStatic;
-    storageSystem.set("infoList", receiveStatic);
-  });
-}
-
-/**
- * 清除消息
- */
-function clearMsg() {
-  updateMceReceiveStatus({ id: 0 }).then(() => {
-    proxy.$setting.setBadge(0); // 设置角标值
-    init();
-  });
-}
-
-function goAppMessage(item) {
-  proxy.$tab.navigateTo(`/pages/common/appMessage/index?type=${item.type}&typeName=${item.label}`);
-}
-
-function handleIconClick(type) {
-  if (type === "设置") {
-    proxy.$tab.navigateTo("/pages/mine/msg/index");
-  }
-}
-
-onShow(() => {
-  init();
-});
-
-onLoad(() => {
-  uni.hideTabBar(); //隐藏自带tabbar
-});
-</script>
-
-<style lang="scss" scoped>
-.topImage {
-  display: flex;
-  margin: 0 auto;
-}
-.topBadge {
-  margin-top: -14px;
-  margin-left: 0px;
-}
-.image-bg-top {
-  width: 15px;
-  height: 19px;
-}
-.info-container {
-  .content-area {
-    display: flex;
-    padding: 13px 13px 13px 13px;
-    &-avatar {
-      display: flex;
-      margin: auto 20upx auto 0;
-      position: relative;
-      .image-bg {
-        width: 40px;
-        height: 40px;
-      }
-      .uni_top_right {
-        position: absolute;
-        right: -10px;
-        top: -4px;
-      }
-    }
-
-    &-child {
-      width: calc(100% - (32px + 0.625rem));
-      justify-content: center;
-      margin: auto;
-      .uni-item {
-        display: flex;
-        white-space: nowrap;
-
-        .uni-item-text {
-          margin-right: auto;
-          overflow: hidden;
-          text-overflow: ellipsis;
-        }
-
-        .uni-item-right {
-          width: auto;
-          text-align: right;
-        }
-      }
-    }
-  }
-}
-</style>

+ 0 - 313
src/pages/mine.vue

@@ -1,313 +0,0 @@
-<template>
-  <oa-scroll
-    customClass="mine-container scroll-height"
-    :customStyle="{ height: `calc(100vh - (50px + ${proxy.$settingStore.tabBarHeight}))`, position: 'relative' }"
-    :isSticky="false"
-    :refresherLoad="false"
-    :refresherEnabled="false"
-    :refresherEnabledTitle="false"
-    :refresherDefaultStyle="'none'"
-    :refresherThreshold="44"
-    :refresherBackground="'#f5f6f7'"
-  >
-    <template #default>
-      <!--顶部个人信息栏-->
-      <view class="top-area" :class="'bg-' + themeColor.name" :style="{ paddingTop: proxy.$settingStore.StatusBar ? proxy.$settingStore.StatusBar + 20 + 'px' : '55px' }">
-        <view class="flex justify-between p15">
-          <view class="flex align-center">
-            <view class="cu-avatar xl round border bg-white" v-if="!avatar" @click="!state.nickName ? proxy.$settingStore.handleToLogin() : proxy.$settingStore.handleToAvatar(1)">
-              <view class="iconfont oaIcon-people text-gray"></view>
-            </view>
-            <image class="cu-avatar xl round border bg-white" v-if="avatar" :src="avatar" @click="proxy.$settingStore.handleToAvatar(2)"> </image>
-            <view class="login-tip" v-if="!state.nickName" @click="proxy.$settingStore.handleToLogin()"> 点击登录 </view>
-            <view class="user-info" v-if="state.nickName">
-              <view class="u_title"> {{ state.nickName }} </view>
-              <view class="u_title"> {{ state.phone ? state.phone.substr(0, 3) + "******" + state.phone.substr(9) : "" }} </view>
-            </view>
-          </view>
-          <view class="flex align-center"> </view>
-        </view>
-
-        <view class="vip-card-box"> </view>
-      </view>
-
-      <oa-transForm>
-        <template #content>
-          <view class="menu-list">
-            <view class="list-cell list-cell-arrow" @click="proxy.$settingStore.handleToEditInfo()">
-              <view class="menu-item">
-                <view class="iconfont oaIcon-user menu-item-icon"></view>
-                <view>我的信息</view>
-              </view>
-            </view>
-            <view class="list-cell list-cell-arrow" @click="proxy.$settingStore.handleToSecure()">
-              <view class="menu-item">
-                <view class="iconfont oaIcon-yanzheng menu-item-icon"></view>
-                <view>账号与安全</view>
-              </view>
-            </view>
-            <view class="list-cell list-cell-arrow" @click="proxy.$settingStore.handleToMessage()">
-              <view class="menu-item">
-                <view class="iconfont oaIcon-tongzhi menu-item-icon"></view>
-                <view>新消息通知</view>
-              </view>
-            </view>
-            <view class="list-cell list-cell-arrow" @click="proxy.$settingStore.handleAbout()">
-              <view class="menu-item">
-                <view class="iconfont oaIcon-aixin menu-item-icon"></view>
-                <view>关于我们</view>
-              </view>
-            </view>
-            <view class="list-cell list-cell-arrow" @click="proxy.$settingStore.handleHelp()">
-              <view class="menu-item">
-                <view class="iconfont oaIcon-Help menu-item-icon"></view>
-                <view>常见问题</view>
-              </view>
-            </view>
-            <view class="list-cell list-cell-arrow" @click="proxy.$settingStore.handleCleanTmp()">
-              <view class="menu-item">
-                <view class="iconfont oaIcon-qinglihuancun menu-item-icon"></view>
-                <view>清理缓存</view>
-                <view class="text-right">{{ proxy.$settingStore.currentSize }}</view>
-              </view>
-            </view>
-            <view class="list-cell list-cell-arrow" @click="handleToUpgrade" v-if="proxy.$common.isVisible()">
-              <view class="menu-item">
-                <view class="iconfont oaIcon-jianchagengxin menu-item-icon"></view>
-                <view>检查更新</view>
-              </view>
-            </view>
-            <!-- <view class="list-cell list-cell-arrow" @click="proxy.$settingStore.handleSetting()">
-              <view class="menu-item">
-                <view class="iconfont oaIcon-shezhi menu-item-icon"></view>
-                <view>设置</view>
-              </view>
-            </view> -->
-          </view>
-
-          <!-- <view class="menu-list">
-            <view class="list-cell list-cell-arrow" @click="goMessagePush()">
-              <view class="menu-item">
-                <view class="iconfont oaIcon-aixin menu-item-icon"></view>
-                <view>推送设置</view>
-              </view>
-            </view>
-            <view class="list-cell list-cell-arrow" @click="goBuilding()">
-              <view class="menu-item">
-                <view class="iconfont oaIcon-aixin menu-item-icon"></view>
-                <view>建筑管理</view>
-              </view>
-            </view>
-            <view class="list-cell list-cell-arrow" @click="goFunReport()">
-              <view class="menu-item">
-                <view class="iconfont oaIcon-aixin menu-item-icon"></view>
-                <view>功能报备</view>
-              </view>
-            </view>
-          </view> -->
-
-          <view class="cu-list menu">
-            <view class="cu-item mt0">
-              <view class="content flex align-center">
-                <text class="iconfont oaIcon-colorlens" :class="'text-' + themeColor.name"></text>
-                <view class="padding solid radius shadow-blur ml10" :class="'bg-' + themeColor.name"></view>
-                <view class="title ml10">
-                  主题色:<text :class="'text-' + themeColor.name">{{ themeColor.title }}</text>
-                </view>
-              </view>
-              <view class="action">
-                <button class="cu-btn round shadow" @click="colorModal = true" :class="'bg-' + themeColor.name">
-                  <text class="iconfont oaIcon-colorlens"></text>
-                  选择主题
-                </button>
-              </view>
-            </view>
-          </view>
-
-          <view class="menu-list" @click="proxy.$settingStore.handleLogout">
-            <view class="list-cell">
-              <view class="menu-item">
-                <view class="button">退 出 登 录</view>
-              </view>
-            </view>
-          </view>
-
-          <!-- <view class="menu-list">
-            <view class="list-cell list-cell-arrow" @tap="goSiteManage" v-if="permissionLabel == 1">
-              <view class="menu-item">
-                <image class="menu-item-image" src="@/static/images/setting/setting-icon2.png" style="width: 15px; height: 15px"></image>
-                <view>站点管理</view>
-              </view>
-            </view>
-            <view class="list-cell list-cell-arrow" @tap="goAuthManage" v-if="permissionLabel == 1">
-              <view class="menu-item">
-                <image class="menu-item-image" src="@/static/images/setting/setting-icon4.png" style="width: 15px; height: 15px"></image>
-                <view>权限管理</view>
-              </view>
-            </view>
-          </view> -->
-        </template>
-      </oa-transForm>
-    </template>
-  </oa-scroll>
-
-  <!-- 选择颜色模态框 -->
-  <view class="cu-modal" :class="{ show: colorModal }">
-    <view class="cu-dialog">
-      <view class="cu-bar justify-end solid-bottom">
-        <view class="content">选择颜色</view>
-        <view class="action" @tap="colorModal = false">
-          <u-icon name="close" size="14"></u-icon>
-          <text class="cuIcon-close text-red"></text>
-        </view>
-      </view>
-      <view class="grid col-5 padding">
-        <view class="padding-xs" v-for="(item, index) in themeList" :key="index" @tap="SetColor(item)" :data-color="item.name">
-          <view class="padding-tb radius" :class="'bg-' + item.name">
-            {{ item.title }}
-          </view>
-        </view>
-      </view>
-    </view>
-  </view>
-
-  <oa-upgrade ref="oaUpgradeRef" :themesColor="proxy.$settingStore.themeColor.color" />
-
-  <oa-tabbar :tabbarValue="2" :tabbarList="proxy.$constData.homeTabbar"></oa-tabbar>
-</template>
-
-<script setup>
-/*----------------------------------依赖引入-----------------------------------*/
-import { onLoad, onShow, onReady, onHide, onLaunch, onNavigationBarButtonTap, onPageScroll } from "@dcloudio/uni-app";
-import { ref, reactive, computed, getCurrentInstance, toRefs, inject } from "vue";
-/*----------------------------------接口引入-----------------------------------*/
-/*----------------------------------组件引入-----------------------------------*/
-/*----------------------------------store引入-----------------------------------*/
-import { useStores, commonStores } from "@/store/modules/index";
-/*----------------------------------公共方法引入-----------------------------------*/
-import config from "@/config";
-/*----------------------------------公共变量-----------------------------------*/
-const { proxy } = getCurrentInstance();
-const useStore = useStores();
-const commonStore = commonStores();
-/*----------------------------------变量声明-----------------------------------*/
-const state = reactive({
-  avatar: computed(() => {
-    return useStore.avatar;
-  }),
-  themeColor: computed(() => {
-    return proxy.$settingStore.themeColor;
-  }),
-
-  nickName: useStore.nickName,
-  phone: useStore.phonenumber,
-  version: config.appInfo.version,
-
-  colorModal: false,
-  themeList: proxy.$constData.themeList,
-});
-
-const { avatar, themeColor, colorModal, themeList } = toRefs(state);
-
-/**
- * @检查更新
- */
-function handleToUpgrade() {
-  proxy.$settingStore.handleToUpgrade({
-    success: (res) => {
-      proxy.$refs["oaUpgradeRef"].openUpgrade({
-        modalArray: res.data,
-      });
-    },
-  });
-}
-
-/**
- * @推送设置
- */
-function goMessagePush() {
-  proxy.$tab.navigateTo("/pages/business/zhxf/messagePush/index");
-}
-
-/**
- * @建筑管理
- */
-function goBuilding() {
-  proxy.$tab.navigateTo("/pages/business/zhxf/building/index");
-}
-
-/**
- * @功能报备
- */
-function goFunReport() {
-  proxy.$tab.navigateTo("/pages/business/zhxf/funReport/index");
-}
-
-/**
- * @主题颜色选择
- */
-function SetColor(item) {
-  colorModal.value = false;
-  proxy.$settingStore.initThemeColor(item);
-  proxy.$settingStore.systemThemeColor([1, 2]);
-}
-
-onShow(() => {});
-
-onReady(() => {});
-
-onLoad((options) => {
-  uni.hideTabBar(); //隐藏自带tabbar
-});
-
-// 自定义导航事件
-onNavigationBarButtonTap((e) => {
-  if (e.float == "right") {
-    proxy.$tab.navigateTo("/pages/mine/setting/index");
-  }
-});
-</script>
-
-<style lang="scss" scoped>
-.mine-container {
-  width: 100%;
-  height: calc(100vh - (50px + constant(safe-area-inset-bottom)));
-  height: calc(100vh - (50px + env(safe-area-inset-bottom)));
-
-  .top-area {
-    padding: 55px 0.625rem 0 0.625rem;
-
-    .login-tip {
-      font-size: 18px;
-      margin-left: 10px;
-    }
-
-    .user-info {
-      margin-left: 15px;
-
-      .u_title {
-        font-size: 18px;
-        line-height: 30px;
-      }
-    }
-
-    .vip-card-box {
-      display: flex;
-      flex-direction: column;
-      color: #f7d680;
-      height: 132px;
-      background: url("@/static/images/mine/vip-card.png");
-      background-size: 100% 100%;
-      border-radius: 8px 8px 0 0;
-      overflow: hidden;
-      position: relative;
-      padding: 11px 13px;
-    }
-  }
-
-  .scrollView {
-    height: calc(100vh - (50px + constant(safe-area-inset-bottom) + 55px + 0.9375rem + 0.9375rem + 4rem + 47px));
-    height: calc(100vh - (50px + env(safe-area-inset-bottom) + 55px + 0.9375rem + 0.9375rem + 4rem + 47px));
-  }
-}
-</style>