fix(miniprogram): adapt bx topbar for WeChat capsule safe area

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-09-12 18:54:21 +08:00
1 parent 8505115f05
commit f0d64379a7
13 files changed
+51 -37

No files matched your search

@@ -1,6 +1,6 @@
<template>
<view class="bx-page">
<view class="topbar">
<view class="topbar" :style="safeAreaStyle">
<view class="topbar-left">
<view class="topbar-back" @click="onBack">
<text class="topbar-back-icon">‹</text>
@@ -160,7 +160,6 @@
<view class="bx-sheet__title">选择审批人</view>
<view class="search-wrap" style="padding: 8px 16px 0">
<view class="search-box">
<text class="search-box__icon">⌕</text>
<input
v-model="approverKeyword"
class="search-input"
@@ -197,6 +196,8 @@ import { ref, reactive, computed, onMounted } from 'vue'
import { workflowApi, fetchPortalUserOptions } from '@/api/bx'
import { statusLabel, adminStatusTagClass } from '@/utils/bxFormat'
import { PAGE_PATHS } from '@/config/api'
import { getSafeAreaStyle } from '@/utils/safeArea'
const safeAreaStyle = getSafeAreaStyle()
const props = defineProps({
bizType: { type: String, required: true },
@@ -452,7 +453,7 @@ async function moveDown(node) {
}
function onBack() {
uni.navigateBack({ fail: () => uni.switchTab({ url: PAGE_PATHS.workbench }) })
uni.navigateBack({ fail: () => uni.reLaunch({ url: PAGE_PATHS.workbench }) })
}
onMounted(() => {