This commit is contained in:
parent
3dd7aea121
commit
051d407f0f
@ -80,6 +80,10 @@ export default {
|
|||||||
headers: { 'x-api-key': 'PMl`&xWpZ1vE)M]G;{8qIXx4k!ce|n' }
|
headers: { 'x-api-key': 'PMl`&xWpZ1vE)M]G;{8qIXx4k!ce|n' }
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
this.coins = result
|
this.coins = result
|
||||||
|
this.$store.dispatch('settings/changeSetting', {
|
||||||
|
key: 'currentCoins',
|
||||||
|
value: result
|
||||||
|
})
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log('ThaErr', err)
|
console.log('ThaErr', err)
|
||||||
})
|
})
|
||||||
|
@ -10,6 +10,7 @@ const getters = {
|
|||||||
introduction: state => state.user.introduction,
|
introduction: state => state.user.introduction,
|
||||||
roles: state => state.user.roles,
|
roles: state => state.user.roles,
|
||||||
permission_routes: state => state.permission.routes,
|
permission_routes: state => state.permission.routes,
|
||||||
errorLogs: state => state.errorLog.logs
|
errorLogs: state => state.errorLog.logs,
|
||||||
|
currentCoins: state => state.settings.currentCoins
|
||||||
}
|
}
|
||||||
export default getters
|
export default getters
|
||||||
|
@ -8,7 +8,8 @@ const state = {
|
|||||||
showSettings: showSettings,
|
showSettings: showSettings,
|
||||||
tagsView: tagsView,
|
tagsView: tagsView,
|
||||||
fixedHeader: fixedHeader,
|
fixedHeader: fixedHeader,
|
||||||
sidebarLogo: sidebarLogo
|
sidebarLogo: sidebarLogo,
|
||||||
|
currentCoins: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
const mutations = {
|
const mutations = {
|
||||||
|
@ -1,16 +1,27 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container chatbot-container">
|
<div>
|
||||||
<img src="@/assets/joe.png" class="joeimage">
|
<span class="coinclass">Meine Münzen: {{ currentCoins }}
|
||||||
|
</span>
|
||||||
|
<img src="@/assets/logo/coins.png" class="coinsimg">
|
||||||
|
<div class="app-container chatbot-container">
|
||||||
|
<img src="@/assets/joe.png" class="joeimage">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { mapGetters } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: 'Chatbot',
|
name: 'Chatbot',
|
||||||
components: { },
|
components: { },
|
||||||
data() {
|
data() {
|
||||||
return {}
|
return {}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters([
|
||||||
|
'currentCoins'
|
||||||
|
])
|
||||||
|
},
|
||||||
mounted: () => {
|
mounted: () => {
|
||||||
let host = 'https://joinbot.tk/bot'
|
let host = 'https://joinbot.tk/bot'
|
||||||
let stylesheetdir = '/bot/assets/modules/channel-web/chat.css'
|
let stylesheetdir = '/bot/assets/modules/channel-web/chat.css'
|
||||||
@ -46,8 +57,23 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
.coinclass {
|
||||||
|
height: 70%;
|
||||||
|
margin-left: 50px;
|
||||||
|
padding-bottom:5px;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
.coinsimg{
|
||||||
|
height: 28px;
|
||||||
|
margin-bottom: -6px;
|
||||||
|
margin-top: 40px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.chatbot-container {
|
.chatbot-container {
|
||||||
margin: 50px;
|
/* margin: 50px;*/
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
.document-btn {
|
.document-btn {
|
||||||
|
Loading…
Reference in New Issue
Block a user