【调整】免费证书申请

This commit is contained in:
cai
2026-01-15 11:35:36 +08:00
parent 6b4522f9e7
commit 200c0aeee6
51 changed files with 59 additions and 55 deletions

View File

@@ -284,11 +284,14 @@ export default defineComponent({
// 计算当前选中的邮箱选项的 value用于 NSelect
const currentEmailValue = computed(() => {
if (!param.value.eabId) return null;
// 优先使用 eabId 来查找匹配的选项
if (!param.value.eabId && !param.value.email) return null;
const matchedOption = emailOptions.value.find(
(item) => item.id.toString() === param.value.eabId
(item) =>
(param.value.eabId && item.id.toString() === param.value.eabId) ||
(param.value.email && item.email === param.value.email)
);
return matchedOption ? matchedOption.value : null;
});
@@ -652,7 +655,6 @@ export default defineComponent({
// 确认事件触发
confirm(async (close) => {
try {
console.log(123123123)
await example.value?.validate();
data.value.eabId = "";
data.value.email = param.value.email;

View File

@@ -1,4 +1,5 @@
import { useController } from './useController'
import { useRouter } from 'vue-router';
import { NTabs, NTabPane, NEmpty, NIcon } from 'naive-ui'
import ProductCard from './components/ProductCard'
import FreeProductCard from './components/FreeProductCard'
@@ -23,7 +24,7 @@ export default defineComponent({
formatPrice,
handleOpenApplyModal,
} = useController()
const router = useRouter();
return () => (
<div class="w-full max-w-[160rem] mx-auto p-[2rem]">
<div class="bg-[var(--content-bg-base)] rounded-[0.6rem] p-[2.4rem] mb-[3rem]">
@@ -78,11 +79,12 @@ export default defineComponent({
</NTabs>
)}
{activeMainTab.value === 'free' && (
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
{freeProducts.value.map((product) => (
<FreeProductCard key={product.pid} product={product} onApply={handleOpenApplyModal} />
))}
</div>
<div><span onClick={() => router.push("/auto-deploy")} class="cursor-pointer text-[var(--color-text-primary-success)] text-[14px]"></span></div>
// <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
// {freeProducts.value.map((product) => (
// <FreeProductCard key={product.pid} product={product} onApply={handleOpenApplyModal} />
// ))}
// </div>
)}
</div>
),