Commit 9d68ad5f authored by wildfirecode's avatar wildfirecode

1

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