Commit 78de9714 authored by wildfirecode13's avatar wildfirecode13

1111

parent 46b2c76c
......@@ -11,9 +11,9 @@ import "./monitor";
import { ResJson } from "./ResJson";
import { startShare } from "./share";
import { SkinJson } from "./SkinJson";
import { destroyWebNetData, sendWebNet } from "./WebNet";
import { destroyWebNetData, getWebData, sendWebNet } from "./WebNet";
import { WebNetName } from "./WebNetName";
import {SharePanel} from "./panels/share"
import { SharePanel } from "./panels/share"
import { notEnoughMoneySharePanel } from "./panels/notEnoughMoneyShare";
/**
......@@ -70,7 +70,7 @@ export class Main {
console.log('主动进入')
}
startShare();
//初始化层级
......@@ -91,10 +91,16 @@ export class Main {
if (FYGE.getEnv() == "web" && document.getElementById("__loading__")) document.getElementById("__loading__").style.display = "none";
//显示场景
changeScene(IndexScene);
sendWebNet(WebNetName.getInviteCode, {}, null, true);
if(getQueryParams().code )
if (getQueryParams().code)
sendWebNet(WebNetName.doAssist, { inviteCode: getQueryParams().code }, null, true);
await sendWebNet(WebNetName.getInviteCode, {}, null, true);
startShare();
}
/**
......
......@@ -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 { getWebData } from "./WebNet";
import { WebNetName } from "./WebNetName";
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
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