Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
ls_gramophone
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
ls_gramophone
Commits
cb5f2d9f
Commit
cb5f2d9f
authored
Jul 07, 2022
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
318b2a3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ls_gramophone.ts
assets/ls_gramophone/scene/ls_gramophone.ts
+4
-3
No files found.
assets/ls_gramophone/scene/ls_gramophone.ts
View file @
cb5f2d9f
...
...
@@ -397,11 +397,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
pag
=
cc
.
find
(
"
PageView
"
,
this
.
node
);
let
idx
=
pag
.
getComponent
(
cc
.
PageView
).
getCurrentPageIndex
();
let
data
=
this
.
data
.
questions
[
this
.
roundIdx
].
pageImage
;
this
.
getSpriteFrimeByUrl
(
data
+
'
?x-oss-process=image/resize,m_fill,h_520,w_560
'
,
(
sp
)
=>
{
this
.
getSpriteFrimeByUrl
(
data
,
(
sp
)
=>
{
//+ '?x-oss-process=image/resize,m_fill,h_520,w_560'
// this.getSpriteFrimeByUrl(this.data.pageImage, (sp) => {
cc
.
find
(
'
Canvas/bg_img/img
'
).
getComponent
(
cc
.
Sprite
).
spriteFrame
=
sp
;
cc
.
find
(
'
Canvas/bg_img/img
'
).
scale
=
Math
.
max
(
520
/
cc
.
find
(
'
Canvas/bg_img/img
'
).
width
,
560
/
cc
.
find
(
'
Canvas/bg_img/img
'
).
height
);
cc
.
find
(
'
Canvas/bg_img/img
'
).
width
=
435
;
cc
.
find
(
'
Canvas/bg_img/img
'
).
height
=
585
;
cc
.
find
(
'
Canvas/bg_img/img
'
).
scale
=
1
;
// Math.max(520 / cc.find('Canvas/bg_img/img').width, 560 / cc.find('Canvas/bg_img/img').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