diff --git a/src/layout/adder/GameAdder.tsx b/src/layout/adder/GameAdder.tsx index f2c712a..61df251 100644 --- a/src/layout/adder/GameAdder.tsx +++ b/src/layout/adder/GameAdder.tsx @@ -7,6 +7,11 @@ import useLayoutStore from '../useLayoutStore' import { AddToToken } from './AdderPage' import { v4 as uuid } from 'uuid' import { Button } from 'ant-design-vue' +import { frontAddress, ossBase } from '@/config' +import dayjs from 'dayjs' +import { generateRandomString } from '@/utils/tool' +import MD5 from 'crypto-js/md5' +const SECRET = 'A1Cv12olxT12dOE3xA1vPA==' const URL_ADDRESS = 'http://newfatfox.oss-cn-beijing.aliyuncs.com' interface GameType { id: string @@ -18,6 +23,18 @@ interface GameType { despt: string icon: string } +interface OtherGame { + id: number // 游戏ID + category_ids: number[] // 分类ID数组 + rank: number // 排名 + name: string // 游戏名称 + short_description: string // 简短描述 + description: string // 详细描述 + url: string // 游戏详情链接 + icon: string // 图标URL + cover_url: string // 封面URL + corner_mark: number // 角标标识 +} export const GameItem = defineComponent({ props: { content: { @@ -31,7 +48,7 @@ export const GameItem = defineComponent({ const addTo = inject(AddToToken) return () => (