From: soufiane Date: Thu, 6 Jul 2023 14:31:53 +0000 (+0200) Subject: wip #6106 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ad3cbc68689135ed1f9d429112a4bb4623dbba50;p=pmi.git wip #6106 @0:05 --- 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) },