This commit is contained in:
Mrx
2026-02-14 11:14:09 +08:00
parent de69a9d58c
commit f0206916be
22 changed files with 176 additions and 124 deletions

View File

@@ -283,11 +283,11 @@ const shareToFriend = () => {
const shareUrl = generalUrl();
const shareConfig = {
title: mode.value === "promote"
? "天远数据 - 推广链接"
: "天远数据 - 邀请链接",
? "天远助手 - 推广链接"
: "天远助手 - 邀请链接",
desc: mode.value === "promote"
? "扫码查看天远数据推广信息"
: "扫码申请天远数据代理权限",
? "扫码查看天远助手推广信息"
: "扫码申请天远助手代理权限",
link: shareUrl,
imgUrl: "https://www.tianyuandb.com/logo.jpg"
};
@@ -308,11 +308,11 @@ const shareToTimeline = () => {
const shareUrl = generalUrl();
const shareConfig = {
title: mode.value === "promote"
? "天远数据 - 推广链接"
: "天远数据 - 邀请链接",
? "天远助手 - 推广链接"
: "天远助手 - 邀请链接",
desc: mode.value === "promote"
? "扫码查看天远数据推广信息"
: "扫码申请天远数据代理权限",
? "扫码查看天远助手推广信息"
: "扫码申请天远助手代理权限",
link: shareUrl,
imgUrl: "https://www.tianyuandb.com/logo.jpg"
};
@@ -372,7 +372,7 @@ const savePoster = () => {
const saveForPC = (dataURL) => {
const a = document.createElement("a");
a.href = dataURL;
a.download = "天远数据海报.png";
a.download = "天远助手海报.png";
a.click();
};
@@ -389,7 +389,7 @@ const saveForMobile = async (dataURL) => {
const a = document.createElement("a");
a.href = url;
a.download = "天远数据海报.png";
a.download = "天远助手海报.png";
a.style.display = "none";
document.body.appendChild(a);
a.click();
@@ -439,7 +439,7 @@ const saveWithFileSystemAPI = async (dataURL) => {
try {
const blob = dataURLToBlob(dataURL);
const fileHandle = await window.showSaveFilePicker({
suggestedName: '天远数据海报.png',
suggestedName: '天远助手海报.png',
types: [{
description: 'PNG images',
accept: { 'image/png': ['.png'] }
@@ -465,11 +465,11 @@ const tryShareAPI = async (dataURL) => {
if (navigator.share && navigator.canShare) {
try {
const blob = dataURLToBlob(dataURL);
const file = new File([blob], '天远数据海报.png', { type: 'image/png' });
const file = new File([blob], '天远助手海报.png', { type: 'image/png' });
if (navigator.canShare({ files: [file] })) {
await navigator.share({
title: '天远数据海报',
title: '天远助手海报',
text: '分享海报图片',
files: [file]
});