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> </q-input>
</div> </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"> <div class="text-center">
<q-btn <q-btn
v-if=" v-if="
@@ -62,6 +51,16 @@
@click="completeOrder()" @click="completeOrder()"
></q-btn> ></q-btn>
</div> </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>
<div v-else style="text-align: center" class="text-grey"> <div v-else style="text-align: center" class="text-grey">
{{ $t('ecomm.carrello_vuoto') }} {{ $t('ecomm.carrello_vuoto') }}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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