- large
+
{
+
+ }}
+ >
+
+
+
+ {
+ DefautGameTypeList.map(item => (
+
{
+ selectType.value = item.id
+ }}
+ class={clsx("flex items-center jusitfy-center relative py-4 text-[13px]",
+ selectType.value === item.id ? "text-[#589fff]" : " text-[#589fffcc]"
+ )} >
+ {item.type}
+ {
+ selectType.value === item.id &&
+
+ }
+
+ ))
+ }
+
+
查看更多
+
+
+ {
+ !loading.value &&
+
+
+
+ {
+ appList.value.filter((_, index) => index < 10).map((item, idx) => (
+
{
+ hoverId.value = idx
+ }}
+ style={{
+ background: hoverId.value === idx ? "rgba(61,80,105,.8)" : "transparent"
+ }}>
+
{idx + 1}
+
+ {
+ hoverId.value === idx ?
+
+
+
+
+ {item.name}
+ {item.despt}
+
+
+
+
+
:
+
+ {item.name}
+ {item.despt}
+
+
+ }
+
+
+
+ ))
+ }
+
+
+ }
+
)
})
diff --git a/src/widgets/game/Middle.tsx b/src/widgets/game/Middle.tsx
deleted file mode 100644
index 53edc23..0000000
--- a/src/widgets/game/Middle.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import { defineComponent } from 'vue'
-
-export default defineComponent(() => {
-
- return () => (
-
- middle
-
- )
-})
diff --git a/src/widgets/game/Modal.tsx b/src/widgets/game/Modal.tsx
deleted file mode 100644
index 9890740..0000000
--- a/src/widgets/game/Modal.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import { defineComponent } from 'vue'
-
-export default defineComponent(() => {
- return () => (
-
- )
-})
diff --git a/src/widgets/game/Small.tsx b/src/widgets/game/Small.tsx
deleted file mode 100644
index bf0a763..0000000
--- a/src/widgets/game/Small.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-import { defineComponent } from 'vue'
-
-export default defineComponent(() => {
- return () => (
-
-
-
- )
-})
diff --git a/src/widgets/game/index.ts b/src/widgets/game/index.ts
index 5f92e14..6cd4ee7 100644
--- a/src/widgets/game/index.ts
+++ b/src/widgets/game/index.ts
@@ -3,23 +3,11 @@ import type { Widget } from '..'
export default {
name: 'gameNews',
- label: '游戏资讯',
- description: '游戏资讯',
- icon: '/tab/icons/game_news_icon.png',
- modal: asyncLoader(() => import('./Modal')),
+ label: '经典即玩游戏',
+ description: '经典即玩游戏',
+ icon: '/tab/icons/classicPlay.png',
+ modal: null,
list: [
- {
- w: 2,
- h: 1,
- label: '小',
- component: asyncLoader(() => import('./Small'))
- },
- {
- w: 2,
- h: 2,
- label: '中',
- component: asyncLoader(() => import('./Middle'))
- },
{
w: 4,
h: 2,
diff --git a/src/widgets/index.ts b/src/widgets/index.ts
index 88d59c7..3cb7e39 100644
--- a/src/widgets/index.ts
+++ b/src/widgets/index.ts
@@ -9,6 +9,7 @@ import hotspot from './hotspot'
import constellation from './constellation'
import gameVideo from './gameVideo'
import work from './work'
+import game from './game'
export interface Widget {
name: string // 小组件类型唯一标识
label: string // 小组件名称
@@ -23,4 +24,4 @@ export interface Widget {
}[] // 不同尺寸小组件块
}
-export default [calendar, weather, weApply, gameNews, eat, discount, hotspot, constellation, gameVideo, work] as Widget[]
+export default [game, calendar, weather, weApply, gameNews, eat, discount, hotspot, constellation, gameVideo, work] as Widget[]
diff --git a/src/widgets/work/index.ts b/src/widgets/work/index.ts
index 891fd6d..f3394fa 100644
--- a/src/widgets/work/index.ts
+++ b/src/widgets/work/index.ts
@@ -8,17 +8,18 @@ export default {
icon: '/tab/icons/work/tomato_work_icon.png',
modal: asyncLoader(() => import('./Modal')),
list: [
+ {
+ w: 4,
+ h: 2,
+ label: '大',
+ component: asyncLoader(() => import('./Large'))
+ },
{
w: 2,
h: 1,
label: '小',
component: asyncLoader(() => import('./Small'))
},
- {
- w: 4,
- h: 2,
- label: '大',
- component: asyncLoader(() => import('./Large'))
- }
+
]
} as Widget