Tech review changes
This commit is contained in:
parent
c15bf8eed6
commit
b3f4e09a21
5 changed files with 15 additions and 19 deletions
|
|
@ -525,7 +525,6 @@ describe("license-plate-lookup.vue", () => {
|
||||||
});
|
});
|
||||||
const registrationZip = "12345";
|
const registrationZip = "12345";
|
||||||
const serviceZip = "12345";
|
const serviceZip = "12345";
|
||||||
console.log("this is the test I care about");
|
|
||||||
|
|
||||||
wrapper.vm.navigateForward = jest.fn();
|
wrapper.vm.navigateForward = jest.fn();
|
||||||
const vinLookup = { data: { vehicle: { carId: "TESTID1" } } };
|
const vinLookup = { data: { vehicle: { carId: "TESTID1" } } };
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,6 @@
|
||||||
v-model="providerNumber"
|
v-model="providerNumber"
|
||||||
:serviceZipCode="zipCode"
|
:serviceZipCode="zipCode"
|
||||||
:selectedAppointmentType="selectedAppointmentType"
|
:selectedAppointmentType="selectedAppointmentType"
|
||||||
:shopQuestionData="shopQuestionInitialData"
|
|
||||||
cmsWidgetName="ShopQuestionWidget" />
|
cmsWidgetName="ShopQuestionWidget" />
|
||||||
</Transition>
|
</Transition>
|
||||||
<contentGroupModal ref="RecalModal" cmsWidgetName="RecalModal" />
|
<contentGroupModal ref="RecalModal" cmsWidgetName="RecalModal" />
|
||||||
|
|
@ -296,12 +295,6 @@ export default {
|
||||||
displayNoShopsAlert() {
|
displayNoShopsAlert() {
|
||||||
return !this.isServiceableInshop && !this.isServiceableMobile;
|
return !this.isServiceableInshop && !this.isServiceableMobile;
|
||||||
},
|
},
|
||||||
isDropoff() {
|
|
||||||
return this.selectedAppointmentType === "Dropoff";
|
|
||||||
},
|
|
||||||
isMobile() {
|
|
||||||
return this.selectedAppointmentType === "Mobile";
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
arePagePrerequisitesValid() {
|
arePagePrerequisitesValid() {
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ jest.mock("@/mixins/base-mixin", () => ({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
scrollToPageBottom() {}
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,6 @@ export default {
|
||||||
return {
|
return {
|
||||||
shops: [],
|
shops: [],
|
||||||
shopListButton: shopListButton,
|
shopListButton: shopListButton,
|
||||||
availability: "high",
|
|
||||||
answers: [],
|
answers: [],
|
||||||
shopIndex: 0,
|
shopIndex: 0,
|
||||||
displaySeeMoreLocationsLink: false,
|
displaySeeMoreLocationsLink: false,
|
||||||
|
|
@ -102,10 +101,10 @@ export default {
|
||||||
},
|
},
|
||||||
async getNextShopsFromList(numberToGet = 3) {
|
async getNextShopsFromList(numberToGet = 3) {
|
||||||
const shopIterator = (array, n) => {
|
const shopIterator = (array, n) => {
|
||||||
let l = array.length;
|
const l = array.length;
|
||||||
return () => {
|
return () => {
|
||||||
var end = this.shopIndex + n;
|
const end = this.shopIndex + n;
|
||||||
var part = array.slice(this.shopIndex, end);
|
const part = array.slice(this.shopIndex, end);
|
||||||
this.shopIndex = end < l ? end : this.shops.length;
|
this.shopIndex = end < l ? end : this.shops.length;
|
||||||
return part;
|
return part;
|
||||||
};
|
};
|
||||||
|
|
@ -120,7 +119,6 @@ export default {
|
||||||
buttonLabel: shop.city,
|
buttonLabel: shop.city,
|
||||||
buttonLabelSubCopy: `${shop.distance} mi`,
|
buttonLabelSubCopy: `${shop.distance} mi`,
|
||||||
buttonBodyCopy: `${shop.streetAddress}, ${shop.city}, ${shop.state} ${shop.zipCode}`,
|
buttonBodyCopy: `${shop.streetAddress}, ${shop.city}, ${shop.state} ${shop.zipCode}`,
|
||||||
//buttonAuxillaryCopy: `foo`,
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -142,7 +140,8 @@ export default {
|
||||||
|
|
||||||
await this.$nextTick();
|
await this.$nextTick();
|
||||||
|
|
||||||
this.scrollToBottom();
|
this.scrollToPageBottom();
|
||||||
|
|
||||||
},
|
},
|
||||||
resetShopList() {
|
resetShopList() {
|
||||||
this.answers = [];
|
this.answers = [];
|
||||||
|
|
@ -150,10 +149,6 @@ export default {
|
||||||
this.selectedValue = "";
|
this.selectedValue = "";
|
||||||
this.$refs.buttonQuestion.resetField();
|
this.$refs.buttonQuestion.resetField();
|
||||||
},
|
},
|
||||||
scrollToBottom() {
|
|
||||||
const container = document.getElementsByClassName("page-container-grouped-styles")[0];
|
|
||||||
container.scrollTo({ top: container.scrollHeight, left: 0, behavior: "smooth" });
|
|
||||||
},
|
|
||||||
async reloadShopData(serviceZipCode) {
|
async reloadShopData(serviceZipCode) {
|
||||||
const result = await this.loadInitialData(serviceZipCode);
|
const result = await this.loadInitialData(serviceZipCode);
|
||||||
this.initializeComponent(result.data);
|
this.initializeComponent(result.data);
|
||||||
|
|
@ -176,7 +171,7 @@ export default {
|
||||||
|
|
||||||
await this.$nextTick();
|
await this.$nextTick();
|
||||||
|
|
||||||
this.scrollToBottom();
|
this.scrollToPageBottom();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
shops: {
|
shops: {
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,14 @@ export default {
|
||||||
getTotalLineItemPrice(lineItem) {
|
getTotalLineItemPrice(lineItem) {
|
||||||
return lineItem.kitPrice + lineItem.laborAmount + lineItem.sellingPrice;
|
return lineItem.kitPrice + lineItem.laborAmount + lineItem.sellingPrice;
|
||||||
},
|
},
|
||||||
|
scrollToPageTop() {
|
||||||
|
const container = document.getElementsByClassName("page-container-grouped-styles")[0];
|
||||||
|
container.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
||||||
|
},
|
||||||
|
scrollToPageBottom() {
|
||||||
|
const container = document.getElementsByClassName("page-container-grouped-styles")[0];
|
||||||
|
container.scrollTo({ top: container.scrollHeight, left: 0, behavior: "smooth" });
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
storeActions() {
|
storeActions() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue