@@ -98,8 +98,8 @@ const BindData = async (): Promise
=> {
}
};
-/**切换背包 */
-const ChangeBag = async (_type: string): Promise => {
+/**切换数据 */
+const ChangeData = async (_type: string): Promise => {
type.value = _type;
await BindData();
}
diff --git a/Web/src/pages/user/team/index.vue b/Web/src/pages/user/team/index.vue
index 41a40c8..498066a 100644
--- a/Web/src/pages/user/team/index.vue
+++ b/Web/src/pages/user/team/index.vue
@@ -1 +1,157 @@
-
\ No newline at end of file
+
+
+
+
+
+ 名称:{{ team.name }}
(修改)
+ 成员:({{ user.length }}/{{ team.count }})
+ 分类:{{ codeTips }}
+ 队长:
+
{{ master.isOnline == 1 ? "(在线)" : "(离线)" }}
+
+
+ ->暂无队员.
+
+
+ 队员:
+
{{ item.isOnline == 1 ? "(在线)" : "(离线)" }}
+
+ [踢出]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Web/src/pages/user/team/info.vue b/Web/src/pages/user/team/info.vue
new file mode 100644
index 0000000..41a40c8
--- /dev/null
+++ b/Web/src/pages/user/team/info.vue
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Web/src/pages/user/team/team.vue b/Web/src/pages/user/team/team.vue
new file mode 100644
index 0000000..13911fb
--- /dev/null
+++ b/Web/src/pages/user/team/team.vue
@@ -0,0 +1,102 @@
+
+
+ 【队伍列表】
刷新
+
普通|
+
副本|
+
其他
+
+
+
暂无队伍.
+
+ {{ PageExtend.GetPageIndex(currentPage, 10, index + 1) }}.
+
{{ item.team.name
+ }}({{ item.user.length }}/{{ item.team.count }})
+ [
加入]
+
+
+
+
+
\ No newline at end of file
diff --git a/Web/src/services/Index/TeamService.ts b/Web/src/services/Index/TeamService.ts
new file mode 100644
index 0000000..f2f40a1
--- /dev/null
+++ b/Web/src/services/Index/TeamService.ts
@@ -0,0 +1,66 @@
+export class TeamService {
+ /**
+ * 获取我的队伍
+ * GET /Team/GetMyTeam
+ */
+ static async GetMyTeam() {
+ return await ApiService.Request("get", "/Team/GetMyTeam");
+ }
+
+ /**
+ * 创建队伍
+ * GET /Team/CreateTeam
+ */
+ static async CreateTeam(type: number, par: string) {
+ return await ApiService.Request("get", "/Team/CreateTeam", { type, par });
+ }
+
+ /**
+ * 加入队伍
+ * GET /Team/JoinTeam
+ */
+ static async JoinTeam(teamId: string) {
+ return await ApiService.Request("get", "/Team/JoinTeam", { teamId });
+ }
+
+ /**
+ * 获取队伍信息
+ * GET /Team/GetTeamInfo
+ */
+ static async GetTeamInfo(teamId: string) {
+ return await ApiService.Request("get", "/Team/GetTeamInfo", { teamId });
+ }
+
+ /**
+ * 退出队伍
+ * GET /Team/ExitTeam
+ */
+ static async ExitTeam() {
+ return await ApiService.Request("get", "/Team/ExitTeam");
+ }
+
+ /**
+ * 修改队名
+ * POST /Team/UpdateTeamName
+ * @param name body
+ */
+ static async UpdateTeamName(name: string) {
+ return await ApiService.Request("post", "/Team/UpdateTeamName", { name });
+ }
+
+ /**
+ * 踢出成员
+ * GET /Team/RemoveUser
+ */
+ static async RemoveUser(user: string) {
+ return await ApiService.Request("get", "/Team/RemoveUser", { user });
+ }
+
+ /**
+ * 获取队伍列表
+ * GET /Team/GetTeamData
+ */
+ static async GetTeamData(type: number, page: number) {
+ return await ApiService.Request("get", "/Team/GetTeamData", { type, page });
+ }
+}
\ No newline at end of file