8 次代码提交 b5ba1f9f65 ... 886d6cab82

作者 SHA1 备注 提交日期
  fanghuisheng 886d6cab82 代码合并/修改顶部导航判断/修改路由配置 2 天之前
  gez ba9110ef91 Merge branch 'ming' of uskycloud/usky-web-mobile into master 5 天之前
  ming ee9a692fd9 告警管理九宫格补充边框,title显示优化 5 天之前
  ming 0c46958866 多页面双头部调整dom结构 6 天之前
  ming 790c6a9b4f 设备详情排版优化 1 周之前
  ming e8f06d9104 设备详情排版优化 1 周之前
  ming 5a75e5cb91 补充 1 周之前
  ming df51fae69a 测试域名更改+微信端h5去除双标题 1 周之前

+ 2 - 2
src/config.js

@@ -2,14 +2,14 @@ import manifest from './manifest.json'
 
 // 应用全局配置
 export default {
-  ip: "192.168.120.165:9300",
+  ip: "192.168.10.165:9300",
 
   //#ifdef APP-PLUS || MP-WEIXIN
   baseUrl: "https://gateWay.usky.cn/prod-api",
   //#endif
 
   //#ifdef H5
-  baseUrl: import.meta.env.MODE === "production" ? `https://${window.location.host}/prod-api` : `http://192.168.123.165:801/dev-api`,
+  baseUrl: import.meta.env.MODE === "production" ? `https://${window.location.host}/prod-api` : `http://192.168.10.165:801/dev-api`,
   //#endif
 
   websiteUrl: "https://qhome.usky.cn",

+ 5 - 0
src/main.js

@@ -22,8 +22,13 @@ import oaTransForm from "@/components/oa-transForm/index"
 import oaTtsAudio from "@/components/oa-ttsAudio/index"
 import oaWeather from "@/components/oa-weather/index"
 
+
+import hideHead from "./utils/hideHead.js";
+
 export function createApp() {
   const app = createSSRApp(App);
+  app.mixin(hideHead);// 隐藏头部双重标题
+
 
   //挂载全局组件
   app.component('oa-calendar', oaCalendar)

+ 34 - 9
src/pages.json

@@ -502,8 +502,13 @@
                 {
                     "path": "deviceManage/components/deviceDetailsList",
                     "style": {
-                        "navigationBarTitleText": "",
-                        "enablePullDownRefresh": false
+                        "navigationBarTitleText": "设备列表",
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
                     }
                 },
                 {
@@ -551,8 +556,13 @@
                 {
                     "path": "facilitiesManage/facilitiesDetailsList",
                     "style": {
-                        "navigationBarTitleText": "",
-                        "enablePullDownRefresh": false
+                        "navigationBarTitleText": "设施列表",
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
                     }
                 },
                 {
@@ -572,8 +582,13 @@
                 {
                     "path": "alarmManage/alarmDetailsList/index",
                     "style": {
-                        "navigationBarTitleText": "",
-                        "enablePullDownRefresh": false
+                        "navigationBarTitleText": "告警列表",
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
                     }
                 },
                 {
@@ -587,7 +602,12 @@
                     "path": "repairManage/repairDetailsList",
                     "style": {
                         "navigationBarTitleText": "报修列表",
-                        "enablePullDownRefresh": false
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
                     }
                 },
                 {
@@ -601,7 +621,12 @@
                     "path": "customManage/index",
                     "style": {
                         "navigationBarTitleText": "客户管理",
-                        "enablePullDownRefresh": false
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
                     }
                 },
                 {
@@ -708,7 +733,7 @@
                 {
                     "path": "projectMange/write/insert",
                     "style": {
-                        "navigationBarTitleText": "",
+                        "navigationBarTitleText": "报告填写",
                         "enablePullDownRefresh": false,
                         "navigationStyle": "custom",
                         "app-plus": {

+ 1 - 1
src/pages/business/common/projectMange/list/addEdit.vue

@@ -11,12 +11,12 @@
 
   <oa-scroll
     customClass="record-container scroll-height"
-    :isSticky="false"
     :customStyle="{
       //#ifdef APP-PLUS || MP-WEIXIN
       height: `calc(100vh - (44px + ${proxy.$settingStore.StatusBarHeight}))`,
       //#endif
     }"
+    :isSticky="false"
     :refresherLoad="false"
     :refresherEnabled="false"
     :refresherDefaultStyle="'none'"

+ 3 - 14
src/pages/business/common/projectMange/record/index.vue

@@ -53,11 +53,10 @@
 
       <u-loading-page :loading="state.loading" fontSize="16" style="z-index: 99"></u-loading-page>
 
-
       <!-- start -->
       <view class="content-area" v-for="(el, index) in reportListNewData" :key="index">
         <view class="content-area-time font14" v-if="!el.id">{{ proxy.$time.jktTimes(el.submitDate, "否") }}</view>
-        <view class="content-area-center bg-white" v-else style="margin:0 10px 10px;border-radius:10px">
+        <view class="content-area-center bg-white" v-else style="margin: 0 10px 10px; border-radius: 10px">
           <view class="content-area-top menu-item" style="float: right; padding: 10px 0px">
             <view class="content-area-top-time"> </view>
             <u-icon class="content-area-top-icon" name="more-dot-fill" size="20" color="#000" @click="moreClick(el)"></u-icon>
@@ -90,8 +89,6 @@
         </view>
       </view>
       <!-- end -->
-
-
     </template>
   </oa-scroll>
 
@@ -204,7 +201,7 @@ const state = reactive({
   tabsCurrent: 0,
 
   loading: false,
-  reportListNewData:[],
+  reportListNewData: [],
   pageSize: 20,
   current: 1,
   total: 0,
@@ -234,7 +231,7 @@ const state = reactive({
   tree: [],
 });
 
-const { tabsList, tabsCurrent,reportListNewData, pageSize, current, total, popup, eventList, modal, timedList, tree } = toRefs(state);
+const { tabsList, tabsCurrent, reportListNewData, pageSize, current, total, popup, eventList, modal, timedList, tree } = toRefs(state);
 /**
  * 操作弹框提醒
  * @param type  弹框类型
@@ -303,12 +300,6 @@ function init() {
       });
 
       state.reportListNewData = arrayList;
-
-
-
-
-
-      
     })
     .catch((err) => {
       state.loading = false;
@@ -438,8 +429,6 @@ onReady(() => {});
 
 onShow(() => {
   state.popup.show = false;
-  //调用系统主题颜色
-  proxy.$settingStore.systemThemeColor([1]);
 });
 
 onLoad((options) => {

+ 0 - 5
src/pages/business/common/projectMange/write/index.vue

@@ -6,11 +6,6 @@
           <u-icon name="arrow-left" size="20" color="#000"></u-icon>
         </view>
       </template>
-      <!-- <template #right>
-        <view class="u-navbar__content__right__item">
-          <u-icon name="more-dot-fill" size="19" color="#000"></u-icon>
-        </view>
-      </template> -->
     </u-navbar>
   </u-sticky>
 

+ 7 - 4
src/pages/business/fireIot/alarmManage/alarmDetailsList/index.vue

@@ -1,5 +1,12 @@
 <template>
   <u-sticky class="shadow-default" bgColor="#fff" style="top: 0">
+    <u-navbar :titleStyle="{ color: '#000' }" :autoBack="true" :title="`${state.productName}(${state.total})`" :placeholder="true" :safeAreaInsetTop="true" bgColor="#fff">
+      <template #left>
+        <view class="u-navbar__content__left__item">
+          <u-icon name="arrow-left" size="20" color="#000"></u-icon>
+        </view>
+      </template>
+    </u-navbar>
     <u-tabs
       :list="state.tabsList"
       :current="state.tabsCurrent"
@@ -96,10 +103,6 @@ function selectListApi() {
     if (requset.status === "SUCCESS") {
       state.dataList = requset.data.records;
       state.total = requset.data.total;
-
-      uni.setNavigationBarTitle({
-        title: `${state.productName}(${state.total})`,
-      });
     }
   });
 }

+ 1 - 1
src/pages/business/fireIot/alarmManage/index.vue

@@ -15,7 +15,7 @@
     :data-theme="'theme-' + proxy.$settingStore.themeColor.type"
   >
     <template #default>
-      <view class="alarmManage">
+      <view class="alarmManage"  style="border-top:1px solid rgba(0,0,0,.1)">
         <u-grid :border="true">
           <u-grid-item v-for="(base, index) in dataList" :key="index" @click="handleToDetails(base.productCode, base.productName)">
             <u-badge type="primary" max="9999" :value="base.total" :showZero="true" :absolute="true" :offset="[10, 10, 0, 0]"></u-badge>

+ 18 - 0
src/pages/business/fireIot/customManage/index.vue

@@ -1,8 +1,26 @@
 <template>
+  <u-sticky class="shadow-default" bgColor="#fff" style="top: 0">
+    <u-navbar :titleStyle="{ color: '#000' }" :autoBack="true" title="客户管理" :placeholder="true" :safeAreaInsetTop="true" bgColor="#fff">
+      <template #left>
+        <view class="u-navbar__content__left__item">
+          <u-icon name="arrow-left" size="20" color="#000"></u-icon>
+        </view>
+      </template>
+      <template #right>
+        <view class="u-navbar__content__right__item"> </view>
+      </template>
+    </u-navbar>
+  </u-sticky>
+
   <oa-scroll
     customClass="customManage-container scroll-height"
     :pageSize="pageSize"
     :total="total"
+    :customStyle="{
+      //#ifdef APP-PLUS || MP-WEIXIN
+      height: `calc(100vh - (44px + ${proxy.$settingStore.StatusBarHeight}))`,
+      //#endif
+    }"
     :isSticky="false"
     :refresherLoad="true"
     :refresherEnabled="true"

+ 62 - 36
src/pages/business/fireIot/deviceManage/components/deviceDetails.vue

@@ -11,40 +11,48 @@
     :data-theme="'theme-' + proxy.$settingStore.themeColor.name"
   >
     <template #default>
-      <view class="flex bg-white p15 mb15">
-        <image style="width: 40px; height: 40px; margin: auto 15px auto 0" :src="'/static/images/404.png'" mode="aspectFill"></image>
 
-        <view style="margin: auto auto auto 0">
-          <view style="font-size: 15px"> {{ commonStore.deviceDetailsArray.deviceName }} </view>
-        </view>
+      <view style="  background: linear-gradient(to bottom, #FAFBFF, #E7F3FF);">
+        <view class="flex"  style="padding: 15px 15px  0"> 
+          <view style="margin: auto auto auto 0">
+            <view style="font-size: 16px;color:#000"> {{ detailData.deviceName }} </view>
+          </view>
 
-        <view style="margin: auto 0 auto 0">
-          <view :style="{ fontSize: '15px', color: commonStore.deviceDetailsArray.deviceStatus == 1 ? '#16bf00' : 'red' }">
-            {{ commonStore.deviceDetailsArray.deviceStatus == 1 ? "在线" : "离线" }}
+          <view style="margin: auto 0 auto 0">
+            <view style="margin-left: 20px; font-size: 12px;color: #ffffff;padding: 2px 10px; border-radius: 20px; line-height: 20px;" 
+              :style="{ fontSize: '15px', backgroundColor: detailData.deviceStatus == 1 ? '#16bf00' : 'red' }  ">
+              {{ detailData.deviceStatus == 1 ? "在线" : "离线" }}
+            </view>
           </view>
         </view>
-      </view>
+        <view class=" p15" style="color:rgba(0,0,0,.7)" >
+          <!-- <uni-section class="block mb10" title="基本信息" type="line"></uni-section> -->
+          <view class=" basicBox p0">
+            <u-empty v-if="dataList.length <= 0" text="暂无数据" mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png"> </u-empty>
 
-      <view class="bg-white p15 mb15">
-        <uni-section class="block mb10" title="基本信息" type="line"></uni-section>
-        <view class="tableType3 p0">
-          <u-empty v-if="dataList.length <= 0" text="暂无数据" mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png"> </u-empty>
-
-          <u-row v-for="po in dataList" :key="po">
-            <u-col span="4">
-              <view style="text-align: right; padding: 0px 5px 0px 5px">{{ po.title }}</view>
-            </u-col>
-            <u-col span="8">
-              <view style="text-align: left; padding: 0px 5px 0px 5px">{{ po.value }}</view>
-            </u-col>
-          </u-row>
+            <u-row>
+                <u-col span="9" class="basicLeft">
+                  <view v-for="po in dataList" :key="po">
+                    <view style="text-align: left; padding: 0px 5px 0px 5px">{{ po.title }}:</view>
+                    <view style="text-align: left; padding: 0px 5px 0px 5px">{{ po.value }}</view>
+                </view>
+                </u-col>
+                <u-col span="3">
+                  <image style="width: 80px; height: 80px; margin: auto 15px auto 0" :src="'/static/images/jg.png'" mode="aspectFill"></image>
+                </u-col>
+              </u-row>
+
+
+            
+          </view>
         </view>
       </view>
+      
 
       <view class="bg-white p15 mb15">
         <!-- 分段器组件 -->
-        <view class="app-subsection">
-          <u-subsection :list="list" :current="tabPosition" inactiveColor="#303133" :activeColor="proxy.$settingStore.themeColor.color" @change="tabPositionChange" style="width: 100%"></u-subsection>
+        <view class="app-subsection"> 
+          <u-subsection :list="list" mode="subsection" :current="tabPosition" @change="tabPositionChange" style="width: 100%;font-size:16px"></u-subsection>
         </view>
 
         <view v-if="tabPosition == 1">
@@ -70,10 +78,10 @@
         </view>
         <view v-if="tabPosition == 0">
           <u-empty v-if="realTimeDataList.length <= 0" text="暂无数据" mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png"> </u-empty>
-          <view v-else class="flex" style="flex-wrap: wrap; line-height: 36px">
-            <view style="width: 50%" v-for="realTime in realTimeDataList" :key="realTime">
+          <view v-else class="flex" style="flex-wrap: wrap; line-height: 36px;font-size:16px">
+            <view style="width: 100%;border-bottom:1px solid #F3F3F3" v-for="realTime in realTimeDataList" :key="realTime">
               {{ realTime.attributeName + ":" }}
-              {{ realTime.value }}
+              <view style="color:#000;display:inline-block;">{{ realTime.value }}</view>
               {{ realTime.attributeUnit ? realTime.attributeUnit : "" }}
             </view>
           </view>
@@ -172,8 +180,7 @@ const calendarStartTime = ref(""); //日历开始时间
 const calendarEndTime = ref(""); //日历结束时间
 const productId = ref(0); //产品id
 const deviceId = ref(0); //设备id
-const deviceUUID = ref("") //设备UUID
-const productCode = ref(""); //产品code
+const detailData = ref({}) //设备详情数据存储
 const deviceCotrolList = ref([]) //设备调试数据存储
 function open() {
   calendar.value.open();
@@ -196,8 +203,7 @@ function dmpDeviceInfoApi() {
       dataList.value[2].value = requset.data.records[0].simCode ;
       dataList.value[3].value = requset.data.records[0].installAddress
       dataList.value[4].value = requset.data.records[0].createdTime ? requset.data.records[0].createdTime.replace("T", " ") : requset.data.records[0].createdTime;
-      productCode.value = requset.data.records[0].productCode;
-      deviceUUID.value=requset.data.records[0].deviceUuid;
+      detailData.value=requset.data.records[0]
     }
   });
 }
@@ -223,7 +229,7 @@ function init() {
       });
 
       last({
-        deviceUUId: deviceUUID.value,
+        deviceUUId: detailData.value.deviceUuid,
         metrics: array,
       }).then((requsets) => {
         if (requsets.status === "SUCCESS") {
@@ -246,7 +252,7 @@ function deviceControlData(){
   getList({
     current: 1,
     size: 10,
-    productCode:productCode.value,
+    productCode:detailData.value.productCode,
   }).then((response) => {
     deviceCotrolList.value=response.data.records
     // console.log(response.data.records)
@@ -291,7 +297,7 @@ function historyMetricsApi() {
   historyMetrics({
     startTime: calendarStartTime.value?calendarStartTime.value+' 00:00:00':calendarStartTime.value,
     endTime: calendarEndTime.value?calendarEndTime.value+' 23:59:59':calendarEndTime.value,
-    deviceUUId: deviceUUID.value,
+    deviceUUId: detailData.value.deviceUuid,
     // deviceId: commonStore.deviceDetailsArray.deviceId,
     // deviceType: commonStore.deviceDetailsArray.deviceType,
     metrics: checkboxValueList.value,
@@ -328,8 +334,13 @@ function goAction(row) {
 onReady(() => {});
 
 onShow(() => {
+  //设置导航栏颜色
+  uni.setNavigationBarColor({
+     frontColor: '#000000',   //字体颜色
+     backgroundColor: '#ffffff'    //背景颜色
+   })
   //调用系统主题颜色
-  proxy.$settingStore.systemThemeColor([1]);
+  // proxy.$settingStore.systemThemeColor([1]);
 });
 
 onLoad((options) => {
@@ -355,10 +366,25 @@ watch(
 </script>
 
 <style lang="scss" scoped>
+uni-page-body{
+  background-color: #fff;
+}
+
+.basicBox{
+  font-size:16px;
+  .basicLeft view{
+    display:inline-block;
+    line-height:30px;
+    .subsection__item__text{
+      font-size:16px!important
+    }
+
+  }
+}
 .app-subsection {
   display: flex;
   margin-bottom: 10px;
-  padding: 0px 5rem;
+  // padding: 0px 5rem;
 }
 .demo-layout{
   border:1px solid #e0e0e0;

+ 10 - 6
src/pages/business/fireIot/deviceManage/components/deviceDetailsList.vue

@@ -1,4 +1,12 @@
 <template>
+  <u-navbar :titleStyle="{ color: '#000' }" :autoBack="true" :title="`${productName}(${total})`" :placeholder="true" :safeAreaInsetTop="true" bgColor="#fff">
+    <template #left>
+      <view class="u-navbar__content__left__item">
+        <u-icon name="arrow-left" size="20" color="#000"></u-icon>
+      </view>
+    </template>
+  </u-navbar>
+
   <oa-scroll
     customClass="scroll-height"
     :pageSize="pageSize"
@@ -103,14 +111,10 @@ function init() {
  */
 
 function dmpDeviceInfoApi() {
-  dmpDeviceInfo({productId: productId.value, deviceName: deviceName.value, current: current.value, size: pageSize.value, deviceStatus:radioValue.value }).then((requset) => {
+  dmpDeviceInfo({ productId: productId.value, deviceName: deviceName.value, current: current.value, size: pageSize.value, deviceStatus: radioValue.value }).then((requset) => {
     if (requset.status == "SUCCESS") {
       dataList.value = requset.data.records;
       total.value = requset.data.total;
-
-      uni.setNavigationBarTitle({
-        title: `${productName.value}(${total.value})`,
-      });
     }
   });
 }
@@ -132,7 +136,7 @@ function radioChange(e) {
   // console.log(e,'e')
   radioValue.value = e;
   dmpDeviceInfoApi();
-  dropdownShow.value=false
+  dropdownShow.value = false;
 }
 
 /**

+ 4 - 4
src/pages/business/fireIot/deviceManage/index.vue

@@ -15,9 +15,9 @@
     :data-theme="'theme-' + proxy.$settingStore.themeColor.type"
   >
     <template #default>
-      <view class="deviceManage">
-        <u-grid :border="true">
-          <u-grid-item v-for="(base, index) in dataList" :key="index" @click="handleToDevice(base.id, base.productName)">
+      <view class="deviceManage" style="border-top:1px solid rgba(0,0,0,.1)">
+        <u-grid :border="true" >
+          <u-grid-item v-for="(base, index) in dataList" :key="index" @click="handleToDevice(base.id, base.productName,base.deviceCount)">
             <!-- <u-badge type="primary" max="9999" :value="base.deviceCount" :showZero="true" :absolute="true" :offset="[10, 10, 0, 0]"></u-badge> -->
             <image class="mb15 mt35" style="width: 40px; height: 40px" :src="base.typeImg" mode="aspectFill"></image>
             <view class="mb15 text-ellipsis" style="width: 100%; text-align: center">{{ base.productName }}</view>
@@ -64,7 +64,7 @@ function init() {
   });
 }
 
-function handleToDevice(id, productName) {
+function handleToDevice(id, productName,total) {
   proxy.$tab.navigateTo(`/pages/business/fireIot/deviceManage/components/deviceDetailsList?id=${id}&productName=${productName}`);
 }
 

+ 8 - 6
src/pages/business/fireIot/facilitiesManage/facilitiesDetailsList.vue

@@ -1,4 +1,12 @@
 <template>
+  <u-navbar :titleStyle="{ color: '#000' }" :autoBack="true" :title="`${facilityTypeName}(${total})`" :placeholder="true" :safeAreaInsetTop="true" bgColor="#fff">
+    <template #left>
+      <view class="u-navbar__content__left__item">
+        <u-icon name="arrow-left" size="20" color="#000"></u-icon>
+      </view>
+    </template>
+  </u-navbar>
+
   <oa-scroll
     customClass="scroll-height"
     :pageSize="pageSize"
@@ -72,12 +80,6 @@ function init() {
 function selectListApi() {
   baseGgpFacility({ facilityType: facilityType.value, facilityName: facilityName.value, current: current.value, size: pageSize.value }).then((requset) => {
     if (requset.status === "SUCCESS") {
-      if (requset.data.records.length > 0) {
-        uni.setNavigationBarTitle({
-          title: `${facilityTypeName.value}(${requset.data.total})`,
-        });
-      }
-
       dataList.value = requset.data.records;
       total.value = requset.data.total;
     }

+ 16 - 0
src/pages/business/fireIot/repairManage/repairDetailsList.vue

@@ -1,5 +1,16 @@
 <template>
   <u-sticky class="shadow-default" bgColor="#fff" style="top: 0">
+    <u-navbar :titleStyle="{ color: '#000' }" :autoBack="true" title="报修列表" :placeholder="true" :safeAreaInsetTop="true" bgColor="#fff">
+      <template #left>
+        <view class="u-navbar__content__left__item">
+          <u-icon name="arrow-left" size="20" color="#000"></u-icon>
+        </view>
+      </template>
+      <template #right>
+        <view class="u-navbar__content__right__item"> </view>
+      </template>
+    </u-navbar>
+
     <u-tabs
       :list="tabsList"
       :current="tabsCurrent"
@@ -15,6 +26,11 @@
     customClass="repairManage-container scroll-height"
     :pageSize="pageSize"
     :total="total"
+    :customStyle="{
+      //#ifdef APP-PLUS || MP-WEIXIN
+      height: `calc(100vh - (44px + 44px + ${proxy.$settingStore.StatusBarHeight}))`,
+      //#endif
+    }"
     :isSticky="true"
     :refresherLoad="true"
     :refresherEnabled="true"

+ 1 - 1
src/pages/login.vue

@@ -183,7 +183,7 @@ function init() {
 
   if (window.location.host) {
     linkUrl.value = window.location.host;
-    // linkUrl.value = "192.168.123.165:13200";
+    // linkUrl.value = "192.168.10.165:13200";
     // linkUrl.value = "localhost:81";
     useStore.GetMobileTenantConfig({ url: linkUrl.value });
   }

二进制
src/static/images/jg.png


+ 48 - 0
src/utils/hideHead.js

@@ -0,0 +1,48 @@
+// 页面白名单
+const whiteList = [
+	"pages/index",//登录
+	"pages/info",//消息
+];
+
+export default {
+	mounted() {
+		if (this.isWeiXinBrowser() || this.isQQBrowser()) {
+			this.navTitle()
+		}
+	},
+	methods: {
+		isWeiXinBrowser() { //判断是否为微信
+			let ua = navigator?.userAgent.toLowerCase()
+			if (ua) {
+				return ua.indexOf('micromessenger') != -1
+			}
+		},
+		isQQBrowser() { //判断是否为qq
+			var ua = navigator?.userAgent.toLowerCase()
+			if (ua?.match(/QQ/i) == "qq") {
+				return true
+			} else {
+				return false
+			}
+		},
+		navTitle() {
+			this.$nextTick(() => {
+				const pages = getCurrentPages(); // 获取当前页面栈
+				const currentPage = pages[pages.length - 1]; // 最后一个元素即为当前页面
+
+				if (whiteList.includes(currentPage?.route)) {
+					return
+				}
+
+				let navTitleDom = document.getElementsByTagName('uni-page-head')
+				if (navTitleDom.length) {
+					navTitleDom[0].style.display = 'none'
+				}
+				let navTitleDom1 = document.querySelector('.u-navbar')
+				if (navTitleDom1) {
+					navTitleDom1.style.display = 'none'
+				}
+			})
+		},
+	}
+}

+ 1 - 1
vite.config.js

@@ -12,7 +12,7 @@ export default defineConfig(({ mode, command }) => {
       port: 81, //启动端口
       proxy: {
         "/dev-api": {
-          target: "http://192.168.123.165:13200",
+          target: "http://192.168.123.10:13200",
           ws: true,
           changeOrigin: true,
           //rewrite: (p) => p.replace(/^\/dev-api/, '')