
cc.Class({
    extends: cc.Component,

    properties: {
        //土地id
        landId:{
            default: null, 
            type: cc.Label, 
            serializable: true,   
        },
        //单价
        price: {
            default: null, 
            type: cc.Label, 
            serializable: true,   
        },
        //租期
        date: {
            default: null, 
            type: cc.Label, 
            serializable: true,   
        },
        //开始时间
        startTime: {
            default: null, 
            type: cc.Label, 
            serializable: true,   
        },
        //结束
        endTime: {
            default: null, 
            type: cc.Label, 
            serializable: true,   
        },

        multiple: {
            default: null, 
            type: cc.Label, 
            serializable: true,   
        },
        //介绍
        describe: {
            default: null, 
            type: cc.Label, 
            serializable: true,   
        },
      
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    // start () {

    // },
    setInfo(id,price,date,start,end,multiple,describe){
        this.landId.string = id + " 号";
        this.price.string = price + " CNT";
        this.date.string = date;
        this.startTime.string = start;
        this.endTime.string = end;
        this.multiple.string = multiple;
        this.describe.string = describe;
    },

    onclose(){
        this.node.destroy();
    }
});
