Commit 8ad0a7b6 authored by wildfirecode's avatar wildfirecode

1

parent fd5fdb23
...@@ -68,7 +68,7 @@ export default class TransScene extends Scene { ...@@ -68,7 +68,7 @@ export default class TransScene extends Scene {
onshake() { onshake() {
this['shareTips'].visible = false; this['shareTips'].visible = false;
let sharecode = DataManager.ins.getData('genInvite').data; let sharecode = GameConst.getQueryString("shareCode");
NetManager.ins.yyh_updateAnimationState(sharecode, 3, (success) => { NetManager.ins.yyh_updateAnimationState(sharecode, 3, (success) => {
if (success) { if (success) {
this.changeToTrans(); this.changeToTrans();
...@@ -115,8 +115,12 @@ export default class TransScene extends Scene { ...@@ -115,8 +115,12 @@ export default class TransScene extends Scene {
console.log('onTap_btn'); console.log('onTap_btn');
this['shareTips'].visible = true; this['shareTips'].visible = true;
//进入页面后发送确认消息 //进入页面后发送确认消息
yzwNet.accept(() => { yzwNet.accept((success) => {
if (success) {
yzwNet.openPass(() => {
this.addShareEvent(); this.addShareEvent();
}, window['projectId'], GameConst.getQueryString("shareCode"))
}
}, window['projectId'], GameConst.getQueryString("shareCode")); }, window['projectId'], GameConst.getQueryString("shareCode"));
setTimeout(() => { setTimeout(() => {
......
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