- Add Button Whatsapp Chat
- Fixed 'Ask Info' and 'Book' if the email arrived... - Added "Settings" table: URL_FACEBOOK, TELEGRAM_SUPPORT, URL_INSTAGRAM, WHATSAPP_CELL, INT_CODE, MAIN_EMAIL, CONTACTS_EMAIL_CELL, CALL_WORKING_DAYS, EVENTS_CAL, MSG_REPLY_AFTER_BOOKING. -
This commit is contained in:
4
src/components/CMyAvatar/CMyAvatar.scss
Normal file
4
src/components/CMyAvatar/CMyAvatar.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
.myflex{
|
||||
display: flex;
|
||||
flex: 1;
|
||||
}
|
||||
48
src/components/CMyAvatar/CMyAvatar.ts
Normal file
48
src/components/CMyAvatar/CMyAvatar.ts
Normal file
@@ -0,0 +1,48 @@
|
||||
import Vue from 'vue'
|
||||
import { Component, Prop, Watch } from 'vue-property-decorator'
|
||||
|
||||
import { tools } from '../../store/Modules/tools'
|
||||
import { UserStore } from '../../store/Modules'
|
||||
|
||||
@Component({
|
||||
name: 'CMyAvatar'
|
||||
})
|
||||
|
||||
export default class CMyAvatar extends Vue {
|
||||
@Prop({ required: false, default: '' }) public myimg
|
||||
@Prop({ required: false, default: '40px' }) public size
|
||||
|
||||
public myicon: string = ''
|
||||
public myimgint: string = ''
|
||||
|
||||
get tools() {
|
||||
return tools
|
||||
}
|
||||
|
||||
@Watch('GlobalStore.state.my.profile.img')
|
||||
public imgChanged() {
|
||||
// console.log('imgChanged')
|
||||
this.refresh()
|
||||
}
|
||||
|
||||
@Watch('myimg')
|
||||
public imglocalChanged() {
|
||||
this.myimgint = ''
|
||||
// console.log('myimg')
|
||||
|
||||
this.refresh()
|
||||
}
|
||||
|
||||
public refresh() {
|
||||
if (!this.myimg) {
|
||||
this.myicon = 'fas fa-user-circle'
|
||||
} else {
|
||||
this.myimgint = this.myimg
|
||||
}
|
||||
// console.log('myimgint', this.myimgint)
|
||||
}
|
||||
|
||||
public mounted() {
|
||||
this.refresh()
|
||||
}
|
||||
}
|
||||
17
src/components/CMyAvatar/CMyAvatar.vue
Normal file
17
src/components/CMyAvatar/CMyAvatar.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<div>
|
||||
<q-avatar v-if="!myimgint" class="q-mb-sx center_img" :icon="myicon" :font-size="size">
|
||||
|
||||
</q-avatar>
|
||||
<q-avatar v-if="myimgint" class="q-mb-sx center_img">
|
||||
<img :src="myimgint" :font-size="size">
|
||||
</q-avatar>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./CMyAvatar.ts">
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './CMyAvatar.scss';
|
||||
</style>
|
||||
1
src/components/CMyAvatar/index.ts
Normal file
1
src/components/CMyAvatar/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export {default as CMyAvatar} from './CMyAvatar.vue'
|
||||
Reference in New Issue
Block a user