01823de2-c606-4ed9-87c4-6ad747986ec3.js
2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
"use strict";
cc._RF.push(module, '018233ixgZO2YfEatdHmG7D', 'QRCodeViewImpl');
// script/game/ui/view/impl/QRCodeViewImpl.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 });
exports.QRCodeViewImpl = void 0;
const simba_sdk_1 = require("simba-sdk");
const CCDummyObjects_1 = require("../../../../common/CCDummyObjects");
const CCViewBase_1 = require("../../../../common/classbase/CCViewBase");
const CustomerServiceDataCenter_1 = require("../../../../customerService/script/CustomerServiceDataCenter");
const PresenterCCViewFactory_1 = require("../../PresenterCCViewFactory");
const QRCodeView_1 = require("../type/QRCodeView");
const { ccclass, property } = cc._decorator;
let QRCodeViewImpl = /** @class */ (() => {
let QRCodeViewImpl = class QRCodeViewImpl extends CCViewBase_1.CCPureView {
constructor() {
super(...arguments);
this.tipLabel = CCDummyObjects_1.DummyLabel;
this.qrCodeSprite = CCDummyObjects_1.DummySprite;
}
onLoad() {
this.bindProp("tipLabel", this.tipLabel, "string");
this.bindProp("qrCodePath", (value) => {
CustomerServiceDataCenter_1.default.getInstance().refreshQRCode(value, this.qrCodeSprite);
});
}
onCloseClickCallBack() {
this.close();
simba_sdk_1.SDK.showGameClubButton();
}
};
__decorate([
property(cc.Label)
], QRCodeViewImpl.prototype, "tipLabel", void 0);
__decorate([
property(cc.Sprite)
], QRCodeViewImpl.prototype, "qrCodeSprite", void 0);
QRCodeViewImpl = __decorate([
ccclass,
PresenterCCViewFactory_1.RegView(QRCodeView_1.QRCodeViewType, "prefab/ui/QRCodeView")
], QRCodeViewImpl);
return QRCodeViewImpl;
})();
exports.QRCodeViewImpl = QRCodeViewImpl;
cc._RF.pop();