diff --git a/Build_God_Game/src/assets/images/bag.svg b/Build_God_Game/src/assets/images/bag.svg new file mode 100644 index 0000000..564b198 --- /dev/null +++ b/Build_God_Game/src/assets/images/bag.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Build_God_Game/src/router/index.ts b/Build_God_Game/src/router/index.ts index b0fd07c..4561829 100644 --- a/Build_God_Game/src/router/index.ts +++ b/Build_God_Game/src/router/index.ts @@ -51,6 +51,12 @@ const router = createRouter({ component: () => import('@/views/ScrapView.vue'), meta: { requiresAuth: true } }, + { + path: '/bag', + name: 'bag', + component: () => import('@/views/BagView.vue'), + meta: { requiresAuth: true } + }, { path: '/:pathMatch(.*)*', name: 'NotFound', diff --git a/Build_God_Game/src/views/BagView.vue b/Build_God_Game/src/views/BagView.vue new file mode 100644 index 0000000..537d176 --- /dev/null +++ b/Build_God_Game/src/views/BagView.vue @@ -0,0 +1,292 @@ + + + + + + + + + + + 返回 + + + + + + + {{ bagName }} + + {{ usedCapacity }} / {{ bagCapacity }} + + + + 加载中... + + + + {{ bagStore.error }} + + + + 背包空空如也,快去获取一些物品吧! + + + + + + + {{ item.itemType === 1 ? '⚔️' : '💊' }} + + {{ item.itemName }} + {{ item.quantity }} + + + + + + + 上一页 + + {{ bagStore.currentPage }} / {{ bagStore.totalPages }} + + 下一页 + + + + + + + \ No newline at end of file