import { AppSdk } from "../AppSdk"; export default class MyCoinData { static coin: string = ''; static initData(data: any) { if (!parseInt(data.code)){ this.coin = data.data.coin; }else{ this.coin ='0'; } } static async getCoin() { let result = await AppSdk.I.myCoin(); return parseInt(this.coin) } }