Add Movement !
This commit is contained in:
@@ -16,7 +16,7 @@ import { useI18n } from '@/boot/i18n'
|
||||
import { toolsext } from '@store/Modules/toolsext'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { costanti } from '@costanti'
|
||||
import { ICity, IFriends, ICircuit, ISearchList, IUserFields } from 'model'
|
||||
import { ICity, IFriends, ICircuit, ISearchList, IUserFields, IAccount } from 'model'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { colmyUserPeople, colmyUserCircuit } from '@store/Modules/fieldsTable'
|
||||
import { useNotifStore } from '@store/NotifStore'
|
||||
@@ -42,6 +42,7 @@ export default defineComponent({
|
||||
const showPic = ref(false)
|
||||
|
||||
const circuit = ref(<ICircuit|null>{})
|
||||
const account = ref(<IAccount|null>{})
|
||||
const mystatus = ref(<number>0)
|
||||
const users_in_circuit = ref(<IFriends[]>[])
|
||||
|
||||
@@ -81,6 +82,9 @@ export default defineComponent({
|
||||
users_in_circuit.value = []
|
||||
}
|
||||
|
||||
if (circuit.value)
|
||||
account.value = userStore.getAccountByCircuitName(circuit.value.name)
|
||||
|
||||
mystatus.value = status
|
||||
|
||||
loading.value = false
|
||||
@@ -146,14 +150,14 @@ export default defineComponent({
|
||||
function extraparams_rich() {
|
||||
return {
|
||||
querytype: shared_consts.QUERYTYPE_CIRCUIT,
|
||||
myid: circuit.value ? circuit.value._id : '',
|
||||
myid: circuit.value ? circuit.value.Num : '',
|
||||
}
|
||||
}
|
||||
|
||||
function extraparams_refused() {
|
||||
return {
|
||||
querytype: shared_consts.QUERYTYPE_REFUSED_USER_CIRCUIT,
|
||||
myid: circuit.value ? circuit.value._id : '',
|
||||
myid: circuit.value ? circuit.value.Num : '',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -175,6 +179,7 @@ export default defineComponent({
|
||||
tools,
|
||||
costanti,
|
||||
circuit,
|
||||
account,
|
||||
shared_consts,
|
||||
getImgCircuit,
|
||||
checkifShow,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="q-gutter-sm q-pa-sm q-pb-md">
|
||||
<div v-if="!circuit && !loading">
|
||||
<div v-if="mystatus === 403">
|
||||
<h3>Non hai i permessi per accedere al Gruppo.<br>
|
||||
<h3>Non hai i permessi per accedere al Circuito.<br>
|
||||
|
||||
Occorre prima registrarsi alla App </h3>
|
||||
</div>
|
||||
@@ -39,6 +39,10 @@
|
||||
<em style="font-weight: bold">{{ $t('db.youarerefusedcircuit') }}</em><br>
|
||||
</q-banner>
|
||||
|
||||
<div v-if="account">
|
||||
Saldo: {{ account.saldo}}
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<q-btn
|
||||
|
||||
@@ -8,6 +8,7 @@ import { CSkill } from '@/components/CSkill'
|
||||
import { CDateTime } from '@/components/CDateTime'
|
||||
import { CMyGroup } from '@/components/CMyGroup'
|
||||
import { CMyCircuit } from '@/components/CMyCircuit'
|
||||
import { CSendCoins } from '@/components/CSendCoins'
|
||||
import { CMyUser } from '@/components/CMyUser'
|
||||
import { CUserNonVerif } from '@/components/CUserNonVerif'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
@@ -31,7 +32,7 @@ export default defineComponent({
|
||||
name: 'myprofile',
|
||||
components: {
|
||||
CProfile, CTitleBanner, CMyFieldDb, CSkill, CDateTime, CCopyBtn, CUserNonVerif, CMyFieldRec, CMyUser,
|
||||
CMyGroup, CLabel, CMyCircuit
|
||||
CMyGroup, CLabel, CMyCircuit, CSendCoins
|
||||
},
|
||||
props: {},
|
||||
setup() {
|
||||
@@ -51,6 +52,7 @@ export default defineComponent({
|
||||
const filtroutente = ref(<any[]>[])
|
||||
const showPic = ref(false)
|
||||
const caricato = ref(false)
|
||||
const showsendCoinTo = ref(false)
|
||||
|
||||
const myuser = ref(<IUserFields | null>null)
|
||||
|
||||
@@ -184,6 +186,7 @@ export default defineComponent({
|
||||
caricato,
|
||||
listgroupsfiltered,
|
||||
idnotif,
|
||||
showsendCoinTo,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -151,6 +151,18 @@
|
||||
:href="getLinkUserTelegram()" target="__blank">
|
||||
</q-btn>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-6 q-ma-xs col-xs-12">
|
||||
<q-btn
|
||||
v-if="userStore.IsMyCircuitByUser(myuser).length > 0" icon="fab fa-telegram"
|
||||
color="blue"
|
||||
size="md"
|
||||
rounded
|
||||
:label="$t('circuit.sendcoins')"
|
||||
@click="showsendCoinTo = true"
|
||||
>
|
||||
</q-btn>
|
||||
|
||||
</div>
|
||||
<div v-if="myuser._id" class="col-md-6 col-sm-6 q-ma-xs col-xs-12">
|
||||
<q-btn
|
||||
@@ -299,6 +311,16 @@
|
||||
<img :src="getImgUser()" :alt="username" class="full-width">
|
||||
|
||||
</q-dialog>
|
||||
showsendCoinTo: {{ showsendCoinTo}}
|
||||
<div v-if="showsendCoinTo">
|
||||
<CSendCoins
|
||||
:showprop="showsendCoinTo"
|
||||
:to_user="myuser"
|
||||
@close="showsendCoinTo = false"
|
||||
>
|
||||
|
||||
</CSendCoins>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else-if="caricato">
|
||||
<h2>Utente {{ username }} non trovato</h2>
|
||||
|
||||
Reference in New Issue
Block a user