fix:蓝牙bug解决
This commit is contained in:
@@ -22,6 +22,12 @@
|
||||
|
||||
<view class="device-detail-hero__status">
|
||||
<view
|
||||
v-if="showReconnectLoading"
|
||||
class="device-detail-hero__status-spinner"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<view
|
||||
v-else
|
||||
class="device-detail-hero__status-dot"
|
||||
:class="{ 'device-detail-hero__status-dot--offline': !isOnline }"
|
||||
/>
|
||||
@@ -151,6 +157,14 @@
|
||||
@confirm="onConfirmFilterReplace"
|
||||
/>
|
||||
<run-mode-explain-dialog v-model:visible="runModeExplainVisible" />
|
||||
|
||||
<!-- 页面居中加载,挡住下方操作区;顶栏返回仍可点 -->
|
||||
<ble-reconnect-loading
|
||||
:visible="showReconnectLoading"
|
||||
:title="reconnectLoadingTitle"
|
||||
:desc="reconnectLoadingDesc"
|
||||
:top-offset-px="statusBarHeight + 44"
|
||||
/>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -158,6 +172,7 @@
|
||||
import { ref } from 'vue'
|
||||
import { usePageScrollHeight } from '@/hooks/use-page-scroll-height'
|
||||
import { staticAssets } from '@/utils/static-assets'
|
||||
import BleReconnectLoading from './components/ble-reconnect-loading/index.vue'
|
||||
import FilterReplaceDialog from './components/filter-replace-dialog/index.vue'
|
||||
import RunModeExplainDialog from './components/run-mode-explain-dialog/index.vue'
|
||||
import { useDeviceDetail } from './use-device-detail'
|
||||
@@ -168,14 +183,13 @@ const { scrollStyle: detailScrollStyle } = usePageScrollHeight({
|
||||
})
|
||||
const runModeExplainVisible = ref(false)
|
||||
|
||||
function onOpenRunModeExplain() {
|
||||
runModeExplainVisible.value = true
|
||||
}
|
||||
|
||||
const {
|
||||
deviceName,
|
||||
connectionText,
|
||||
isOnline,
|
||||
showReconnectLoading,
|
||||
reconnectLoadingTitle,
|
||||
reconnectLoadingDesc,
|
||||
tvocDisplay,
|
||||
tvocLevel,
|
||||
syncText,
|
||||
@@ -199,6 +213,11 @@ const {
|
||||
onConfirmFilterReplace,
|
||||
} = useDeviceDetail()
|
||||
|
||||
function onOpenRunModeExplain() {
|
||||
if (showReconnectLoading.value) return
|
||||
runModeExplainVisible.value = true
|
||||
}
|
||||
|
||||
function onBack() {
|
||||
const pages = getCurrentPages()
|
||||
if (pages.length > 1) {
|
||||
|
||||
Reference in New Issue
Block a user