From baf08c1e7ff4188970a130b8603ad4ea237fa3b9 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期四, 27 一月 2022 18:36:39 +0800
Subject: [PATCH] update#134950: 保戶: [個人帳號設定] 可設定備用聯絡方式,並且預約顧問時填寫的備用聯絡方式會回寫帳號設定

---
 PAMapp/pages/accountSetting/index.vue |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/PAMapp/pages/accountSetting/index.vue b/PAMapp/pages/accountSetting/index.vue
index b9ab04d..a07946a 100644
--- a/PAMapp/pages/accountSetting/index.vue
+++ b/PAMapp/pages/accountSetting/index.vue
@@ -17,7 +17,9 @@
         <i class="icon-edit" @click="editField('userName')" :class="{'icon-color-change': !userNameDisabled}"></i>
       </div>
     </div>
-    <div class="pam-paragraph account-info" v-if="phoneValue">
+
+    <!-- NOTE: 銝餉�蝯⊥撘� -->
+    <div class="pam-paragraph account-info" v-if="!isPrimaryContactTypeEmail">
       <div class="account-info__title text--middle">蝬��</div>
       <div class="account-info__input " :class="{'edit': !userPhoneDisabled }">
         <div class="text--middle mb-10">����Ⅳ</div>
@@ -32,7 +34,8 @@
         </div>
       </div>
     </div>
-    <div class="pam-paragraph account-info" v-if="emailValue">
+
+    <div class="pam-paragraph account-info" v-if="isPrimaryContactTypeEmail">
       <div class="account-info__title text--middle">蝬��</div>
       <div class="account-info__input" :class="{'edit': !userEmailDisabled }">
         <div class="text--middle mb-10">Email</div>
@@ -47,6 +50,10 @@
         </div>
       </div>
     </div>
+
+    <!-- NOTE: ���蝯⊥撘� -->
+
+
 
     <PopUpFrame :isOpen.sync="updateDone">
       <div class="text--center mdTxt fs-18">
@@ -70,13 +77,19 @@
 
 <script lang="ts">
 import { Vue,Component } from 'vue-property-decorator'
+import { namespace } from 'vuex-class';
 import { UserSetting } from '~/shared/models/account.model';
 
 import accountSettingService from '~/shared/services/account-setting.service';
 
+const localStorageStore = namespace('localStorage');
+
 @Component
 export default class AccountSetting extends Vue {
 
+  @localStorageStore.Getter
+  isPrimaryContactTypeEmail!: boolean;
+
   _userSetting!: UserSetting;
   userNameDisabled  = true;
   userPhoneDisabled = true;

--
Gitblit v1.8.0