LandInfo.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. //单价
  5. price: {
  6. default: null,
  7. type: cc.Label,
  8. serializable: true,
  9. },
  10. //租期
  11. date: {
  12. default: null,
  13. type: cc.Label,
  14. serializable: true,
  15. },
  16. //开始时间
  17. startTime: {
  18. default: null,
  19. type: cc.Label,
  20. serializable: true,
  21. },
  22. //结束
  23. endTime: {
  24. default: null,
  25. type: cc.Label,
  26. serializable: true,
  27. },
  28. multiple: {
  29. default: null,
  30. type: cc.Label,
  31. serializable: true,
  32. },
  33. //介绍
  34. describe: {
  35. default: null,
  36. type: cc.Label,
  37. serializable: true,
  38. },
  39. },
  40. // LIFE-CYCLE CALLBACKS:
  41. // onLoad () {},
  42. // start () {
  43. // },
  44. setInfo(price,date,start,end,multiple,describe){
  45. this.price.string = price;
  46. this.date.string = date;
  47. this.startTime.string = start;
  48. this.endTime.string = end;
  49. this.multiple.string = multiple;
  50. this.describe.string = describe;
  51. },
  52. onclose(){
  53. this.node.destroy();
  54. }
  55. });