Commit db9a87da authored by haiyoucuv's avatar haiyoucuv

上传

parent b4f69e7d
...@@ -9,4 +9,27 @@ export function popWindow() { ...@@ -9,4 +9,27 @@ export function popWindow() {
} catch (e) { } catch (e) {
console.log(e) console.log(e)
} }
mdEvent({
pageView: "leaveGame",
});
}
export const gameId = "2171020205274922";
export function mdEvent(options) {
const {pageView, clickName, additionalInfo} = options;
try {
window["my"].postMessage({
type: "tngdMPEventTagging",
pageView: `${pageView}-${gameId}`,
clickName: clickName,
additionalInfo: additionalInfo,
});
} catch (e) {
console.log(e)
}
} }
\ No newline at end of file
...@@ -4,7 +4,7 @@ import { changeScene, showPanel } from "db://assets/Module/UIFast"; ...@@ -4,7 +4,7 @@ import { changeScene, showPanel } from "db://assets/Module/UIFast";
import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene"; import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene";
import { strFormat } from "../Utils/Utils"; import { strFormat } from "../Utils/Utils";
import RankPanel from "./RankPanel"; import RankPanel from "./RankPanel";
import { popWindow } from "../AppTool"; import { mdEvent, popWindow } from "../AppTool";
const {ccclass, property} = _decorator; const {ccclass, property} = _decorator;
...@@ -37,7 +37,12 @@ export default class PrizePanel extends Panel { ...@@ -37,7 +37,12 @@ export default class PrizePanel extends Panel {
async start() { async start() {
const {prizeVO, highest, score} = this.data; const {prizeVO, highest, score} = this.data;
const {optionName, optionImg} = prizeVO; const {optionName, optionImg, rewardId} = prizeVO;
mdEvent({
pageView: "issueReward",
additionalInfo: rewardId,
});
this.highestLabel.string = highest; this.highestLabel.string = highest;
this.scoreLabel.string = score; this.scoreLabel.string = score;
......
...@@ -26,6 +26,7 @@ import { Wall } from "./Wall"; ...@@ -26,6 +26,7 @@ import { Wall } from "./Wall";
import { sleep } from "../../Utils/Utils"; import { sleep } from "../../Utils/Utils";
import GameMgr from "../../GameMgr"; import GameMgr from "../../GameMgr";
import { AudioMgr } from "../../../core_tgx/base/AudioMgr"; import { AudioMgr } from "../../../core_tgx/base/AudioMgr";
import { mdEvent } from "../../AppTool";
const {ccclass, property} = _decorator; const {ccclass, property} = _decorator;
...@@ -99,6 +100,9 @@ export class MainGame extends Scene { ...@@ -99,6 +100,9 @@ export class MainGame extends Scene {
maxZ = 0; maxZ = 0;
onLoad() { onLoad() {
mdEvent({pageView: "gamsStart"});
const playerCollider = this.player.getComponent(Collider); const playerCollider = this.player.getComponent(Collider);
playerCollider.on("onCollisionEnter", this.onPlayerCollision, this); playerCollider.on("onCollisionEnter", this.onPlayerCollision, this);
playerCollider.on('onTriggerEnter', this.onTriggerEnter, this); playerCollider.on('onTriggerEnter', this.onTriggerEnter, this);
......
...@@ -20,6 +20,7 @@ import { getUrlParams } from "../Scripts/Utils/WebNet/web/webTools"; ...@@ -20,6 +20,7 @@ import { getUrlParams } from "../Scripts/Utils/WebNet/web/webTools";
import store from "../Scripts/store/store"; import store from "../Scripts/store/store";
import { AudioMgr } from "../core_tgx/base/AudioMgr"; import { AudioMgr } from "../core_tgx/base/AudioMgr";
import { MusicBtn } from "../Component/MusicBtn/MusicBtn"; import { MusicBtn } from "../Component/MusicBtn/MusicBtn";
import { gameId } from "../Scripts/AppTool";
const {ccclass, property} = _decorator; const {ccclass, property} = _decorator;
...@@ -110,7 +111,7 @@ export class Start extends Component { ...@@ -110,7 +111,7 @@ export class Start extends Component {
const {success, data} = await sendWebNet(WebNetName.autologin, { const {success, data} = await sendWebNet(WebNetName.autologin, {
authCode: authCode, authCode: authCode,
appId: "2171020205274922" appId: gameId,
}); });
if (!success) { if (!success) {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"8": { "8": {
"3\\extension": { "3\\extension": {
"name": "extension", "name": "extension",
"time": 1727171927547 "time": 1727228579670
} }
} }
} }
......
...@@ -1267,8 +1267,8 @@ ...@@ -1267,8 +1267,8 @@
}, },
"53947ca7-3484-4b53-800d-509405063d68": { "53947ca7-3484-4b53-800d-509405063d68": {
"position": { "position": {
"x": 307.59234399600444, "x": 432.80046469068134,
"y": 895.7793252028572, "y": 984.2290985376288,
"z": 5000 "z": 5000
}, },
"rotation": { "rotation": {
...@@ -1283,8 +1283,8 @@ ...@@ -1283,8 +1283,8 @@
"z": 0 "z": 0
}, },
"contentRect": { "contentRect": {
"x": -363.2474953222643, "x": -112.8312539329105,
"y": 102.02876189990567, "y": 278.9283085694491,
"width": 408.8, "width": 408.8,
"height": 483.7 "height": 483.7
}, },
......
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