final changes
This commit is contained in:
parent
96c8206088
commit
ca10097f40
2 changed files with 10 additions and 8 deletions
|
|
@ -161,22 +161,21 @@ export default {
|
|||
isVerified() {
|
||||
return useMainStore().order.payment.insuranceCoverage.isVerified;
|
||||
},
|
||||
carrierPhoneNumber() {
|
||||
const accountInfo = useMainStore().getClientAccountInfo();
|
||||
const { phoneNumber } = accountInfo;
|
||||
return phoneNumber;
|
||||
},
|
||||
carrierName() {
|
||||
return this.mainStore.issConfig.clientName;
|
||||
},
|
||||
carrierUrl() {
|
||||
return this.mainStore.issConfig.successReturnURL;
|
||||
},
|
||||
carrierPhoneNumber() {
|
||||
return this.toDisplayPhoneNumber(useMainStore().order.carrierPhoneNumber);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (this.carrierUrl) {
|
||||
this.$refs.siteFooter.updateButtonText(`Go back to ${this.carrierName}`);
|
||||
}
|
||||
useMainStore().getCarrierAccountInfo();
|
||||
},
|
||||
methods:
|
||||
{
|
||||
|
|
|
|||
|
|
@ -175,7 +175,8 @@ const getDefaultState = () => ({
|
|||
eon: null,
|
||||
workOrderNumber: null,
|
||||
originalDeductible: null,
|
||||
currentDeductible: null
|
||||
currentDeductible: null,
|
||||
carrierPhoneNumber: null
|
||||
},
|
||||
applicationUser: {
|
||||
experiments: [],
|
||||
|
|
@ -925,11 +926,13 @@ export const useMainStore = defineStore({
|
|||
});
|
||||
},
|
||||
|
||||
getClientAccountInfo() {
|
||||
return globalMethods.callHttpClient({
|
||||
async getCarrierAccountInfo() {
|
||||
const response = await globalMethods.callHttpClient({
|
||||
method: endpoints.GetAccountInfo.method,
|
||||
endpoint: endpoints.GetAccountInfo.url + this.issConfig.parentAccountNumber
|
||||
});
|
||||
this.order.carrierPhoneNumber = response.data.phoneNumber;
|
||||
return response;
|
||||
},
|
||||
|
||||
async getSupportingItems() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue