From 5061b673e9df4184537d68ca139cf11a5d1e71b7 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Tue, 4 May 2021 18:53:55 +0800 Subject: [PATCH] code refactor --- src/Mobile.vue | 185 +++++++++++++------------ src/views/mobile/transactions/Edit.vue | 38 ++--- 2 files changed, 113 insertions(+), 110 deletions(-) diff --git a/src/Mobile.vue b/src/Mobile.vue index e6b5f72b..5aedbb47 100644 --- a/src/Mobile.vue +++ b/src/Mobile.vue @@ -97,6 +97,7 @@ export default { diff --git a/src/views/mobile/transactions/Edit.vue b/src/views/mobile/transactions/Edit.vue index 65dcb75f..df980021 100644 --- a/src/views/mobile/transactions/Edit.vue +++ b/src/views/mobile/transactions/Edit.vue @@ -25,10 +25,10 @@ style="font-size: 40px;" header="Expense Amount" title="0.00"> - - + + - + @@ -75,7 +75,7 @@ -
+
{{ transaction.expenseCategory | primaryCategoryName(allCategories[$constants.category.allCategoryTypes.Expense]) }} {{ transaction.expenseCategory | secondaryCategoryName(allCategories[$constants.category.allCategoryTypes.Expense]) }} @@ -100,7 +100,7 @@ -
+
{{ transaction.incomeCategory | primaryCategoryName(allCategories[$constants.category.allCategoryTypes.Income]) }} {{ transaction.incomeCategory | secondaryCategoryName(allCategories[$constants.category.allCategoryTypes.Income]) }} @@ -125,7 +125,7 @@ -
+
{{ transaction.transferCategory | primaryCategoryName(allCategories[$constants.category.allCategoryTypes.Transfer]) }} {{ transaction.transferCategory | secondaryCategoryName(allCategories[$constants.category.allCategoryTypes.Transfer]) }} @@ -150,7 +150,7 @@