fix(sth): 优化样式

This commit is contained in:
BTMuli
2023-03-23 22:20:57 +08:00
parent f8fcd9c130
commit 62b1a195fc
5 changed files with 44 additions and 18 deletions

View File

@@ -266,7 +266,14 @@ async function importJson() {
const localTime = localData.completed_time;
// 如果本地数据不存在,或者本地数据的 timeStamp 小于远程数据的 timeStamp更新数据
if (data.timestamp !== 0) {
const fin_time = new Date(data.timestamp * 1000).toLocaleString();
const fin_time = new Date(data.timestamp * 1000).toLocaleString("zh", {
year: "numeric",
month: "2-digit",
day: "2-digit",
hour: "2-digit",
minute: "2-digit",
second: "2-digit",
});
if (fin_time !== localTime || localData.progress !== data.current) {
localData.completed_time = fin_time;
localData.progress = data.current;

View File

@@ -120,7 +120,7 @@ async function loadData() {
}
function toOuter(card_name: string, card_id: number) {
const url = MysContent.replace("content_id", card_id.toString());
createTGWindow(url, "GCG", card_name, 1600, 900, true);
createTGWindow(url, "GCG", card_name, 1200, 800, true);
}
async function searchCard() {
loading.value = true;
@@ -128,6 +128,7 @@ async function searchCard() {
const res: BaseCard[] = [];
const allCardsInfo = await ReadAllTGData("GCG");
allCardsInfo.map(item => (item.name.includes(search.value) ? res.push(item) : null));
res.sort((a, b) => a.name.localeCompare(b.name));
loading.value = false;
if (res.length == 0) {
await dialog.message("未找到相关卡牌");

View File

@@ -251,7 +251,7 @@ async function toPost(post_id: string) {
.Home-pool-clock {
width: auto;
margin-left: 120px;
margin-left: 40px;
float: right;
font-size: small;
height: 80px;