Commit 78de9714 authored by wildfirecode13's avatar wildfirecode13

1111

parent 46b2c76c
...@@ -11,9 +11,9 @@ import "./monitor"; ...@@ -11,9 +11,9 @@ import "./monitor";
import { ResJson } from "./ResJson"; import { ResJson } from "./ResJson";
import { startShare } from "./share"; import { startShare } from "./share";
import { SkinJson } from "./SkinJson"; import { SkinJson } from "./SkinJson";
import { destroyWebNetData, sendWebNet } from "./WebNet"; import { destroyWebNetData, getWebData, sendWebNet } from "./WebNet";
import { WebNetName } from "./WebNetName"; import { WebNetName } from "./WebNetName";
import {SharePanel} from "./panels/share" import { SharePanel } from "./panels/share"
import { notEnoughMoneySharePanel } from "./panels/notEnoughMoneyShare"; import { notEnoughMoneySharePanel } from "./panels/notEnoughMoneyShare";
/** /**
...@@ -70,7 +70,7 @@ export class Main { ...@@ -70,7 +70,7 @@ export class Main {
console.log('主动进入') console.log('主动进入')
} }
startShare();
//初始化层级 //初始化层级
...@@ -91,10 +91,16 @@ export class Main { ...@@ -91,10 +91,16 @@ export class Main {
if (FYGE.getEnv() == "web" && document.getElementById("__loading__")) document.getElementById("__loading__").style.display = "none"; if (FYGE.getEnv() == "web" && document.getElementById("__loading__")) document.getElementById("__loading__").style.display = "none";
//显示场景 //显示场景
changeScene(IndexScene); changeScene(IndexScene);
sendWebNet(WebNetName.getInviteCode, {}, null, true);
if(getQueryParams().code ) if (getQueryParams().code)
sendWebNet(WebNetName.doAssist, { inviteCode: getQueryParams().code }, null, true); sendWebNet(WebNetName.doAssist, { inviteCode: getQueryParams().code }, null, true);
await sendWebNet(WebNetName.getInviteCode, {}, null, true);
startShare();
} }
/** /**
......
...@@ -831,5 +831,5 @@ export const ResJson = { ...@@ -831,5 +831,5 @@ export const ResJson = {
} }
} }
], ],
"path": "https://yun.duiba.com.cn/db_games/activity/template/1632277278/resource/" "path": "https://yun.duiba.com.cn/db_games/activity/template/1632466664/resource/"
} }
\ No newline at end of file
// import { start, WeixinMini, updateShare } from '@spark/share' // import { start, WeixinMini, updateShare } from '@spark/share'
import { getWebData } from "./WebNet";
import { WebNetName } from "./WebNetName";
export const startShare = () => { export const startShare = () => {
console.log('wx.miniProgram.postMessage') const result = getWebData(WebNetName.getInviteCode);
const shareCode =result.data.inviteCode;
console.log('wx.miniProgram.postMessage',shareCode)
const shareCode = 0;
//@ts-ignore //@ts-ignore
wx.miniProgram.postMessage( wx.miniProgram.postMessage(
{ {
......
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