add point rule sort

This commit is contained in:
Timi
2026-08-19 16:12:12 +08:00
parent 84bc6d137d
commit f4fb604f53
7 changed files with 193 additions and 41 deletions
+1 -15
View File
@@ -42,15 +42,6 @@
</t-cell-group>
<div v-else class="empty-block" v-text="isLoading ? '正在加载门店' : '暂无门店'" />
</div>
<t-button
class="save"
theme="primary"
:loading="isSaving"
:disabled="!sortDirty || isSaving || isLoading"
@click="saveSort"
>
保存排序
</t-button>
</div>
</template>
@@ -140,6 +131,7 @@ async function loadData(): Promise<void> {
onMounted(async () => {
navBarStore.clearRight();
navBarStore.setRightText("保存", "var(--td-brand-color)", saveSort);
try {
await loadData();
} catch {
@@ -192,12 +184,6 @@ onUnmounted(() => {
text-align: center;
}
.save {
left: 1rem;
right: 1rem;
bottom: calc(.75rem + env(safe-area-inset-bottom, 0));
position: fixed;
}
}
:global(html.theme-dark) {