Commit fd5fdb23 authored by wildfirecode's avatar wildfirecode

1

parent eb2d8a6a
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"Normal_1","version":5,"files":["../assets/myrecord/mrxg.png","../assets/myrecord/mrtitle.png","../assets/myrecord/mrtb.png","../assets/myrecord/mrrb.png","../assets/myrecord/mrmg.png","../assets/myrecord/mrhz.png","../assets/myrecord/mrhg.png","../assets/myrecord/mrcx.png","../assets/myrecord/mram.png","../assets/map/mapshareBtn.png","../assets/map/mappass.png","../assets/map/maphz.png","../assets/map/mapBtn.png","../assets/pop/rulebg.png","../assets/pop/rankmybg.png","../assets/pop/rankline.png","../assets/pop/ranklight.png","../assets/pop/rankbg2.png","../assets/pop/rankbg.png","../assets/pop/lessscoreBtn.png","../assets/pop/lessscorebg.png","../assets/pop/finishlogo.png","../assets/pop/finishlight.png","../assets/pop/finishBtn.png","../assets/pop/finishbg.png","../assets/waiting/progress.png","../assets/waiting/bg.png","../assets/xuanshi/xuanshiBtn.png","../assets/xuanshi/xuanshiBG.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"Normal_1","version":5,"files":["../assets/myrecord/mrxg.png","../assets/myrecord/mrtitle.png","../assets/myrecord/mrtb.png","../assets/myrecord/mrrb.png","../assets/myrecord/mrmg.png","../assets/myrecord/mrhz.png","../assets/myrecord/mrhg.png","../assets/myrecord/mrcx.png","../assets/myrecord/mram.png","../assets/map/mapshareBtn.png","../assets/map/mappass.png","../assets/map/maphz.png","../assets/map/mapBtn.png","../assets/pop/rulebg.png","../assets/pop/rankmybg.png","../assets/pop/rankline.png","../assets/pop/ranklight.png","../assets/pop/rankbg2.png","../assets/pop/rankbg.png","../assets/pop/lessscoreBtn.png","../assets/pop/lessscorebg.png","../assets/pop/finishlogo.png","../assets/pop/finishlight.png","../assets/pop/finishBtn.png","../assets/pop/finishbg.png","../assets/waiting/progress.png","../assets/waiting/bg.png","../assets/xuanshi/xuanshiBtn.png","../assets/xuanshi/xuanshiBG.png","../assets/map/mapcx.png","../assets/map/maphg.png","../assets/map/mapmg.png","../assets/map/mapxg.png","../assets/map/mapam.png","../assets/map/maprb.png","../assets/map/maptb.png"]}
\ No newline at end of file
......@@ -37,6 +37,7 @@
"resource/skins/JoinShareSkin.exml",
"resource/skins/PKScoreSkin.exml",
"resource/skins/CertificateSkin.exml",
"resource/skins/TransSkin.exml",
"resource/skins/ShareStarterSkin.exml"
],
"path": "resource/default.thm.json"
......
......@@ -171,7 +171,7 @@ class Main extends MainBase {
// return;
if (window['pageID']) {
if (GameConst.getQueryString("InviteSource")) {
// if (GameConst.getQueryString("InviteSource")) {
yzwNet.homeBaseInfo((s) => {
if (!s) {
ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message)
......@@ -179,7 +179,7 @@ class Main extends MainBase {
return;
}
}, window['projectId'], GameConst.getQueryString("InviteSource"))
}
// }
Waiting.instance.hide();
if (window['pageID'] == 'JoinShareScene') {
......
import Scene from "../views/Scene";
import { getResPath } from "../utils";
import { loadSvgaRes, loadSvga } from "../loadSvga";
import { wait } from "../GameConst";
import GameConst, { wait } from "../GameConst";
import { NetManager } from "../../libs/tw/manager/NetManager";
import { DataManager } from "../../libs/tw/manager/DataManager";
import { yzwNet } from "../NetConst";
......@@ -66,7 +66,7 @@ export default class TransScene extends Scene {
}
}
onshake(){
onshake() {
this['shareTips'].visible = false;
let sharecode = DataManager.ins.getData('genInvite').data;
NetManager.ins.yyh_updateAnimationState(sharecode, 3, (success) => {
......@@ -111,23 +111,17 @@ export default class TransScene extends Scene {
}
onTap_btn() {
this['btn'].visible=false;
this['btn'].visible = false;
console.log('onTap_btn');
this['shareTips'].visible = true;
//进入页面后发送确认消息
yzwNet.genInvite(() => {
let sharecode = DataManager.ins.getData('genInvite').data;
NetManager.ins.yyh_updateAnimationState(sharecode, 1, (success) => {
if (success) {
this.addShareEvent();
}
});
}, window['projectId']);
yzwNet.accept(() => {
this.addShareEvent();
}, window['projectId'], GameConst.getQueryString("shareCode"));
setTimeout(() => {
this.onshake();
}, 3000);
}, 10000);
}
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