perf: 专业版7天试用

This commit is contained in:
xiaojunnuo
2024-11-08 16:53:45 +08:00
parent 3f5499be90
commit c58250e1f0
7 changed files with 53 additions and 57 deletions
@@ -36,9 +36,9 @@ const iframeSrcRef = computed(() => {
type SubjectInfo = {
subjectId: string;
installTime?: number;
installAt?: number;
vipType?: string;
expiresTime?: number;
expiresAt?: number;
};
onMounted(() => {
const iframeClient = new IframeClient(iframeRef.value, (e: any) => {
@@ -50,9 +50,9 @@ onMounted(() => {
iframeClient.register("getSubjectInfo", async (req: any) => {
const subjectInfo: SubjectInfo = {
subjectId: settingStore.installInfo.siteId,
installTime: settingStore.installInfo.installTime,
installAt: settingStore.installInfo.installTime,
vipType: settingStore.plusInfo.vipType || "free",
expiresTime: settingStore.plusInfo.expireTime
expiresAt: settingStore.plusInfo.expireTime
};
return subjectInfo;
});