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

logo显示处理

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