Commit 9d68ad5f authored by wildfirecode's avatar wildfirecode

1

parent b0ecc611
...@@ -8,4 +8,8 @@ ...@@ -8,4 +8,8 @@
<e:Rect id="avatarMask" width="136" height="136" y="0" ellipseWidth="136" ellipseHeight="136"/> <e:Rect id="avatarMask" width="136" height="136" y="0" ellipseWidth="136" ellipseHeight="136"/>
</e:Group> </e:Group>
</e:Group> </e:Group>
<e:Group id="sharemask" x="0" y="0" visible="false">
<e:Rect id="rect1" width="750" height="1624" x="0" y="0" fillAlpha="0.7"/>
<e:Image id="cover1" source="share2mask_png" x="177" y="73"/>
</e:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -27,7 +27,8 @@ export default class CertificateScene extends Scene{ ...@@ -27,7 +27,8 @@ export default class CertificateScene extends Scene{
if(this._from == 'ShareStarterScene') { if(this._from == 'ShareStarterScene') {
SceneCtrl.instance.change(ModuleTypes.ShareStarterScene); SceneCtrl.instance.change(ModuleTypes.ShareStarterScene);
}else { }else {
location.href = window['indexUrl']; location.href = `${window['indexUrl']}?wayId=2`;
} }
} }
......
...@@ -13,6 +13,9 @@ export default class JoinShareScene extends Scene { ...@@ -13,6 +13,9 @@ export default class JoinShareScene extends Scene {
} }
initUI(data) { initUI(data) {
this.once(egret.Event.ADDED_TO_STAGE, () => {
this.height = this.stage.stageHeight;
}, this);
NetManager.ins.showLog(getlogItem(5)); NetManager.ins.showLog(getlogItem(5));
// this['from'].text = '11111111'; // this['from'].text = '11111111';
// this['to'].text = '22222222'; // this['to'].text = '22222222';
...@@ -26,7 +29,7 @@ export default class JoinShareScene extends Scene { ...@@ -26,7 +29,7 @@ export default class JoinShareScene extends Scene {
this['sharemask'].visible = false; this['sharemask'].visible = false;
}, this); }, this);
} else { } else {
const url = `${window['indexUrl']}?joinTeamCode=${GameConst.getQueryString("shareCode")}` const url = `${window['indexUrl']}?joinTeamCode=${GameConst.getQueryString("shareCode")}&wayId=3`
deeplink(url); deeplink(url);
// PanelCtrl.instance.show(ModuleTypes.ConfirmPanel); // PanelCtrl.instance.show(ModuleTypes.ConfirmPanel);
} }
......
...@@ -4,6 +4,8 @@ import { ModuleTypes } from "../types/sceneTypes"; ...@@ -4,6 +4,8 @@ import { ModuleTypes } from "../types/sceneTypes";
import { NetManager } from "../../libs/tw/manager/NetManager"; import { NetManager } from "../../libs/tw/manager/NetManager";
import { getlogItem } from "./ConfirmPanel"; import { getlogItem } from "./ConfirmPanel";
import GameConst from "../GameConst"; import GameConst from "../GameConst";
import iswx from "../iswx";
import { deeplink } from "./JoinShareScene";
export default class TeamShareScene extends Scene{ export default class TeamShareScene extends Scene{
protected get skinKey(){return 'TeamShare'} protected get skinKey(){return 'TeamShare'}
...@@ -17,6 +19,9 @@ export default class TeamShareScene extends Scene{ ...@@ -17,6 +19,9 @@ export default class TeamShareScene extends Scene{
initUI(data){ initUI(data){
this.once(egret.Event.ADDED_TO_STAGE, () => {
this.height = this.stage.stageHeight;
}, this);
this['avatar'].mask = this['avatarMask']; this['avatar'].mask = this['avatarMask'];
this['avatar'].source = GameConst.getQueryString('avatar'); this['avatar'].source = GameConst.getQueryString('avatar');
...@@ -24,6 +29,16 @@ export default class TeamShareScene extends Scene{ ...@@ -24,6 +29,16 @@ export default class TeamShareScene extends Scene{
onTap_btn(){ onTap_btn(){
console.log('onTap_btn'); console.log('onTap_btn');
if (iswx()) {
this['sharemask'].visible = true;
this['sharemask'].once(egret.TouchEvent.TOUCH_TAP, () => {
this['sharemask'].visible = false;
}, this);
} else {
const url = `${window['indexUrl']}?wayId=4`
deeplink(url);
// PanelCtrl.instance.show(ModuleTypes.ConfirmPanel);
}
} }
initEvents(){ initEvents(){
......
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