"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
    p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) { 
 function r() { 
 this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var utils_1 = require("../utils");
/**
 * 单条收支记录
 */
var MyCoinLogItem = (function (_super) {
    __extends(MyCoinLogItem, _super);
    function MyCoinLogItem() {
        var _this = _super.call(this) || this;
        _this.skinName = utils_1.getSkinPath('MyCoinLogItem');
        _this.touchChildren = true;
        _this.init();
        return _this;
    }
    MyCoinLogItem.prototype.init = function () {
        // this.height = 80;
    };
    /**
     * 数据更新
     * 此方法必须实现
     */
    MyCoinLogItem.prototype.dataChanged = function () {
        // 将数据对应到组件上
        if (this.data && this.data.description) {
            this.title.text = this.data.description;
            this.numLab.text = this.data.bizType == 'add' ? '+' + this.data.credits : "-" + this.data.credits;
            var date = new Date(this.data.gmtCreate);
            this.dateLab.text = date.getFullYear() + '.' + (date.getMonth() + 1) + '.' + date.getDate();
        }
    };
    return MyCoinLogItem;
}(eui.ItemRenderer));
exports.default = MyCoinLogItem;
__reflect(MyCoinLogItem.prototype, "\"/Users/chiwang/Desktop/\u5151\u5427\u5DE5\u4F5C/gameegret20181011/db-game-template/egret/src/myGoldCoinPanel/MyCoinLogItem\".MyCoinLogItem");
//# sourceMappingURL=MyCoinLogItem.js.map