Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
eslotsys-game-nuxt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
毛线
eslotsys-game-nuxt
Commits
11006758
Commit
11006758
authored
Jul 28, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
2993425a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
4 deletions
+19
-4
index.vue
components/common/header/index.vue
+1
-0
default.vue
layouts/default.vue
+10
-3
index.vue
pages/index.vue
+7
-0
index.js
store/index.js
+1
-1
No files found.
components/common/header/index.vue
View file @
11006758
...
...
@@ -180,6 +180,7 @@ export default {
height
:
80px
;
position
:
relative
;
z-index
:
100
;
// 隐藏头部会有诡异bug,先这样处理
&
.hide
{
height
:
1px
;
overflow
:
hidden
;
...
...
layouts/default.vue
View file @
11006758
...
...
@@ -32,12 +32,15 @@ export default {
const
{
zoom
,
isMoblie
,
marginSceen
,
top
,
}
=
this
style
.
zoom
=
zoom
// 移动端旋转效果
if
(
isMoblie
)
{
if
(
!
marginSceen
)
{
style
.
transform
=
`rotate(90deg) scale(1.72)`
}
else
{
style
.
transformOrigin
=
`0px 0px 0px`
style
.
transform
=
`matrix(0, 1, -1, 0,
${
608
+
top
}
, 0)`
// style.transformOrigin = `0px 0px 0px`
// 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
...
...
@@ -45,7 +48,6 @@ export default {
},
created
()
{
// this.GetConfig()
this
.
initSceen
()
window
.
onresize
=
()
=>
{
this
.
initSceen
()
}
...
...
@@ -61,6 +63,11 @@ export default {
},
false
)
this
.
visibilitychange
()
// 监听页面是否进入后台
},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
initSceen
()
})
},
methods
:
{
...
mapActions
({
GetConfig
:
'GetConfig'
,
...
...
pages/index.vue
View file @
11006758
...
...
@@ -28,6 +28,7 @@ export default {
data
()
{
return
{
imLoginStatus
:
false
,
quitLoading
:
false
,
}
},
computed
:
{
...
...
@@ -154,6 +155,10 @@ export default {
})
},
quitGame
:
()
=>
{
if
(
this
.
quitLoading
)
{
return
}
this
.
quitLoading
=
true
const
{
id
}
=
this
.
$route
.
params
const
params
=
{
deviceId
:
id
,
...
...
@@ -163,6 +168,8 @@ export default {
method
:
'get'
,
params
,
}).
then
(({
data
})
=>
{
}).
catch
(()
=>
{
this
.
quitLoading
=
false
})
},
}
...
...
store/index.js
View file @
11006758
...
...
@@ -60,7 +60,7 @@ export const getters = {
is_mobile
(
state
)
{
let
is_mobile
=
false
const
{
innerWidth
,
innerHeight
,
}
=
state
const
minWidth
=
4
0
0
const
minWidth
=
4
5
0
if
(
innerWidth
<
minWidth
||
innerHeight
<
minWidth
)
{
is_mobile
=
true
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment