address book ui fixes

This commit is contained in:
User 2023-05-20 19:32:27 +05:30
parent 28860d5f95
commit b83eccf0ea
3 changed files with 36 additions and 19 deletions

View File

@ -5,33 +5,33 @@
<v-progress-circular :size="40" color="primary" indeterminate></v-progress-circular> <v-progress-circular :size="40" color="primary" indeterminate></v-progress-circular>
</v-col> </v-col>
<v-col cols="12" v-else-if="verifyAddress.countryId"> <v-col cols="12" v-else-if="verifyAddress.countryId">
<div class="error-box"> <div class="error-box my-3 alert-outline">
<v-alert <v-alert
class="alert-box-outline body" class="alert-box-outline body"
type="success" type="success"
text text
dense density="compact"
v-if="geoCodedAddressFlag" v-if="geoCodedAddressFlag"
>{{geoCodedAddress}}</v-alert> >{{geoCodedAddress}}</v-alert>
<v-alert <v-alert
class="alert-box-outline grey lighten-4 body" class="alert-box-outline grey lighten-4 body alert-outline"
dense density="compact"
v-if="!geoCodedAddressFlag" v-if="!geoCodedAddressFlag"
>{{geoCodedAddress}}</v-alert> >{{geoCodedAddress}}</v-alert>
</div> </div>
<div class="success-box"> <div class="success-box">
<p class="body"> <p class="body textColor">
If the address below is correct then you dont need to do anything. To change your address, If the address below is correct then you dont need to do anything. To change your address,
<v-hover v-slot:default="{ hover }"> <v-hover v-slot:default="{ isHovering }">
<router-link <router-link
to="#" to="#"
class="text-decoration-none" class="text-decoration-none"
target="_self" target="_self"
:class="hover ? 'primary--text':'black--text'" :class="isHovering ? 'text-primary':'text-black'"
>Click here</router-link> >Click here</router-link>
</v-hover> </v-hover>
</p> </p>
<v-alert class="alert-box-outline grey lighten-4" dense> <v-alert class="alert-box-outline grey lighten-4 alert-outline my-3" dense>
<p class="mb-2 body">{{verifyAddress.firstname}} {{verifyAddress.lastname}}</p> <p class="mb-2 body">{{verifyAddress.firstname}} {{verifyAddress.lastname}}</p>
<p class="mb-2 body">{{verifyAddress.streetNoOne}}</p> <p class="mb-2 body">{{verifyAddress.streetNoOne}}</p>
<p class="mb-2 body">{{verifyAddress.streetNoTwo}}</p> <p class="mb-2 body">{{verifyAddress.streetNoTwo}}</p>
@ -108,3 +108,13 @@ export default {
} }
}; };
</script> </script>
<style>
.alert-outline{
border: thin solid rgb(218, 209, 209);
border-radius: 5px;
}
.textColor{
color: #6d6565;
}
</style>

View File

@ -16,3 +16,8 @@
background-color: red !important; background-color: red !important;
color:#ffffff !important; color:#ffffff !important;
} }
.alert-box-outline{
color: #fb8c00 !important;
background-color: #fdede8;
border:thin solid #c5c4c4;
}

View File

@ -264,7 +264,7 @@
@input="validateNumber" @input="validateNumber"
></vue-tel-input> ></vue-tel-input>
<span <span
class="red--text caption ml-3" class="text-red caption ml-3"
v-show="phoneNumberError" v-show="phoneNumberError"
>This field is required</span >This field is required</span
> >
@ -296,7 +296,8 @@
class="alert-box-outline" class="alert-box-outline"
type="warning" type="warning"
text text
dense density="compact"
variant="outlined"
v-if="addressId == basicInfo.defaultBilling" v-if="addressId == basicInfo.defaultBilling"
>This is default billing address</v-alert >This is default billing address</v-alert
@ -309,10 +310,11 @@
color="primary" color="primary"
></v-checkbox> ></v-checkbox>
<v-alert <v-alert
class="alert-box-outline" class="alert-box-outline mt-4"
type="warning" type="warning"
text text
dense density="compact"
variant="outlined"
v-if="addressId == basicInfo.defaultShipping" v-if="addressId == basicInfo.defaultShipping"
>This is default shipping address</v-alert >This is default shipping address</v-alert
> >
@ -333,10 +335,10 @@
</v-hover> </v-hover>
<v-dialog v-model="dialog" persistent max-width="1100px"> <v-dialog v-model="dialog" persistent max-width="1100px">
<v-card class="pb-2"> <v-card class="pb-2">
<v-card-title class="pb-2"> <v-card-title >
<v-row no-gutters> <v-row no-gutters>
<v-col cols="11"> <v-col cols="11">
<p class="h2 mb-1 body-font text-uppercase primary--text"> <p class="text-h4 pt-4 body-font text-uppercase text-primary">
Verify Your Address Verify Your Address
</p> </p>
</v-col> </v-col>
@ -344,7 +346,7 @@
<v-col cols="1" class="text-right"> <v-col cols="1" class="text-right">
<router-link <router-link
to to
class="text-decoration-none black--text fontcolor-black-light" class="text-decoration-none text-black fontcolor-black-light"
> >
<div @click="dialog = false">X</div> <div @click="dialog = false">X</div>
</router-link> </router-link>
@ -397,7 +399,7 @@
v-bind="props" v-bind="props"
:variant="isHovering ? 'outlined' : 'outlined'" :variant="isHovering ? 'outlined' : 'outlined'"
:class=" :class="
isHovering ? ' bg-white text-primary' : 'bg-primary' isHovering ? ' bg-white text-success' : 'bg-success'
" "
rounded="0" rounded="0"
size="large" size="large"
@ -442,7 +444,7 @@ import MeVerifyAddressComponent from "@/components/retailer/address/MeVerifyAddr
import { loginInterrupt } from "@/services/nav"; import { loginInterrupt } from "@/services/nav";
import SnackbarComponent from "@/components/common/SnackbarComponent.vue"; import SnackbarComponent from "@/components/common/SnackbarComponent.vue";
import ConfirmationDialog from "@/components/common/ConfirmationDialog.vue"; import ConfirmationDialog from "@/components/common/ConfirmationDialog.vue";
import VueTelInput from 'vue-tel-input'; import VueTelInput from 'vue3-tel-input'
//import BillingAddressComponent from "@/components/retailer/address/BillingAddressComponent.vue"; //import BillingAddressComponent from "@/components/retailer/address/BillingAddressComponent.vue";
import { createHelpers } from "vuex-map-fields"; import { createHelpers } from "vuex-map-fields";