WxLaunch.ts
658 Bytes
export default class WxLaunch {
private static instance: WxLaunch;
private data: LaunchInfoSyncReturnValue;
private constructor() {
this.data = my.getLaunchOptionsSync();
// console.log('lauch--',this.data);
}
get LaunchData() {
return this.data;
}
get query() {
return this.data.query;
}
get scene() {
return this.data.scene;
}
get shareTicket() {
return this.data.shareTicket;
}
get referrerInfo() {
return this.data.referrerInfo;
}
static get I(): WxLaunch {
return this.instance || (this.instance = new WxLaunch());
}
}