From ad3cbc68689135ed1f9d429112a4bb4623dbba50 Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 6 Jul 2023 16:31:53 +0200 Subject: [PATCH] wip #6106 @0:05 --- resources/js/app.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index 83b17c8..8bc2cb0 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -124,6 +124,8 @@ const app = new Vue({ this.statusText = this.$refs.statusConfig ?.dataset.incomplete this.discount = this.$refs.discount ?.dataset.value this.validateAction = this.$refs.forgotpwd ?.dataset.status //specific code for the forgot password confirmation + + console.log(this.getUser()) }, watch: { @@ -478,11 +480,11 @@ const app = new Vue({ options.push(e.selectedOptions[0]) let r = e.selectedOptions[0].dataset.ref; placeholder += r ? r : '-' - placeholder += selectOptions[nextIndex] ? '/' : '' + placeholder += selectOptions[nextIndex] ? '|' : '' }) let prices = options.map(opt => parseFloat(opt.dataset.price)).filter(n => !isNaN(n)), - refs = options.map(opt => opt.dataset.ref).filter(n => n !== undefined).join("/") + refs = options.map(opt => opt.dataset.ref).filter(n => n !== undefined).join("|") if(prices.length === selectOptions.length) { this.statusConfig = true @@ -491,7 +493,7 @@ const app = new Vue({ let total = prices.reduce((init, current) => init + current) - this.ref = this.$refs.refProduct.dataset.ref+'/'+placeholder + this.ref = this.$refs.refProduct.dataset.ref+'|'+placeholder this.price = total + parseFloat(this.$refs.optprice.dataset.default) this.price = parseFloat(this.price).toFixed(2) }, -- 2.39.5