Notifica Telegram e Push quando mandi la stretta di mano

This commit is contained in:
Surya Paolo
2023-06-07 10:15:10 +02:00
parent bd3a9557e2
commit 57eb8ee203
12 changed files with 80 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
import { computed, defineComponent, PropType, ref } from 'vue'
import { computed, defineComponent, onMounted, PropType, ref } from 'vue'
import { ICalcStat, IOperators } from '../../model'
import { useUserStore } from '../../store/UserStore'
@@ -27,12 +27,20 @@ export default defineComponent({
const globalStore = useGlobalStore()
const site = ref(globalStore.site)
const username_telegram_aportador = ref('')
function load() {
///
}
onMounted(load)
return {
userStore,
globalStore,
tools,
site,
username_telegram_aportador,
}
},
})

View File

@@ -13,16 +13,15 @@
</div>
<div v-if="userStore.isUserWaitingVerifAportador()" class="centeritems">
<q-banner inline-actions rounded class="bg-orange text-black">
<q-banner inline-actions rounded class="bg-green text-black">
<template v-slot:avatar>
<q-icon name="info" color="primary" />
</template>
<strong
<strong class="text-h5"
>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>notifica sulla Chat Telegram 'BOT RISO'</strong>.<br /><br />
Se non dovesse arrivarti entro 24 ore, apri il suo profilo e clicca su 'Messaggia' e scrivigli.<br />
</strong>
<q-btn
@@ -31,9 +30,23 @@
color="primary"
icon="fas fa-user"
:to="tools.getLinkProfileAportador()"
:label="`Profilo di ` + tools.getAportadorSolidario()"
:label="`Apri il Profilo di ` + tools.getAportadorSolidario()"
>
</q-btn>
<br><br>
<div class="text-h5"> Oppure manda un messaggio all'assistenza:</div>
<q-btn
rounded
type="a"
class="q-ma-sm"
color="primary"
icon="fab fa-telegram"
href="https://t.me/surya1977"
:label="`Contatta l'Assistenza (Paolo)`"
>
</q-btn>
</q-banner>
</div>
</div>