fixed carrello che scompariva...

This commit is contained in:
Surya Paolo
2024-02-10 16:42:12 +01:00
parent 9dc63466e8
commit b2d6b25539
7 changed files with 19 additions and 13 deletions

View File

@@ -36,17 +36,6 @@
>
</q-input>
</div>
<div class="center-text">
<br />
<div
class="q-ma-sm q-pa-sm text-h7"
v-if="globalStore && globalStore.site.ecomm.NoteExtraOnCart"
>
{{ globalStore.site.ecomm.NoteExtraOnCart }}
</div>
</div>
<div class="text-center">
<q-btn
v-if="
@@ -62,6 +51,16 @@
@click="completeOrder()"
></q-btn>
</div>
<div class="center-text">
<br />
<div
class="q-ma-sm q-pa-sm text-h7"
v-if="globalStore && globalStore.site.ecomm.NoteExtraOnCart"
>
{{ globalStore.site.ecomm.NoteExtraOnCart }}
</div>
</div>
</div>
<div v-else style="text-align: center" class="text-grey">
{{ $t('ecomm.carrello_vuoto') }}

View File

@@ -146,6 +146,7 @@
<div v-if="!!myuser.profile">
<CKeyAndValue mykey="Email:" :myvalue="myuser.email"></CKeyAndValue>
<CKeyAndValue mykey="versione:" :myvalue="myuser.profile.version"></CKeyAndValue>
<div class="q-ml-xs bg-blue text-white text-h6">
<q-banner
dense

View File

@@ -501,6 +501,7 @@ const msg_it = {
ritessitura: 'RITESSITURA',
},
reg: {
version: 'Versione',
socio: 'Socio',
socioresidente: 'Residente',
consiglio: 'Consiglio',

View File

@@ -3033,6 +3033,8 @@ export const colTableUsersISP = [
subfield: 'email_paypal',
label_trans: 'reg.email_paypal',
}),
AddCol({ name: 'profile.version', label_trans: 'reg.version', fieldtype: costanti.FieldType.number }),
/* AddCol({
name: 'profile.payeer_id',
field: 'profile',

View File

@@ -427,6 +427,7 @@ export const useProducts = defineStore('Products', {
else
this.userActive = userStore.my
console.log('userActive', this.userActive)
ris = await Api.SendReq('/products', 'POST', { userId: this.userActive._id })
.then((res) => {

View File

@@ -24,9 +24,11 @@ export default defineComponent({
const userStore = useUserStore()
const products = useProducts()
const { t } = useI18n();
const productStore = useProducts()
function mounted() {
async function mounted() {
// Inizializza
await productStore.loadProducts()
}
onMounted(mounted)

View File

@@ -81,7 +81,7 @@ export default defineComponent({
})
function calcArrProducts() {
console.log('calcArrProducts')
// console.log('calcArrProducts')
refreshpage.value = true
let arrprod = productStore.getProducts(cosa.value)