MCPcopy Create free account
hub / github.com/coderwhy/HYMiniMall / constructor

Method constructor

service/detail.js:19–29  ·  view source on GitHub ↗
(itemInfo, columns, services)

Source from the content-addressed store, hash-verified

17
18export class GoodsBaseInfo {
19 constructor(itemInfo, columns, services) {
20 this.title = itemInfo.title
21 this.desc = itemInfo.desc
22 this.newPrice = itemInfo.price
23 this.oldPrice = itemInfo.oldPrice
24 this.discount = itemInfo.discountDesc
25 this.columns = columns
26 this.services = services
27
28 this.realPrice = itemInfo.lowNowPrice
29 }
30}
31
32export class ShopInfo {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected