# Variable: personalShelves
• personalShelves(): Promise‹ReadonlyWithExtensions‹PersonalShelf[]››
name
商城中的货架列表
description
返回个人商城的所有货架列表
example
// 在头部引入商城模块
import { personalizedShopSystem } from "@timi/mogs-sdk";
...
// 使用
const result = await personalizedShopSystem.personalShelves;
result.forEach((item) => console.log(item.goods));
1
2
3
4
5
6
2
3
4
5
6
# 返回值:
Promise‹ReadonlyWithExtensions‹PersonalShelf[]››
PersonalShelf
结构
属性 | 类型 | 描述 |
---|---|---|
canRefreshActively | boolean | 能否主动刷新 |
count? | Long | 商品数量 |
customInt? | Long | 自定义整型 |
customStr? | string | 自定义字符串 |
description | string | 描述 |
endTime? | Date | 结束时间 |
goods | Goods | 货架上的商品详情 |
id | number | 货架ID |
position | number | 展示位置 |
randomRewardInfo | RandomRewardInfo | 商品随机池信息 |
refreshCycleType | CycleTimeType | 刷新周期类型 |
refreshLimitation? | Limitation | 主动刷新限制信息 |
soldCount? | Long | 已被购买的数量 |
startTime? | Date | 开始时间 |