(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/start.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, '32227BM6FxASYISe65El+ld', 'start', __filename);
// start.ts

Object.defineProperty(exports, "__esModule", { value: true });
var net_http_1 = require("./net_http");
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var NewClass = /** @class */ (function (_super) {
    __extends(NewClass, _super);
    function NewClass() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.label = null;
        _this.text = 'hello';
        return _this;
        // update (dt) {}
    }
    // LIFE-CYCLE CALLBACKS:
    NewClass.prototype.onLoad = function () {
        this.http = new net_http_1.default();
    };
    NewClass.prototype.start = function () {
    };
    NewClass.prototype.button = function () {
        return __awaiter(this, void 0, void 0, function () {
            var parme, res;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        console.log('123');
                        parme = {};
                        return [4 /*yield*/, this.http.http_post('https://minigame.61ertongwang.com/g2/u/_empty', parme)];
                    case 1:
                        res = _a.sent();
                        console.log('res：', res);
                        return [2 /*return*/];
                }
            });
        });
    };
    __decorate([
        property(cc.Label)
    ], NewClass.prototype, "label", void 0);
    __decorate([
        property
    ], NewClass.prototype, "text", void 0);
    NewClass = __decorate([
        ccclass
    ], NewClass);
    return NewClass;
}(cc.Component));
exports.default = NewClass;

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=start.js.map
        