Commit 2c30bd35 authored by 毛线's avatar 毛线

文案修改

parent de838d6e
......@@ -9,8 +9,8 @@
<div class="content">
<div class="title">{{ title }}</div>
<div class="message">
<div class="info"><strong>Jackpot</strong>: {{ data.levelName }}</div>
<div class="info"><strong>Amount</strong>:
<div class="info"><strong>大奖</strong>: {{ data.levelName }}</div>
<div class="info"><strong>金额</strong>:
<img v-if="data.creditType === 1" class="red-coin" src="https://kuawai.s3.ap-east-1.amazonaws.com/temp/header/gold-coin.png" alt="">
<img v-if="data.creditType === 2" class="red-coin" src="https://kuawai.s3.ap-east-1.amazonaws.com/temp/header/red-coin.png" alt="">
{{ data.amount | filterToFen }}
......@@ -18,22 +18,22 @@
<div style="margin-top: 30px;">
<template v-if="selfWin">
<div class="p">
${{ data.amount | filterToFen }} credits has been added to your account.
${{ data.amount | filterToFen }} 已进账.
</div>
</template>
<template v-else>
<div class="p">
Another {{ data.levelName }} Jackpot has just been WON! Congratulations to Player {{ data.nickName }} for winning ${{ data.amount | filterToFen }} credits!!
另一个{{ data.levelName }} Jackpot 刚被赢取! 恭喜玩家 {{ data.nickName }} 赢得 ${{ data.amount | filterToFen }} Jackpot
</div>
</template>
<div class="p">
{{ data.levelName }} Jackpot has been reset.
{{ data.levelName }} 神秘大奖已重新启动.
</div>
</div>
</div>
<div class="footer-tip">
<div>Location No: {{ data.egmId }} - {{ data.egmName }}</div>
<div>Time: {{ data.winTime | filterTime }}</div>
<div>机器: {{ data.egmId }} - {{ data.egmName }}</div>
<div>时间: {{ data.winTime | filterTime }}</div>
</div>
</div>
</Dialog>
......@@ -85,7 +85,7 @@ export default {
},
title() {
const { data, selfWin } = this
const title = selfWin ? 'You are the Jackpot Winner!' : 'A Jackpot Is Won!'
const title = selfWin ? '恭喜你彩金赢家!' : '新的彩金赢家已诞生!'
return title
},
},
......
......@@ -128,7 +128,6 @@ export default {
this.left = left
console.log('this.top', this.top)
} else {
console.log('test2')
zoom = window.innerHeight / 1080
this.SetZoom(zoom)
this.zoom = zoom
......
......@@ -59,6 +59,7 @@ export default {
}
},
userInfo() {
console.log('userInfo', this.userInfo)
if (!this.imLoginStatus) {
this.init().im()
}
......@@ -201,7 +202,7 @@ export default {
newMessageCome: (msg) => {
const content = JSON.parse(msg.content)
const { eventCode, data: message, } = content
console.log('newMessageCome', content)
console.log('newMessageCome', new Date().toDateString(), content)
switch (eventCode) {
case 10012:
this.jackpotData = JSON.parse(message)
......
......@@ -440,7 +440,7 @@ export default {
<style lang="scss" scoped>
.block {
position: fixed;
position: absolute;
bottom: 0;
width: 100%;
z-index: 99999;
......
......@@ -228,6 +228,10 @@ export const actions = {
[GET_BASE_INFO]({ commit }) {
return new Promise((resolve, reject) => {
this.$request.get('/api/player/user/getInfo').then(({ data }) => {
if (data === null) {
commit('Logout') // 同时进行缓存
return
}
commit('set_user_info', data) // 同时进行缓存
resolve({ data })
}).catch(error => {
......
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