import { _decorator, Component, Node } from 'cc'; import { GoodsComp } from './GoodsComp'; const { ccclass, property } = _decorator; @ccclass('ShopPageComp') export class ShopPageComp extends Component { daily_goods:any[]=[1001,1002,1004,1006] weekly_goods:any[]=[] monthly_goods:any[]=[] special_goods:any[]=[] start() { this.update_daily_goods() } update_daily_goods(){ let items=this.node.getChildByName("daily").getChildByName("items").children for(let i=0;i