JobItem.js 724 B

1234567891011121314151617181920212223242526272829
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. skinSkeleton: sp.Skeleton,
  5. },
  6. onLoad() { },
  7. bind(jobInfo) {
  8. // skinSkeleton.skeletonData =
  9. // this.nameLabel.string = '<outline color=#ffffff width=2><b>' + jobInfo.name + '</b></outline>';
  10. // this.summaryLabel.string = jobInfo.msg;
  11. // let picId = 50000 + jobInfo.id;
  12. // this.titleText.string = `<img src='${picId}' /> <outline color=#584A47 width=3><b>${jobInfo.name}</b></outline>`
  13. // cc.loader.loadRes(jobInfo.picId, cc.SpriteFrame, (error, spriteFrame) => {
  14. // this.iconSripte.spriteFrame = spriteFrame;
  15. // });
  16. },
  17. start() {
  18. },
  19. // update (dt) {},
  20. });