//export导出,constructor构造器里面可以放一些参数
1 export class Goods {
2 constructor(itemInfo, columns, services) {
3 this.title = itemInfo.title;
4 this.desc = itemInfo.desc;
5 this.newPrice = itemInfo.price;
6 this.oldPrice = itemInfo.oldPrice;
7 this.discount = itemInfo.discountDesc;
8 this.columns = columns;
9 this.services = services;
10 this.realPrice = itemInfo.lowNowPrice;
11 }
12 }