|
|
@@ -3,7 +3,6 @@ import SearchBox from "../../components/searchBox"
|
|
|
import { SearchOutlined, PlusOutlined } from '@ant-design/icons';
|
|
|
import { useEffect, useRef, useState } from "react";
|
|
|
import style from '../bookLink/index.less'
|
|
|
-import NewMini from "./newMini";
|
|
|
import { getProjectGroupsAllListApi } from "../../API/groupManage";
|
|
|
import { useAjax } from "@/Hook/useAjax";
|
|
|
import dayjs from 'dayjs';
|
|
|
@@ -14,7 +13,7 @@ import { randomString } from "@/utils/utils";
|
|
|
import DrawerMini from "./drawerMini";
|
|
|
import { getCorpUserListApi, getGenerateUrllinkApi } from "../../API/global";
|
|
|
import ShowQrCode from "./showQrCode";
|
|
|
-import { url } from "inspector";
|
|
|
+import dayJs from 'dayjs';
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -149,8 +148,14 @@ const MiniProgramPages: React.FC = () => {
|
|
|
}).catch(() => hide())
|
|
|
}
|
|
|
|
|
|
- const handleCode = (appId: string, vid: string) => {
|
|
|
- getGenerateUrllink.run({ path: '/pages/play/index', query: `vid=${vid}&eq=${-Math.random()}`, appId }).then(res => {
|
|
|
+ const handleCode = (appId: string, vid: string, createTime: string) => {
|
|
|
+ let params = {}
|
|
|
+ if (dayJs(createTime) > dayJs('2026-04-08').startOf('day')) {
|
|
|
+ params = { path: '/pages/player/index', query: `id=${vid}` }
|
|
|
+ } else {
|
|
|
+ params = { path: '/pages/play/index', query: `vid=${vid}&eq=${-Math.random()}` }
|
|
|
+ }
|
|
|
+ getGenerateUrllink.run({ ...params, appId }).then(res => {
|
|
|
if (res?.data) {
|
|
|
setQrCode({ visible: true, url: res.data })
|
|
|
}
|