Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP13
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
OP13
Commits
4e5a7526
Commit
4e5a7526
authored
Nov 28, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
适配修改
parent
9be1c53a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
ItemPage.js
assets/OP13/script/ItemPage.js
+4
-2
ItemPage.js
play/assets/OP13/script/ItemPage.js
+4
-2
No files found.
assets/OP13/script/ItemPage.js
View file @
4e5a7526
...
@@ -178,8 +178,10 @@ cc.Class({
...
@@ -178,8 +178,10 @@ cc.Class({
if
(
!
size
)
{
if
(
!
size
)
{
return
;
return
;
}
}
let
bgWidth
=
482
;
// let bgWidth = 482;
let
bgHeight
=
489
;
// let bgHeight = 489;
let
bgWidth
=
460
;
let
bgHeight
=
464
;
if
(
size
.
width
!=
bgWidth
||
size
.
height
!=
bgHeight
)
{
if
(
size
.
width
!=
bgWidth
||
size
.
height
!=
bgHeight
)
{
let
designScale
=
bgWidth
/
bgHeight
;
let
designScale
=
bgWidth
/
bgHeight
;
let
scale
=
size
.
width
/
size
.
height
;
let
scale
=
size
.
width
/
size
.
height
;
...
...
play/assets/OP13/script/ItemPage.js
View file @
4e5a7526
...
@@ -178,8 +178,10 @@ cc.Class({
...
@@ -178,8 +178,10 @@ cc.Class({
if
(
!
size
)
{
if
(
!
size
)
{
return
;
return
;
}
}
let
bgWidth
=
482
;
// let bgWidth = 482;
let
bgHeight
=
489
;
// let bgHeight = 489;
let
bgWidth
=
460
;
let
bgHeight
=
464
;
if
(
size
.
width
!=
bgWidth
||
size
.
height
!=
bgHeight
)
{
if
(
size
.
width
!=
bgWidth
||
size
.
height
!=
bgHeight
)
{
let
designScale
=
bgWidth
/
bgHeight
;
let
designScale
=
bgWidth
/
bgHeight
;
let
scale
=
size
.
width
/
size
.
height
;
let
scale
=
size
.
width
/
size
.
height
;
...
...
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