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

文案修改

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