import jcgamelog from '../jcfw/service/jcgamelog'; const { ccclass, property } = cc._decorator; export enum OperationType { LOGIN = 'login', // WALLET = 'wallet', // UIMAIN = 'uimain', // BUTTON = 'clickbtn', // } @ccclass export class Operation extends cc.Component { addOperation(type: OperationType, pram1 = '', pram2 = '') { const data = { data1: pram1, data2: pram2, }; // window.customReport(type, data); } } export const operation = new Operation();