ソースを参照

告警管理九宫格补充边框,title显示优化

ming 4 ヶ月 前
コミット
ee9a692fd9

+ 7 - 2
src/pages.json

@@ -582,8 +582,13 @@
                 {
                     "path": "alarmManage/alarmDetailsList/index",
                     "style": {
-                        "navigationBarTitleText": "",
-                        "enablePullDownRefresh": false
+                        "navigationBarTitleText": "告警列表",
+                        "enablePullDownRefresh": false,
+                        "navigationStyle": "custom",
+                        "app-plus": {
+                            "bounce": "none",
+                            "titleNView": false
+                        }
                     }
                 },
                 {

+ 10 - 3
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"
@@ -97,9 +104,9 @@ function selectListApi() {
       state.dataList = requset.data.records;
       state.total = requset.data.total;
 
-      uni.setNavigationBarTitle({
-        title: `${state.productName}(${state.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>

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

@@ -15,7 +15,7 @@
     :data-theme="'theme-' + proxy.$settingStore.themeColor.type"
   >
     <template #default>
-      <view class="deviceManage" style="1px solid #rgba(0,0,0,.1)">
+      <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> -->