Skip to content

Commit 966d278

Browse files
committed
support DXPass exchange
1 parent 87fdf62 commit 966d278

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

src/app/sega/maimai2/maimai2-point-exchanges/maimai2-point-exchanges.component.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
}
5454

5555
/* 可以针对特定类型设置不同的列占比 */
56-
.col-type-1, .col-type-2, .col-type-3, .col-type-9, .col-type-10 {
56+
.col-type-1, .col-type-2, .col-type-3, .col-type-9, .col-type-10, .col-type-901 {
5757
/* Plate, Title, Icon, Character, Partner - 标准尺寸 */
5858
}
5959

@@ -190,6 +190,12 @@
190190
box-shadow: 0 2px 4px rgba(197, 161, 207, 0.3);
191191
}
192192

193+
.bg-dxpass {
194+
background: linear-gradient(135deg, #FFD93D 0%, #9B59B6 100%);
195+
box-shadow: 0 2px 4px rgba(255, 217, 61, 0.25);
196+
color: rgba(255, 255, 255, 0.75);
197+
}
198+
193199
/* 备用颜色 - 柔和灰色 */
194200
.bg-secondary {
195201
background-color: #9AA5B1; /* 柔和灰 */

src/app/sega/maimai2/maimai2-point-exchanges/maimai2-point-exchanges.component.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,14 @@ <h5 class="modal-title">确认兑换</h5>
276276
<div class="flex-grow-1">
277277
<h5 class="mb-1">{{ selectedExchangeItem.name }}</h5>
278278
<p class="small text-secondary mb-0">
279-
{{ selectedExchangeItem.description }}
279+
<span
280+
*ngFor="
281+
let line of selectedExchangeItem.description.split('\n');
282+
let last = last
283+
"
284+
>
285+
{{ line }}<br *ngIf="!last" />
286+
</span>
280287
</p>
281288
</div>
282289
</div>

src/app/sega/maimai2/maimai2-point-exchanges/maimai2-point-exchanges.component.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ export class Maimai2PointExchangesComponent implements OnInit {
213213
case Maimai2ExchangeItemType.KaleidxScopeKey:
214214
specialPath = `assets/mai2/common/UI_KLD_DiscoverCourseKey_0${itemData.itemId}.webp`;
215215
break;
216+
case Maimai2ExchangeItemType.DXPass:
217+
specialPath = `assets/mai2/common/dxpass_${itemData.itemId}.webp`;
218+
break;
216219
}
217220

218221
if (specialPath !== undefined)
@@ -254,7 +257,8 @@ export class Maimai2PointExchangesComponent implements OnInit {
254257
[Maimai2ExchangeItemType.Frame]: 'bg-frame',
255258
[Maimai2ExchangeItemType.Ticket]: 'bg-ticket',
256259
[Maimai2ExchangeItemType.Mile]: 'bg-mile',
257-
[Maimai2ExchangeItemType.KaleidxScopeKey]: 'bg-kaleidxScopeKey'
260+
[Maimai2ExchangeItemType.KaleidxScopeKey]: 'bg-kaleidxScopeKey',
261+
[Maimai2ExchangeItemType.DXPass]: 'bg-dxpass'
258262
};
259263
return typeClassMap[Maimai2ExchangeItemType[itemType]] || 'bg-unknown';
260264
}
@@ -271,7 +275,8 @@ export class Maimai2PointExchangesComponent implements OnInit {
271275
[Maimai2ExchangeItemType.Frame]: 'col-type-11',
272276
[Maimai2ExchangeItemType.Ticket]: 'col-type-12',
273277
[Maimai2ExchangeItemType.Mile]: 'col-type-13',
274-
[Maimai2ExchangeItemType.KaleidxScopeKey]: 'col-type-15'
278+
[Maimai2ExchangeItemType.KaleidxScopeKey]: 'col-type-15',
279+
[Maimai2ExchangeItemType.DXPass]: 'col-type-901'
275280
};
276281
return sizeClassMap[itemType] || 'card-size-default';
277282
}

src/app/sega/maimai2/model/Maimai2ExchangeItemData.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export enum Maimai2ExchangeItemType {
1313
Ticket = 12,
1414
Mile = 13,
1515
// IntimateItem = 14,
16-
KaleidxScopeKey = 15
16+
KaleidxScopeKey = 15,
17+
DXPass = 901
1718
}
1819

1920
export enum Maimai2ExchangeItemTypeName {
@@ -31,7 +32,8 @@ export enum Maimai2ExchangeItemTypeName {
3132
Ticket = "功能卷",
3233
Mile = "Mile",
3334
// IntimateItem = 14,
34-
KaleidxScopeKey = "门钥匙"
35+
KaleidxScopeKey = "门钥匙",
36+
DXPass = "DXPass"
3537
}
3638

3739
export interface Maimai2ExchangeItemData {

0 commit comments

Comments
 (0)