- 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:
Paolo Arena
2019-11-05 23:53:18 +01:00
parent b27f7e3cbf
commit 571e948d39
16 changed files with 467 additions and 16 deletions

43
src/mixins/mixin-base.ts Normal file
View File

@@ -0,0 +1,43 @@
import Vue from 'vue'
import Component from 'vue-class-component'
import { func_tools } from '../store/Modules/toolsext'
import { tools } from '../store/Modules/tools'
import { toolsext } from '@src/store/Modules/toolsext'
import { GlobalStore } from '../store/Modules'
// You can declare a mixin as the same style as components.
@Component
export default class MixinBase extends Vue {
public mythis() {
return this
}
get toolsext() {
return toolsext
}
get func_tools() {
return func_tools
}
get tools() {
return tools
}
public getValDb(keystr) {
return GlobalStore.getters.getValueSettingsByKey(keystr)
}
public getarrValDb(keystr) {
const myval = GlobalStore.getters.getValueSettingsByKey(keystr)
// console.log('myval', myval)
if (myval) {
const myrec = JSON.parse(myval)
// console.log('*************** getarrValDb')
// console.table(myrec)
return myrec
} else {
return []
}
}
}