diff --git a/src/pages/User/Characters.vue b/src/pages/User/Characters.vue
index 298c8bf8..897e5324 100644
--- a/src/pages/User/Characters.vue
+++ b/src/pages/User/Characters.vue
@@ -68,28 +68,31 @@
(isLevelUp = toggleSort(isLevelUp))"
>
- 等级
- {{ getSortIcon(isLevelUp) }}
+ 等级
(isFetterUp = toggleSort(isFetterUp))"
>
- 好感
- {{ getSortIcon(isFetterUp) }}
+ 好感
(isConstUp = toggleSort(isConstUp))"
>
- 命座
- {{ getSortIcon(isConstUp) }}
+ 命座
@@ -106,7 +109,11 @@
class="uc-ov-item"
>
- {{ item.cnt }}{{ isSelected ? `(${getElementCnt(item.element)})` : "" }}
+
+ {{ getElementCnt(item.element) }}
+ /{{ item.cnt }}
+
+ {{ item.cnt }}
@@ -232,22 +239,22 @@ watch(
async () => {
let tmp = selectedList.value;
if (isLevelUp.value === true) {
- tmp = tmp.sort((a, b) => b.avatar.level - a.avatar.level);
- } else if (isLevelUp.value === false) {
tmp = tmp.sort((a, b) => a.avatar.level - b.avatar.level);
+ } else if (isLevelUp.value === false) {
+ tmp = tmp.sort((a, b) => b.avatar.level - a.avatar.level);
}
if (isFetterUp.value === true) {
- tmp = tmp.sort((a, b) => b.avatar.fetter - a.avatar.fetter);
- } else if (isFetterUp.value === false) {
tmp = tmp.sort((a, b) => a.avatar.fetter - b.avatar.fetter);
+ } else if (isFetterUp.value === false) {
+ tmp = tmp.sort((a, b) => b.avatar.fetter - a.avatar.fetter);
}
if (isConstUp.value === true) {
tmp = tmp.sort(
- (a, b) => b.avatar.actived_constellation_num - a.avatar.actived_constellation_num,
+ (a, b) => a.avatar.actived_constellation_num - b.avatar.actived_constellation_num,
);
} else if (isConstUp.value === false) {
tmp = tmp.sort(
- (a, b) => a.avatar.actived_constellation_num - b.avatar.actived_constellation_num,
+ (a, b) => b.avatar.actived_constellation_num - a.avatar.actived_constellation_num,
);
}
selectedList.value = tmp;
@@ -285,7 +292,7 @@ function getSortDesc(value: boolean | null): string {
case false:
return "降序";
default:
- return "默认";
+ return "默认排序";
}
}
@@ -642,6 +649,14 @@ function handleSwitch(next: boolean): void {
}
}
+.uc-ov-cnt {
+ position: relative;
+ top: 4px;
+ left: -4px;
+ color: var(--tgc-od-white);
+ font-size: 12px;
+}
+
.uc-box-info {
position: relative;
z-index: -1;