Registrazione senza Telegram

This commit is contained in:
Surya Paolo
2022-12-09 01:03:52 +01:00
parent 56411a4539
commit 771271fda2
33 changed files with 130 additions and 51 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 333 KiB

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 550 KiB

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 529 KiB

After

Width:  |  Height:  |  Size: 634 KiB

View File

@@ -105,6 +105,17 @@ export default defineComponent({
const actual = ''
const tablesel = ref('')
const iconsel = computed(() => {
const myarr: any = tools.getoptionsMainCards(false)
if (myarr) {
const rec = myarr.find((rec: any) => rec.value === tablesel.value)
if (rec) {
return rec.icon
}
}
return ''
})
const myfilter = ref('')
const myfilterand: any = ref([])
let rowsel: any = {}
@@ -337,6 +348,7 @@ export default defineComponent({
gotoPageSel,
createNewRecordDialog,
toHome,
iconsel,
}
}
})

View File

@@ -27,7 +27,7 @@
/>
</q-avatar>
</div>
<div class="col-3">
<div class="col-4">
<q-select
v-model="tablesel"
:options="optionsMainCards"
@@ -37,6 +37,9 @@
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
@update:model-value="gotoPageSel"
>
<template v-slot:prepend>
<q-icon :name="iconsel" />
</template>
<template v-slot:option="scope">
<q-item v-bind="scope.itemProps">
<q-item-section avatar>
@@ -53,13 +56,13 @@
</q-select>
</div>
<q-space />
<q-btn
<!--<q-btn
size="sm"
class="col-1 q-mx-xs"
icon="fas fa-plus"
@click="createNewRecordDialog"
>
</q-btn>
</q-btn>-->
<div
class="col"
v-for="(item, index) in searchList"

View File

@@ -1055,7 +1055,7 @@
:offset="[18, 68]"
>
<q-btn
fab-mini
fab
glossy
class="semi-transparent"
icon="add"

View File

@@ -1,7 +1,6 @@
<template>
<div class="text-center">
<div v-if="multiselect_by_server">
myarrvalue: {{myarrvalue}}
<q-select
:model-value="myarrvalue"
@update:model-value="changeval"

View File

@@ -219,6 +219,7 @@
>
<template v-slot:append>
<q-btn
tabindex="-1"
:icon="typePassword === `password` ? `fas fa-eye-slash` : `fas fa-eye`"
@click="showPassword"
>
@@ -245,6 +246,7 @@
>
<template v-slot:append>
<q-btn
tabindex="-1"
:icon="typePassword === `password` ? `fas fa-eye-slash` : `fas fa-eye`"
@click="showPassword"
>

View File

