Commit ab5a301e authored by wildfirecode's avatar wildfirecode

1

parent fe633ef8
......@@ -3,6 +3,7 @@ import Scene from "../views/Scene";
import GameConst from "../GameConst";
import { NetManager } from "../../libs/tw/manager/NetManager";
import { getlogItem } from "./ConfirmPanel";
import { GFun } from "../../libs/tc/util/GFun";
export default class JoinShareScene extends Scene {
protected get skinKey() { return 'JoinShare' }
......@@ -29,7 +30,7 @@ export default class JoinShareScene extends Scene {
this['sharemask'].visible = false;
}, this);
} else {
const url = `${window['indexUrl']}?wayId=3&joinTeamCode=${GameConst.getQueryString("joinTeamCode")}`
const url = `${window['indexUrl']}?joinTeamCode=${GameConst.getQueryString("joinTeamCode")}&wayId=3`
deeplink(url);
// PanelCtrl.instance.show(ModuleTypes.ConfirmPanel);
}
......@@ -43,7 +44,13 @@ export default class JoinShareScene extends Scene {
export const deeplink = (activeUrl) => {
let state = false;
const url = 'esports://openapp?url=http://aghzact.zjkczn.com/h5/defaultActive.html?activeUrl=' + encodeURIComponent(activeUrl);
let url;
if(GFun.isIOS) {
url = 'esports://openapp?url=http://aghzact.zjkczn.com/h5/defaultActive.html?activeUrl=' + encodeURIComponent(activeUrl);
}else {
url = 'esports://openapp?url=http://aghzact.zjkczn.com/h5/defaultActive.html?activeUrl=' + encodeURIComponent(encodeURIComponent(activeUrl));
}
console.log(url)
window.location.href = url;
state = true;
......
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