
import http from './net_http';
const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    @property(cc.Label)
    label: cc.Label = null;

    @property
    text: string = 'hello';
    http:any;
    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        this.http = new http();
    }

    start () {

    }

    async button(){
        console.log('123');
        let parme = {};
        let res = await this.http.http_post('https://minigame.61ertongwang.com/g2/u/_empty',parme);
        console.log('res：',res);
    }

    // update (dt) {}
}
