Commit cd4884a2 authored by zjz1994's avatar zjz1994

调整红包炸弹大小

parent ecd9bc99
...@@ -1246,11 +1246,11 @@ export default class MapScene extends Scene { ...@@ -1246,11 +1246,11 @@ export default class MapScene extends Scene {
} }
onTap_signBtn() { onTap_signBtn() {
NetManager.ins.hc_redBombAward((success) => { // NetManager.ins.hc_redBombAward((success) => {
PanelCtrl.instance.show('RedBombAlert'); // PanelCtrl.instance.show('RedBombAlert');
}) // })
return; // return;
NetManager.ins.getSignInfo(() => { NetManager.ins.getSignInfo(() => {
PanelCtrl.instance.show('sign'); PanelCtrl.instance.show('sign');
}, window['signActivityId']) }, window['signActivityId'])
......
...@@ -166,13 +166,19 @@ export default class RedBombAlertPanel extends Panel { ...@@ -166,13 +166,19 @@ export default class RedBombAlertPanel extends Panel {
if(!this.isShow){ if(!this.isShow){
let changeimg = this.getchangeImg(); let changeimg = this.getchangeImg();
if(changeimg){ if(changeimg){
changeimg.anchorOffsetX = 500/2; //500*233
changeimg.anchorOffsetY = 233/2;
var imgwid = 550;
var imghei = 256;
changeimg.anchorOffsetX = imgwid/2;
changeimg.anchorOffsetY = imghei/2;
var cx = changeimg.x; var cx = changeimg.x;
var cy = changeimg.y; var cy = changeimg.y;
cx += 500/2; cx += 500/2;
cy += 500/2; cy += 500/2;
changeimg.width = imgwid;
changeimg.height = imghei;
changeimg.x = cx; changeimg.x = cx;
changeimg.y = cy; changeimg.y = cy;
...@@ -216,7 +222,7 @@ export default class RedBombAlertPanel extends Panel { ...@@ -216,7 +222,7 @@ export default class RedBombAlertPanel extends Panel {
var sy = changeimg.y; var sy = changeimg.y;
// sx += 500/2; // sx += 500/2;
sy += 233/2; sy += changeimg.scaleY*233/2;
changeimg.x = 382; changeimg.x = 382;
changeimg.y = sy; changeimg.y = sy;
......
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