Просмотр исходного кода

fix(miniprogram): repair broken bxFormat imports after safe-area wiring

Co-authored-by: Cursor <cursoragent@cursor.com>
wuzilong 1 месяц назад
Родитель
Сommit
335dd842be

+ 3 - 2
miniprogram/pages/bx/advance/detail.vue

@@ -197,14 +197,15 @@ import { onLoad } from '@dcloudio/uni-app'
 import { PAGE_PATHS } from '@/config/api'
 import { advanceApi, attachmentApi } from '@/api/bx'
 import {
-import { getSafeAreaStyle } from '@/utils/safeArea'
-const safeAreaStyle = getSafeAreaStyle()
   statusLabel,
   ticketHeaderStatusToneClass,
   formatAmount,
   formatDateTime,
   formatApplyDateTime
 } from '@/utils/bxFormat'
+import { getSafeAreaStyle } from '@/utils/safeArea'
+
+const safeAreaStyle = getSafeAreaStyle()
 
 const detailId = ref('')
 const detail = ref(null)

+ 3 - 2
miniprogram/pages/bx/advance/list.vue

@@ -131,13 +131,14 @@ import { onShow } from '@dcloudio/uni-app'
 import { PAGE_PATHS } from '@/config/api'
 import { advanceApi } from '@/api/bx'
 import {
-import { getSafeAreaStyle } from '@/utils/safeArea'
-const safeAreaStyle = getSafeAreaStyle()
   statusLabel,
   workflowListStatusTagClass,
   formatAmount,
   formatApplyDate
 } from '@/utils/bxFormat'
+import { getSafeAreaStyle } from '@/utils/safeArea'
+
+const safeAreaStyle = getSafeAreaStyle()
 
 const tabs = [
   { label: '全部', value: '' },

+ 3 - 2
miniprogram/pages/bx/all/list.vue

@@ -206,8 +206,6 @@ 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,
@@ -218,6 +216,9 @@ const safeAreaStyle = getSafeAreaStyle()
   normalizeExpenseItem,
   resolveExpenseDisplay
 } from '@/utils/bxFormat'
+import { getSafeAreaStyle } from '@/utils/safeArea'
+
+const safeAreaStyle = getSafeAreaStyle()
 
 const statusFilters = [
   { label: '全部', value: '' },

+ 3 - 2
miniprogram/pages/bx/mine/list.vue

@@ -247,8 +247,6 @@ 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,
   workflowListStatusTagClass,
   formatAmount,
@@ -257,6 +255,9 @@ const safeAreaStyle = getSafeAreaStyle()
   normalizeExpenseItem,
   resolveExpenseDisplay
 } from '@/utils/bxFormat'
+import { getSafeAreaStyle } from '@/utils/safeArea'
+
+const safeAreaStyle = getSafeAreaStyle()
 
 const statusFilters = [
   { label: '全部', value: '' },

+ 3 - 2
miniprogram/pages/bx/reimburse/apply.vue

@@ -261,12 +261,13 @@ import {
   invoiceApi
 } from '@/api/bx'
 import {
-import { getSafeAreaStyle } from '@/utils/safeArea'
-const safeAreaStyle = getSafeAreaStyle()
   normalizeExpenseItem,
   flattenExpenseTree,
   formatExpenseName
 } from '@/utils/bxFormat'
+import { getSafeAreaStyle } from '@/utils/safeArea'
+
+const safeAreaStyle = getSafeAreaStyle()
 
 const MAX_ATTACHMENTS = 10
 const userStore = useUserStore()

+ 3 - 2
miniprogram/pages/bx/reimburse/detail.vue

@@ -220,8 +220,6 @@ import { onLoad } from '@dcloudio/uni-app'
 import { PAGE_PATHS } from '@/config/api'
 import { reimburseApi, attachmentApi, expenseItemApi } from '@/api/bx'
 import {
-import { getSafeAreaStyle } from '@/utils/safeArea'
-const safeAreaStyle = getSafeAreaStyle()
   statusLabel,
   ticketHeaderStatusToneClass,
   formatAmount,
@@ -231,6 +229,9 @@ const safeAreaStyle = getSafeAreaStyle()
   flattenExpenseTree,
   resolveExpenseDisplay
 } from '@/utils/bxFormat'
+import { getSafeAreaStyle } from '@/utils/safeArea'
+
+const safeAreaStyle = getSafeAreaStyle()
 
 const detailId = ref('')
 const detail = ref(null)

+ 3 - 2
miniprogram/pages/bx/reimburse/list.vue

@@ -146,8 +146,6 @@ import { onShow } from '@dcloudio/uni-app'
 import { PAGE_PATHS } from '@/config/api'
 import { reimburseApi, expenseItemApi } from '@/api/bx'
 import {
-import { getSafeAreaStyle } from '@/utils/safeArea'
-const safeAreaStyle = getSafeAreaStyle()
   statusLabel,
   workflowListStatusTagClass,
   formatAmount,
@@ -156,6 +154,9 @@ const safeAreaStyle = getSafeAreaStyle()
   flattenExpenseTree,
   resolveExpenseDisplay
 } from '@/utils/bxFormat'
+import { getSafeAreaStyle } from '@/utils/safeArea'
+
+const safeAreaStyle = getSafeAreaStyle()
 
 const tabs = [
   { label: '全部', value: '' },