24 lines
528 B
TypeScript
24 lines
528 B
TypeScript
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();
|