桌面端样式
All checks were successful
site-dist-deploy / build-and-deploy (push) Successful in 1m8s

This commit is contained in:
speakeloudest 2026-01-04 22:52:06 -08:00
parent 02da9d975f
commit 96dbe0c108

View File

@ -115,7 +115,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref } 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' import { toast } from 'vue-sonner'
@ -154,103 +154,117 @@ interface Hotzone {
payload: string payload: string
label?: string label?: string
} }
const account = [ const accounts = [
{ account: 'prla08741@gmx.com', password: 'Qw990088' }, { account: 'prla08741@gmx.com', password: 'Qw990088' },
{ account: 'guazhexing721@gmx.com', password: 'Qw990088' }, { account: 'guazhexing721@gmx.com', password: 'Qw990088' },
] ]
const selectedIndex = ref(0) //
// const downloadMethods = computed(() => {
const downloadMethods = ref([ const account = accounts[selectedIndex.value]
{ return [
id: 1, {
title: '创建新“香港Apple ID”', id: 1,
subtitle: '首推', title: '创建新“香港Apple ID”',
isHot: true, subtitle: '首推',
highlight: '', isHot: true,
mobileImages: [m1_1, m1_2, m1_3], highlight: '',
pcImages: [pc1_1, pc1_2, pc1_3], mobileImages: [m1_1, m1_2, m1_3],
mobileHotzones: [] as Hotzone[], pcImages: [pc1_1, pc1_2, pc1_3],
pcHotzones: [ mobileHotzones: [] as Hotzone[],
{ pcHotzones: [
x: 410, {
y: 224, x: 410,
w: 140, y: 224,
h: 20, w: 140,
type: 'link', h: 20,
payload: 'https://account.apple.com/account', type: 'link',
}, payload: 'https://account.apple.com/account',
] as Hotzone[], },
}, ] as Hotzone[],
{ },
id: 2, {
title: '修改已有 Apple ID 至 <香港>', id: 2,
subtitle: '', title: '修改已有 Apple ID 至 <香港>',
isHot: false, subtitle: '',
highlight: '', isHot: false,
mobileImages: [m2_1, m2_2, m2_3], highlight: '',
pcImages: [pc2_1, pc2_2, pc2_3], mobileImages: [m2_1, m2_2, m2_3],
mobileHotzones: [] as Hotzone[], pcImages: [pc2_1, pc2_2, pc2_3],
pcHotzones: [ mobileHotzones: [] as Hotzone[],
{ pcHotzones: [
x: 410, {
y: 224, x: 410,
w: 140, y: 224,
h: 20, w: 140,
type: 'link', h: 20,
payload: 'https://account.apple.com', type: 'link',
}, payload: 'https://account.apple.com',
] as Hotzone[], },
}, ] as Hotzone[],
{ },
id: 3, {
title: '使用Hi快提供的公用账号', id: 3,
subtitle: '', title: '使用Hi快提供的公用账号',
isHot: false, subtitle: '',
highlight: '谨慎选择', isHot: false,
mobileImages: [m3_1, m3_2, m3_3], highlight: '谨慎选择',
pcImages: [pc3_1, pc3_2, pc3_3], mobileImages: [m3_1, m3_2, m3_3],
mobileHotzones: [] as Hotzone[], pcImages: [pc3_1, pc3_2, pc3_3],
pcHotzones: [ mobileHotzones: [] as Hotzone[],
{ pcHotzones: [
x: 103, {
y: 1426, x: 103,
w: 140, y: 1426,
h: 20, w: 140,
type: 'text', h: 20,
payload: 'https://account.apple.com', type: 'text', //
}, payload: account.account,
{ },
x: 103, {
y: 1463, x: 103,
w: 140, y: 1463,
h: 20, w: 140,
type: 'text', h: 20,
payload: 'https://account.apple.com', type: 'text', //
}, payload: account.password,
{ },
x: 103, {
y: 1414, x: 103,
w: 194, y: 1414,
h: 34, w: 194,
type: 'copy', h: 34,
payload: 'https://account.apple.com', type: 'copy',
}, payload: account.account,
{ label: '账号', // account
x: 103, },
y: 1451, {
w: 194, x: 103,
h: 34, y: 1451,
type: 'copy', w: 194,
payload: 'https://account.apple.com', h: 34,
}, type: 'copy',
] as Hotzone[], payload: account.password,
}, label: '密码', //
]) },
] as Hotzone[],
},
]
})
const activeId = ref<number | null>(null) const activeId = ref<number | null>(null)
const toggle = (id: number) => { const toggle = (id: number) => {
activeId.value = activeId.value === id ? null : id if (activeId.value === id) {
activeId.value = null
} else {
activeId.value = id
// ID 3
if (id === 3) {
//
selectedIndex.value = selectedIndex.value === 0 ? 1 : 0
}
}
} }
const handleHotzone = (hz: Hotzone) => { const handleHotzone = (hz: Hotzone) => {