poter visualizzare i propri beni e servizi anche se non sei registrato alla app !

This commit is contained in:
Surya Paolo
2023-01-04 02:09:51 +01:00
parent ce4bf65fc4
commit 98dcea5526
12 changed files with 151 additions and 29 deletions

View File

@@ -23,9 +23,11 @@
</div>
</q-card>
</div>
<div v-else-if="tools.isUserOk() || tools.isLogged()">
<div v-else>
<div v-if="myuser">
<CNotifAtTop />
<div v-if="tools.isUserOk() || tools.isLogged()">
<CNotifAtTop />
</div>
<div class="q-gutter-sm q-pa-sm q-pb-md">
<div
v-if="myuser && myuser.date_reg"
@@ -76,7 +78,7 @@
<div class="col-12 text-h7 text-blue text-shadow-2">
{{ myuser.username }}
</div>
<br>
<br />
<CTitleBanner
v-if="site.confpages.showCompetenze"
@@ -87,8 +89,6 @@
myclass="myshad"
:canopen="true"
>
<div v-for="(card, ind) of mycards" :key="ind" :name="card.table">
<div class="text-h6">{{ card.title }}</div>
<div v-if="card.table === 'mygroups'">
@@ -99,7 +99,11 @@
class="q-my-sm q-mx-none"
clickable
>
<CMyGroup :mygrp="grp" :visu="costanti.USER_GROUPS">
<CMyGroup
:mygrp="grp"
:visu="costanti.USER_GROUPS"
:noaut="true"
>
</CMyGroup>
</span>
</q-list>
@@ -115,6 +119,7 @@
<CMyCircuit
:mycircuit="circuit"
:visu="costanti.USER_CIRCUITS"
:noaut="true"
>
</CMyCircuit>
</span>
@@ -126,6 +131,7 @@
:filtercustom="filtroutente"
:butt_modif_new="isMyRecord(myuser.username)"
:visuinpage="true"
:noaut="true"
/>
</div>
</div>
@@ -133,6 +139,10 @@
</div>
</div>
<div v-if="!tools.isLogged()">
<CCheckIfIsLogged></CCheckIfIsLogged>
</div>
<q-dialog v-model="showPic" full-height full-width>
<img :src="getImgUser()" :alt="username" class="full-width" />
</q-dialog>

View File

@@ -5,9 +5,6 @@
<div v-if="caricato">caricato: {{ caricato }}</div>
<div v-if="myuser">myuser: {{ myuser.username }}</div>
</div>
<div v-if="!tools.isLogged()">
<CCheckIfIsLogged></CCheckIfIsLogged>
</div>
<div
v-if="!caricato"
class="fit column no-wrap justify-evenly items-center content-start"
@@ -32,6 +29,96 @@
</div>
</q-card>
</div>
<div v-else-if="!tools.isLogged()">
<div class="q-gutter-sm q-pa-sm q-pb-md">
<div
v-if="myuser && myuser.date_reg"
class="fit column no-wrap justify-evenly items-center content-start"
>
<div class="">
<q-avatar size="140px">
<q-img
:src="myuser.profile ? getImgUser(myuser.profile) : ''"
:alt="username"
img-class="imgprofile"
height="140px"
@click="showPic = true"
/>
<q-badge
v-if="tools.isUserOnline(myuser)"
align="top"
floating
color="green"
>online</q-badge
>
</q-avatar>
</div>
<div class="last_access">
OnLine: {{ tools.timeAgo(myuser.lasttimeonline) }}
</div>
<div v-if="myuser.reported">
<CTitleBanner
title="⚠️ L'utente è stato Segnalato per comportamento non idoneo."
bgcolor="bg-red"
clcolor="text-white"
>
</CTitleBanner>
</div>
<div v-if="site && site.confpages && site.confpages.showNameSurname">
<div class="text-h6">
<span v-if="checkifShow('name') && myuser.name">
{{ myuser.name }}</span
>
<span v-if="checkifShow('surname') && myuser.surname"
>&nbsp;{{ myuser.surname }}</span
>
</div>
</div>
<div class="col-12 text-h7 text-blue text-shadow-2">
{{ myuser.username }}
</div>
<div class="col-12 text-h7">
<span v-if="myuser.profile && myuser.profile.born_city_id">
<CMyFieldRec
title=""
table="users"
tablesel="cities"
:id="myuser._id"
:rec="myuser"
field="profile.born_city_id"
:canEdit="false"
:canModify="false"
>
</CMyFieldRec>
{{ myuser.profile.born_city_str }}</span
>
<span
v-if="
myuser.profile &&
myuser.profile.nationality &&
myuser.profile.nationality !== 'Italia'
"
>({{ myuser.profile.nationality }})</span
>
</div>
<div v-if="myuser._id" class="col-12 text-h8 q-mt-sm">
<span v-if="myuser.profile.qualifica">
<em
><span class="qualifica">{{ myuser.profile.qualifica }}</span></em
>
</span>
</div>
<div v-if="myuser._id" class="col-12 text-h8 q-mt-sm">
{{ myuser.profile.biografia }}
</div>
</div>
</div>
<CCheckIfIsLogged></CCheckIfIsLogged>
</div>
<div v-else-if="tools.isUserOk() || tools.isLogged()">
<div v-if="myuser">
<CNotifAtTop />
@@ -274,18 +361,17 @@
:label="$t('reg.email')"
/>
<q-btn
outline
icon="fas fa-envelope"
:color="$q.dark.isActive ? `shite` : `black`"
type="a"
size="md"
:label="$t('msgs.send_email')"
:href="tools.getemailto(myuser.email)"
target="__blank"
>
</q-btn>
<q-btn
outline
icon="fas fa-envelope"
:color="$q.dark.isActive ? `shite` : `black`"
type="a"
size="md"
:label="$t('msgs.send_email')"
:href="tools.getemailto(myuser.email)"
target="__blank"
>
</q-btn>
</div>
</div>
<div class="col-md-6 col-sm-6 q-ma-xs col-xs-12">