mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
93 lines
1.6 KiB
Vue
93 lines
1.6 KiB
Vue
<template>
|
|
<div>
|
|
<h1>颜色测试</h1>
|
|
<div class="test-box">
|
|
<div class="test-1">
|
|
Box 1
|
|
<div class="test-2">
|
|
Box 2
|
|
<div class="test-3">
|
|
Box 3
|
|
<div class="test-4">Box 4</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<h1>极验测试</h1>
|
|
<div class="btn-list">
|
|
<v-btn class="test-btn" @click="getGC">获取极验</v-btn>
|
|
</div>
|
|
<h1>窗口建立测试</h1>
|
|
<div class="btn-list">
|
|
<v-btn class="test-btn" @click="tryNewWindow">创建新窗口</v-btn>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
import { onMounted, ref } from "vue";
|
|
|
|
import showGeetest from "../../components/func/geetest";
|
|
import mhyClient from "../../utils/TGClient";
|
|
|
|
const visible = ref<boolean>(false);
|
|
|
|
onMounted(async () => {
|
|
visible.value = false;
|
|
await mhyClient.run();
|
|
});
|
|
|
|
async function getGC(): Promise<void> {
|
|
await showGeetest();
|
|
}
|
|
|
|
async function tryNewWindow(): Promise<void> {
|
|
await mhyClient.open("game_record");
|
|
}
|
|
</script>
|
|
<style lang="css" scoped>
|
|
.btn-list {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
margin-bottom: 20px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.test-btn {
|
|
background: var(--tgc-btn-1);
|
|
color: var(--btn-text);
|
|
}
|
|
|
|
.test-box {
|
|
display: flex;
|
|
border-radius: 5px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.test-1,
|
|
.test-2,
|
|
.test-3,
|
|
.test-4 {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.test-1 {
|
|
background: var(--box-bg-1);
|
|
}
|
|
|
|
.test-2 {
|
|
background: var(--box-bg-2);
|
|
}
|
|
|
|
.test-3 {
|
|
background: var(--box-bg-3);
|
|
}
|
|
|
|
.test-4 {
|
|
background: var(--box-bg-4);
|
|
}
|
|
</style>
|