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 actual = ''
const tablesel = ref('') 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 myfilter = ref('')
const myfilterand: any = ref([]) const myfilterand: any = ref([])
let rowsel: any = {} let rowsel: any = {}
@@ -337,6 +348,7 @@ export default defineComponent({
gotoPageSel, gotoPageSel,
createNewRecordDialog, createNewRecordDialog,
toHome, toHome,
iconsel,
} }
} }
}) })

View File

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

View File

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

View File

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

View File

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

View File

@@ -6,46 +6,80 @@
</CVerifyTelegram> </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"> <div v-if="tools.isTelegOk()" class="centeritems">
<q-banner <q-banner
v-if="!tools.isUsernameTelegOk()" v-if="!tools.isUsernameTelegOk()"
inline-actions rounded class="bg-green-4 text-black"> inline-actions
<div class="text-subtitle1">🔑 E' necessario ora impostare un <b>Username su Telegram</b>:</div> 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> 💬 In questo modo le persone potranno contattarti (sia su Telegram sia
<br> dalla APP)
👉🏻 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> <strong
👉🏻 2. Seleziona la voce <b>Impostazioni</b> nel menu.<br> >senza aver bisogno di condividere il tuo numero di cellulare</strong
👉🏻 3. Premi su <b>Username</b> nella sezione account.<br> >.<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> <br />
👉🏻 5. Per confermare premi sull'icona con la spunta (V) in alto a destra.<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>. 🏁 Infine vai sul <b>BOT RISO</b> Telegram e scrivi OK nel messaggio. Ti
<q-btn rounded color="primary" icon="fab fa-telegram" label="Apri il BOT" comparirà un <strong>messaggio di Benvenuto</strong>.
type="a" <q-btn
:href="tools.getLinkBotTelegram('')" target="_blank"></q-btn> rounded
<br><br> color="primary"
icon="fab fa-telegram"
label="Apri il BOT"
type="a"
: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 Se non ci riesci vedi la
L'USERNAME SU TELEGRAM</a><br> <a
<br> 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" 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 /><strong>CLICCANDO QUI</strong> 👉🏻
<br><br> <a href="https://t.me/+dTHFNIwkc_phNmQ8" target="_blank"
><strong>Help - RISO</strong></a
>
<br /><br />
</q-banner> </q-banner>
<q-banner v-else <q-banner v-else inline-actions rounded class="bg-orange text-black">
inline-actions rounded class="bg-orange text-black">
<template v-slot:avatar> <template v-slot:avatar>
<q-icon name="info" color="primary"/> <q-icon name="info" color="primary" />
</template> </template>
<strong>Appena sarai abilitato, dal tuo invitante {{ tools.getAportadorSolidario() }}, ti arriverà una <strong>notifica su Telegram</strong>.<br><br> <strong
Se non dovesse arrivarti entro 24 ore prova a mandargli un messaggio.<br> >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> </strong>
<q-btn <q-btn
@@ -54,22 +88,40 @@
color="primary" color="primary"
icon="fas fa-user" icon="fas fa-user"
:to="tools.getLinkProfileAportador()" :to="tools.getLinkProfileAportador()"
:label="`Profilo di ` + tools.getAportadorSolidario()"> :label="`Profilo di ` + tools.getAportadorSolidario()"
>
</q-btn> </q-btn>
</q-banner> </q-banner>
</div> </div>
<div v-else-if="userStore.isOldRegNotFinished()"> <div v-else-if="userStore.isOldRegNotFinished()">
<div v-if="site.confpages.enabledRegNeedTelegram && !tools.isTelegOk()"> <div
<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> v-if="
<h3>Per contattare il supporto tecnico e farvi cancellare la registrazione: "Help - RISO", clicca qui sotto:</h3><br> site.confpages.enabledRegNeedTelegram &&
<h4><a href="https://t.me/+dTHFNIwkc_phNmQ8" target="_blank"><strong>Entra in Supporto Tecnico su Telegram: (Help - RISO)</strong></a></h4> !site.confpages.enableRegMultiChoice &&
<br><br> !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> </div>
</div> </div>
</template> </template>

View File

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

View File

@@ -4999,6 +4999,9 @@ export const tools = {
isVerified(): boolean { isVerified(): boolean {
const globalStore = useGlobalStore() const globalStore = useGlobalStore()
const site = globalStore.site const site = globalStore.site
if (site.confpages.enableRegMultiChoice) {
return tools.TelegVerificato() || this.isEmailVerified()
}
if (site.confpages.enabledRegNeedTelegram) { if (site.confpages.enabledRegNeedTelegram) {
return tools.TelegVerificato() return tools.TelegVerificato()
@@ -5010,7 +5013,8 @@ export const tools = {
Verificato() { Verificato() {
const userStore = useUserStore() 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 { isUserOk(): boolean {
return this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador! && this.isUsernameTelegOk() 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! // 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() { function load() {
// console.log('load') // console.log('load VREG')
let param: ILinkReg let param: ILinkReg = { idlink: '' }
param = { idlink: route.query.idlink!.toString() } if (route.query.idlink)
console.log('idlink = ', param) param = { idlink: route.query.idlink!.toString() }
// console.log('idlink = ', param)
return userStore.vreg(param) return userStore.vreg(param)
.then((ris: any) => { .then((ris: any) => {
riscode.value = ris.code riscode.value = ris.code