Commit 11006758 authored by 毛线's avatar 毛线

bug

parent 2993425a
...@@ -180,6 +180,7 @@ export default { ...@@ -180,6 +180,7 @@ export default {
height: 80px; height: 80px;
position: relative; position: relative;
z-index: 100; z-index: 100;
// 隐藏头部会有诡异bug,先这样处理
&.hide { &.hide {
height: 1px; height: 1px;
overflow: hidden; overflow: hidden;
......
...@@ -32,12 +32,15 @@ export default { ...@@ -32,12 +32,15 @@ export default {
const { zoom, isMoblie, marginSceen, top, } = this const { zoom, isMoblie, marginSceen, top, } = this
style.zoom = zoom style.zoom = zoom
// 移动端旋转效果
if (isMoblie) { if (isMoblie) {
if (!marginSceen) { if (!marginSceen) {
style.transform = `rotate(90deg) scale(1.72)` style.transform = `rotate(90deg) scale(1.72)`
} else { } else {
style.transformOrigin = `0px 0px 0px` // style.transformOrigin = `0px 0px 0px`
style.transform = `matrix(0, 1, -1, 0, ${608 + top}, 0)` // style.transform = `matrix(0, 0, 0, 0, 0, 0)`
// style.transform = `matrix(0, 1, -1, 0, ${608 + top}, 0)`
style.transform = `matrix(0, -1, 1, 0, ${top - 244}, 236)`
} }
} }
return style return style
...@@ -45,7 +48,6 @@ export default { ...@@ -45,7 +48,6 @@ export default {
}, },
created() { created() {
// this.GetConfig() // this.GetConfig()
this.initSceen()
window.onresize = () => { window.onresize = () => {
this.initSceen() this.initSceen()
} }
...@@ -61,6 +63,11 @@ export default { ...@@ -61,6 +63,11 @@ export default {
}, false) }, false)
this.visibilitychange() // 监听页面是否进入后台 this.visibilitychange() // 监听页面是否进入后台
}, },
mounted() {
this.$nextTick(() => {
this.initSceen()
})
},
methods: { methods: {
...mapActions({ ...mapActions({
GetConfig: 'GetConfig', GetConfig: 'GetConfig',
......
...@@ -28,6 +28,7 @@ export default { ...@@ -28,6 +28,7 @@ export default {
data() { data() {
return { return {
imLoginStatus: false, imLoginStatus: false,
quitLoading: false,
} }
}, },
computed: { computed: {
...@@ -154,6 +155,10 @@ export default { ...@@ -154,6 +155,10 @@ export default {
}) })
}, },
quitGame: () => { quitGame: () => {
if (this.quitLoading) {
return
}
this.quitLoading = true
const { id } = this.$route.params const { id } = this.$route.params
const params = { const params = {
deviceId: id, deviceId: id,
...@@ -163,6 +168,8 @@ export default { ...@@ -163,6 +168,8 @@ export default {
method: 'get', method: 'get',
params, params,
}).then(({ data }) => { }).then(({ data }) => {
}).catch(() => {
this.quitLoading = false
}) })
}, },
} }
......
...@@ -60,7 +60,7 @@ export const getters = { ...@@ -60,7 +60,7 @@ export const getters = {
is_mobile(state) { is_mobile(state) {
let is_mobile = false let is_mobile = false
const { innerWidth, innerHeight, } = state const { innerWidth, innerHeight, } = state
const minWidth = 400 const minWidth = 450
if (innerWidth < minWidth || innerHeight < minWidth) { if (innerWidth < minWidth || innerHeight < minWidth) {
is_mobile = true is_mobile = true
} }
......
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