]> _ Git - pmi.git/commitdiff
wip #6106 @0:05
authorsoufiane <soufiane@cubedesigners.com>
Thu, 6 Jul 2023 14:31:53 +0000 (16:31 +0200)
committersoufiane <soufiane@cubedesigners.com>
Thu, 6 Jul 2023 14:31:53 +0000 (16:31 +0200)
resources/js/app.js

index 83b17c8184557967aa90f408fcac20c4a3bb476c..8bc2cb09f348094658b5c7d3de8298c0926dfc83 100644 (file)
@@ -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)
         },