From 35763876bab64a000858caa615e35e96228a6a3f Mon Sep 17 00:00:00 2001 From: Chuian Date: Fri, 10 May 2024 17:12:00 +0800 Subject: [PATCH] add story --- components/calculator/benchmark.vue | 115 +++++++++++-- components/calculator/index.vue | 8 +- components/calculator/profile.vue | 241 +++++++++++----------------- 3 files changed, 202 insertions(+), 162 deletions(-) diff --git a/components/calculator/benchmark.vue b/components/calculator/benchmark.vue index 9b61ba6..6bc9d2f 100644 --- a/components/calculator/benchmark.vue +++ b/components/calculator/benchmark.vue @@ -2,23 +2,112 @@ - - - - + + + {{ meetChatGpt() }} + + - \ No newline at end of file + + \ No newline at end of file diff --git a/components/calculator/index.vue b/components/calculator/index.vue index 859bdf4..f645936 100644 --- a/components/calculator/index.vue +++ b/components/calculator/index.vue @@ -19,6 +19,10 @@ +

+ 基本資料 + +

@@ -83,7 +87,7 @@

試算結果

- +
@@ -123,6 +127,7 @@ const config = reactive({ buildingTypes: [], buildingAges: [], retirementQuartile: [], + insuranceTypes: [], // object types townMap: {}, portfolioIRR: {}, @@ -151,6 +156,7 @@ async function setSelecOptionSync() { config.buildingAges = selectResJson.buildingAges || [] config.genders = selectResJson.genders || [] config.retirementQuartile = selectResJson.retirementQuartile || [] + config.insuranceTypes = selectResJson.insuranceTypes || [] Object.assign(config.townMap, selectResJson.townMap) // 由爬蟲抓回的設定 const interestRate = await bankConfigRes[1].json() diff --git a/components/calculator/profile.vue b/components/calculator/profile.vue index daed2c9..2cf3254 100644 --- a/components/calculator/profile.vue +++ b/components/calculator/profile.vue @@ -1,120 +1,97 @@