账号
All checks were successful
site-dist-deploy / build-and-deploy (push) Successful in 1m16s

This commit is contained in:
speakeloudest 2026-05-02 19:45:06 +03:00
parent cd307c3297
commit 06587fb47b

View File

@ -122,6 +122,31 @@
</div> </div>
</div> </div>
</div> </div>
<!-- iframe 弹窗 -->
<div
v-if="iframeVisible"
class="fixed inset-0 z-50 flex items-center justify-center bg-black/80 px-4"
>
<div class="relative w-full max-w-[400px] rounded-2xl bg-white p-4">
<div class="mb-2 flex justify-end">
<button
class="rounded-lg bg-black px-4 py-1 text-sm font-bold text-white"
@click="iframeVisible = false"
>
关闭
</button>
</div>
<iframe
width="100%"
height="400"
:src="accountShareUrl"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
class="rounded-lg"
></iframe>
</div>
</div>
</div> </div>
</template> </template>
@ -129,7 +154,6 @@
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import ArrowIcon from './arrow-icon.svg?component' import ArrowIcon from './arrow-icon.svg?component'
import StartIcon from './Star-1.svg?component' import StartIcon from './Star-1.svg?component'
import { toast } from 'vue-sonner'
// Sliced WebP Images // Sliced WebP Images
// Method 1 // Method 1
@ -164,6 +188,7 @@ const ADJ_GO_LINK =
: 'https://hifastvpn.go.link/?adj_t=1xf6e7ru' : 'https://hifastvpn.go.link/?adj_t=1xf6e7ru'
const downLoadIos = ADJ_GO_LINK const downLoadIos = ADJ_GO_LINK
const accountShareUrl = 'https://aunlock.laomaos.com/share/jibsPdEN'
interface Hotzone { interface Hotzone {
x: number x: number
@ -175,8 +200,9 @@ interface Hotzone {
label?: string label?: string
} }
const accounts = [ const accounts = [
{ account: 'prla08741@gmx.com', password: 'Qw990088' }, { account: '点击获取邮箱', password: '****' },
{ account: 'zhongcujiu8051@hotmail.com', password: 'Dx114461' }, // { account: 'prla08741@gmx.com', password: 'Qw990088' },
// { account: 'zhongcujiu8051@hotmail.com', password: 'Dx114461' },
] ]
const selectedIndex = ref(0) // const selectedIndex = ref(0) //
const downloadMethods = computed(() => { const downloadMethods = computed(() => {
@ -302,18 +328,18 @@ const downloadMethods = computed(() => {
y: 1941, y: 1941,
w: 200, w: 200,
h: 32, h: 32,
type: 'copy', // type: 'copy',
payload: account.account, payload: account.account,
label: '账号', // account label: '账号',
}, },
{ {
x: 53, x: 53,
y: 1976, y: 1976,
w: 200, w: 200,
h: 32, h: 32,
type: 'copy', // type: 'copy',
payload: account.password, payload: account.password,
label: '密码', // label: '密码',
}, },
{ {
x: 142, x: 142,
@ -348,7 +374,7 @@ const downloadMethods = computed(() => {
h: 34, h: 34,
type: 'copy', type: 'copy',
payload: account.account, payload: account.account,
label: '账号', // account label: '账号',
}, },
{ {
x: 103, x: 103,
@ -357,7 +383,7 @@ const downloadMethods = computed(() => {
h: 34, h: 34,
type: 'copy', type: 'copy',
payload: account.password, payload: account.password,
label: '密码', // label: '密码',
}, },
{ {
x: 580, x: 580,
@ -373,7 +399,13 @@ const downloadMethods = computed(() => {
}) })
const activeId = ref<number | null>(null) const activeId = ref<number | null>(null)
const iframeVisible = ref(false)
/**
* 切换下载方式详情面板显示状态
* @param {number} id 当前点击的下载方式 ID
* @returns {void} 无返回值
*/
const toggle = (id: number) => { const toggle = (id: number) => {
if (activeId.value === id) { if (activeId.value === id) {
activeId.value = null activeId.value = null
@ -389,10 +421,14 @@ const toggle = (id: number) => {
} }
} }
/**
* 处理热区点击行为
* @param {Hotzone} hz 当前点击的热区配置
* @returns {void} 无返回值
*/
const handleHotzone = (hz: Hotzone) => { const handleHotzone = (hz: Hotzone) => {
if (hz.type === 'copy') { if (hz.type === 'copy') {
navigator.clipboard.writeText(hz.payload) iframeVisible.value = true
toast.success(`${hz.label || '内容'}已复制`)
} else if (hz.type === 'link') { } else if (hz.type === 'link') {
window.open(hz.payload, '_blank') window.open(hz.payload, '_blank')
} }