fix(miniprogram): adapt bx topbar for WeChat capsule safe area
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
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="goBack">
|
||||
<text class="topbar-back-icon">‹</text>
|
||||
@@ -36,7 +36,6 @@
|
||||
|
||||
<view class="search-wrap">
|
||||
<view class="search-box">
|
||||
<text class="search-box__icon">⌕</text>
|
||||
<input
|
||||
class="search-input"
|
||||
v-model="keyword"
|
||||
@@ -207,6 +206,8 @@ import { onShow } from '@dcloudio/uni-app'
|
||||
import { PAGE_PATHS } from '@/config/api'
|
||||
import { advanceApi, reimburseApi, expenseItemApi } from '@/api/bx'
|
||||
import {
|
||||
import { getSafeAreaStyle } from '@/utils/safeArea'
|
||||
const safeAreaStyle = getSafeAreaStyle()
|
||||
statusLabel,
|
||||
ticketHeaderStatusToneClass,
|
||||
workflowListStatusTagClass,
|
||||
@@ -406,7 +407,7 @@ function clearKeyword() {
|
||||
}
|
||||
|
||||
function goBack() {
|
||||
uni.navigateBack({ fail: () => uni.switchTab({ url: PAGE_PATHS.workbench }) })
|
||||
uni.navigateBack({ fail: () => uni.reLaunch({ url: PAGE_PATHS.workbench }) })
|
||||
}
|
||||
|
||||
function goDetail(item) {
|
||||
|
||||
Reference in new issue
Block a user