mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
✨ 增加工具箱入口,隐藏生日入口
This commit is contained in:
BIN
public/source/UI/toolbox.webp
Normal file
BIN
public/source/UI/toolbox.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.4 KiB |
@@ -117,9 +117,9 @@
|
||||
<img src="/platforms/mhy/mys.webp" alt="酒馆" class="side-icon-user" />
|
||||
</template>
|
||||
</v-list-item>
|
||||
<v-list-item class="side-item-user" title="生日" @click="openClient('birthday')">
|
||||
<v-list-item class="side-item-user" title="工具箱" @click="openClient('toolbox')">
|
||||
<template #prepend>
|
||||
<img src="/source/UI/paimon.webp" alt="生日" class="side-icon-user" />
|
||||
<img src="/source/UI/toolbox.webp" alt="工具箱" class="side-icon-user" />
|
||||
</template>
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
|
||||
@@ -104,7 +104,7 @@ class TGClient {
|
||||
|
||||
/**
|
||||
* @func getUrl
|
||||
* @since Beta v0.3.4
|
||||
* @since Beta v0.3.5
|
||||
* @desc 获取 url
|
||||
* @param {string} func - 方法名
|
||||
* @returns {string} - url
|
||||
@@ -121,6 +121,8 @@ class TGClient {
|
||||
return "https://m.miyoushe.com/ys/#/home/26";
|
||||
case "birthday":
|
||||
return "https://webstatic.mihoyo.com/ys/event/e20220303-birthday/index.html?game_biz=hk4e_cn&bbs_presentation_style=fullscreen&bbs_auth_required=true&bbs_landscape=true&activity_id=20220301153521&mhy_hide_status_bar=true&utm_source=bbs&utm_medium=mys&utm_campaign=arti";
|
||||
case "toolbox":
|
||||
return "https://webstatic.mihoyo.com/bbs/event/e20200511toolbox/index.html?game_biz=ys_cn";
|
||||
default:
|
||||
return this.getUrl("daily_note");
|
||||
}
|
||||
@@ -385,6 +387,12 @@ class TGClient {
|
||||
const urlBBS = url.replace("mihoyobbs://article/", "https://m.miyoushe.com/ys/#/article/");
|
||||
await this.open("pushPage", urlBBS);
|
||||
return;
|
||||
} else if (url.startsWith("mihoyobbs://webview?link=")) {
|
||||
const urlWv = url.replace("mihoyobbs://webview?link=", "");
|
||||
// 解析经过编码作为参数的链接
|
||||
const urlReal = decodeURIComponent(urlWv);
|
||||
await this.open("pushPage", urlReal);
|
||||
return;
|
||||
}
|
||||
await this.open("pushPage", url);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user