rename item -> material & refactor buying action
This commit is contained in:
@@ -154,12 +154,12 @@ async function handleClearObjective() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- Items -->
|
||||
<div class="section" v-if="data.items?.length">
|
||||
<div class="section-title">物品</div>
|
||||
<!-- Materials -->
|
||||
<div class="section" v-if="data.materials?.length">
|
||||
<div class="section-title">材料</div>
|
||||
<div class="list-container">
|
||||
<EntityRow
|
||||
v-for="item in data.items"
|
||||
v-for="item in data.materials"
|
||||
:key="item.name"
|
||||
:item="item"
|
||||
:meta="`x${item.count}`"
|
||||
|
||||
@@ -30,7 +30,7 @@ export interface EffectEntity extends EntityBase {
|
||||
hq_desc?: string;
|
||||
}
|
||||
|
||||
export interface Item extends EffectEntity {
|
||||
export interface Material extends EffectEntity {
|
||||
count: number;
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ export interface AvatarDetail extends EntityBase {
|
||||
spirit_animal?: EffectEntity;
|
||||
|
||||
// 列表数据
|
||||
items: Item[];
|
||||
materials: Material[];
|
||||
relations: RelationInfo[];
|
||||
|
||||
// 附加信息
|
||||
|
||||
Reference in New Issue
Block a user