@@ -6,46 +6,80 @@
</CVerifyTelegram>
-->
<!--<CVerifyEmail v-if="!tools.isEmailVerified() && !tools.TelegVerificato()">
<div v-if="site.confpages.enableRegMultiChoice">
<CVerifyEmail v-if="!tools.isEmailVerified() && !tools.TelegVerificato()">
</CVerifyEmail>
</div>
</CVerifyEmail>-->
<div v-if="tools.isTelegOk()" class="centeritems">
<q-banner
v-if="!tools.isUsernameTelegOk()"
inline-actions rounded class="bg-green-4 text-black">
<div class="text-subtitle1">🔑 E' necessario ora impostare un <b>Username su Telegram</b>:</div>
inline-actions
rounded
class="bg-green-4 text-black"
>
<div class="text-subtitle1">
🔑 E' necessario ora impostare un <b>Username su Telegram</b>:
</div>
💬 In questo modo le persone potranno contattarti (sia su Telegram sia dalla APP) <strong>senza aver bisogno di condividere il tuo numero di cellulare</strong>.<br>
<br>
👉🏻 1. Vai su Telegram, e nella pagina iniziale (dove vedi tutte le chat), premi sull'icona (tre linee orizzontali) del menu principale in alto a sinistra (sull'iPhone si chiama "Impostazioni").<br>
👉🏻 2. Seleziona la voce <b>Impostazioni</b> nel menu.<br>
👉🏻 3. Premi su <b>Username</b> nella sezione account.<br>
👉🏻 4. Digita un <strong>username qualsiasi</strong> a tua scelta (deve essere un nome ancora libero e non già usato da altri, <u>non deve per forza coincidere con l'username che hai scelto per la APP</u>).<br>
👉🏻 5. Per confermare premi sull'icona con la spunta (V) in alto a destra.<br>
💬 In questo modo le persone potranno contattarti (sia su Telegram sia
dalla APP)
<strong
>senza aver bisogno di condividere il tuo numero di cellulare</strong
>.<br />
<br />
👉🏻 1. Vai su Telegram, e nella pagina iniziale (dove vedi tutte le
chat), premi sull'icona (tre linee orizzontali) del menu principale in
alto a sinistra (sull'iPhone si chiama "Impostazioni").<br />
👉🏻 2. Seleziona la voce <b>Impostazioni</b> nel menu.<br />
👉🏻 3. Premi su <b>Username</b> nella sezione account.<br />
👉🏻 4. Digita un <strong>username qualsiasi</strong> a tua scelta (deve
essere un nome ancora libero e non già usato da altri,
<u
>non deve per forza coincidere con l'username che hai scelto per la
APP</u
>).<br />
👉🏻 5. Per confermare premi sull'icona con la spunta (V) in alto a
destra.<br />
🏁 Infine vai sul <b>BOT RISO</b> Telegram e scrivi OK nel messaggio. Ti comparirà un <strong>messaggio di Benvenuto</strong>.
<q-btn rounded color="primary" icon="fab fa-telegram" label="Apri il BOT"
🏁 Infine vai sul <b>BOT RISO</b> Telegram e scrivi OK nel messaggio. Ti
comparirà un <strong>messaggio di Benvenuto</strong>.
<q-btn
rounded
color="primary"
icon="fab fa-telegram"
label="Apri il BOT"
type="a"
:href="tools.getLinkBotTelegram('')" target="_blank"></q-btn>
<br><br>
:href="tools.getLinkBotTelegram('')"
target="_blank"
></q-btn>
<br /><br />
Se non ci riesci vedi la <a href="https://www.nigiara.it/telegram/come-impostare-uno-username-su-telegram.htm" target="_blank">GUIDA PER IMPOSTARE
L'USERNAME SU TELEGRAM</a><br>
<br>
Se non ci riesci vedi la
<a
href="https://www.nigiara.it/telegram/come-impostare-uno-username-su-telegram.htm"
target="_blank"
>GUIDA PER IMPOSTARE L'USERNAME SU TELEGRAM</a
><br />
<br />
Se hai difficoltà, contatta la Chat del Supporto Tecnico: "Help - RISO"
<br><strong>CLICCANDO QUI</strong> 👉🏻 <a href="https://t.me/+dTHFNIwkc_phNmQ8" target="_blank"><strong>Help - RISO</strong></a>
<br><br>
<br /><strong>CLICCANDO QUI</strong> 👉🏻
<a href="https://t.me/+dTHFNIwkc_phNmQ8" target="_blank"
><strong>Help - RISO</strong></a
>
<br /><br />
</q-banner>
<q-banner v-else
inline-actions rounded class="bg-orange text-black">
<q-banner v-else inline-actions rounded class="bg-orange text-black">
<template v-slot:avatar>
<q-icon name="info" color="primary"/>
<q-icon name="info" color="primary" />
</template>
<strong>Appena sarai abilitato, dal tuo invitante {{ tools.getAportadorSolidario() }}, ti arriverà una <strong>notifica su Telegram</strong>.<br><br>
Se non dovesse arrivarti entro 24 ore prova a mandargli un messaggio.<br>
<strong
>Appena sarai abilitato, dal tuo invitante
{{ tools.getAportadorSolidario() }}, ti arriverà una
<strong>notifica su Telegram</strong>.<br /><br />
Se non dovesse arrivarti entro 24 ore prova a mandargli un
messaggio.<br />
</strong>
<q-btn
@@ -54,22 +88,40 @@
color="primary"
icon="fas fa-user"
:to="tools.getLinkProfileAportador()"
:label="`Profilo di ` + tools.getAportadorSolidario()">
:label="`Profilo di ` + tools.getAportadorSolidario()"
>
</q-btn>
</q-banner>
</div>
<div v-else-if="userStore.isOldRegNotFinished()">
<div v-if="site.confpages.enabledRegNeedTelegram && !tools.isTelegOk()">
<h3>La Verifica su Telegram non è stata completata, pertanto se ancora non avete inserito nessun annuncio (Bene, Servizio, ecc...), è consigliato cancellare la vecchia registrazione per ripetere con una nuova registrazione.</h3><br>
<h3>Per contattare il supporto tecnico e farvi cancellare la registrazione: "Help - RISO", clicca qui sotto:</h3><br>
<h4><a href="https://t.me/+dTHFNIwkc_phNmQ8" target="_blank"><strong>Entra in Supporto Tecnico su Telegram: (Help - RISO)</strong></a></h4>
<br><br>
<div
v-if="
site.confpages.enabledRegNeedTelegram &&
!site.confpages.enableRegMultiChoice &&
!tools.isTelegOk()
"
>
<h3>
La Verifica su Telegram non è stata completata, pertanto se ancora non
avete inserito nessun annuncio (Bene, Servizio, ecc...), è consigliato
cancellare la vecchia registrazione per ripetere con una nuova
registrazione.
</h3>
<br />
<h3>
Per contattare il supporto tecnico e farvi cancellare la
registrazione: "Help - RISO", clicca qui sotto:
</h3>
<br />
<h4>
<a href="https://t.me/+dTHFNIwkc_phNmQ8" target="_blank"
><strong
>Entra in Supporto Tecnico su Telegram: (Help - RISO)</strong
></a
>
</h4>
<br /><br />
</div>
</div>
</div>
</template>

View File

@@ -5,7 +5,6 @@ $textcol_scuro: darkblue;
p {
color: black;
margin: 0 0 1rem;
//text-shadow: .125rem .125rem .25rem $grayshadow;
}

View File

@@ -4999,6 +4999,9 @@ export const tools = {
isVerified(): boolean {
const globalStore = useGlobalStore()
const site = globalStore.site
if (site.confpages.enableRegMultiChoice) {
return tools.TelegVerificato() || this.isEmailVerified()
}
if (site.confpages.enabledRegNeedTelegram) {
return tools.TelegVerificato()
@@ -5010,7 +5013,8 @@ export const tools = {
Verificato() {
const userStore = useUserStore()
return this.isVerified() && userStore.my.verified_by_aportador
const globalStore = useGlobalStore()
return this.isVerified() && (userStore.my.verified_by_aportador || globalStore.site.confpages.enableRegMultiChoice)
},

View File

@@ -389,7 +389,13 @@ export const useUserStore = defineStore('UserStore', {
},
isUserOk(): boolean {
const globalStore = useGlobalStore()
if (globalStore.site.confpages.enableRegMultiChoice) {
return (this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador! && this.isUsernameTelegOk()) || this.my.verified_email!
} else {
return this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador! && this.isUsernameTelegOk()
}
// return this.my.verified_email! && this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador!
},

View File

@@ -41,10 +41,12 @@ export default defineComponent({
}
function load() {
// console.log('load')
let param: ILinkReg
// console.log('load VREG')
let param: ILinkReg = { idlink: '' }
if (route.query.idlink)
param = { idlink: route.query.idlink!.toString() }
console.log('idlink = ', param)
// console.log('idlink = ', param)
return userStore.vreg(param)
.then((ris: any) => {
riscode.value = ris.code