Commit cb5f2d9f authored by yu's avatar yu

1

parent 318b2a3c
......@@ -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);
});
}
......
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