abc0ee7c-b830-47fa-9a31-77c7d55ba3f7.js 1.89 KB
"use strict";
cc._RF.push(module, 'abc0e58uDBH+poxd8fVW6P3', 'QRCodeViewPresenter');
// script/game/ui/presenter/QRCodeViewPresenter.ts

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
const PresenterBase_1 = require("../../../common/classbase/PresenterBase");
const CustomerServiceDataCenter_1 = require("../../../customerService/script/CustomerServiceDataCenter");
const PresenterCCViewFactory_1 = require("../PresenterCCViewFactory");
const QRCodeView_1 = require("../view/type/QRCodeView");
let QRCodeViewPresenter = /** @class */ (() => {
    let QRCodeViewPresenter = class QRCodeViewPresenter extends PresenterBase_1.Presenter {
        constructor() {
            super();
            this._viewProps = {
                tipLabel: CustomerServiceDataCenter_1.default.getInstance().getTipLabel(),
                qrCodePath: CustomerServiceDataCenter_1.default.getInstance().getQRCodePath(),
            };
        }
        onOpen() {
            super.onOpen(undefined);
            this.view.setProps(this._viewProps);
        }
    };
    QRCodeViewPresenter.uuid = "QRCodeViewPresenter";
    QRCodeViewPresenter = __decorate([
        PresenterCCViewFactory_1.RegPresenter(QRCodeView_1.QRCodeViewType)
    ], QRCodeViewPresenter);
    return QRCodeViewPresenter;
})();
exports.default = QRCodeViewPresenter;

cc._RF.pop();