Commit 3cf5e71e authored by 毛线's avatar 毛线

logo显示处理

parent 6225069e
......@@ -10,6 +10,7 @@ export default {
return {}
},
created() {
this.SetShowSlot(false)
// https://app-dev.eslotsys.com/goToGame?ticket=a079fbdf3ac4463f9dd67632d990c940
removeToken()
const { ticket } = this.$route.query
......@@ -20,6 +21,7 @@ export default {
methods: {
...mapMutations([
'SetImToken',
'SetShowSlot',
]),
network() {
return {
......
<template>
<div class="page">
<div v-if="!showLoading" class="first-screen">
<div v-if="!showLoading && !showSlot" class="first-screen">
<div class="logo text">loading...</div>
</div>
<!-- <div v-if="!showLoading" class="first-screen">
<div v-if="!showLoading && showSlot" class="first-screen">
<img :src="logo" alt="" class="logo">
</div> -->
</div>
<div v-if="showLoading" class="loading" @click="toGame">
<div class="bg"/>
<div class="progress-block">
......@@ -24,7 +24,7 @@
import { getToken, setToken } from '@/utils/auth' // 验权
import _images from './data/images.json'
import _audio from './data/audio.json'
import { mapActions } from 'vuex'
import { mapActions, mapState, } from 'vuex'
export default {
data() {
const imagesSrcList = _images
......@@ -47,6 +47,9 @@ export default {
}
},
computed: {
...mapState([
'showSlot',
]),
// 总共完成加载数量
completeDownload() {
const { downloadImage, downloadAudio } = this
......
......@@ -53,6 +53,7 @@ export const state = () => ({
bucket: '',
}, // 阿里云配置
jackpot: [], // jackpot信息
showSlot: false, // 是否显示品牌logo等内容
})
export const getters = {
......@@ -200,6 +201,9 @@ export const mutations = {
SetJackpot(state, data) {
state.jackpot = data
},
SetShowSlot(state, data) {
state.showSlot = data
},
}
export const actions = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment