JobItem.js 644 B

12345678910111213141516171819202122232425262728293031
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. skinSkeleton: sp.Skeleton,
  5. summaryLabel: cc.Label,
  6. nameLabel: cc.RichText,
  7. iconSripte: cc.Sprite,
  8. },
  9. onLoad() { },
  10. bind(jobInfo) {
  11. // skinSkeleton.skeletonData =
  12. this.nameLabel.string = '<outline color=#ffffff width=2><b>' + jobInfo.name + '</b></outline>';
  13. this.summaryLabel.string = jobInfo.msg;
  14. // cc.loader.loadRes(secondIcon, cc.SpriteFrame, (error, spriteFrame) => {
  15. // this.iconSripte.spriteFrame = spriteFrame;
  16. // });
  17. },
  18. start() {
  19. },
  20. // update (dt) {},
  21. });