小宝贝,正在挂机中...
@@ -31,7 +31,9 @@
-
{{ item.npcName }}{{ item.tips }}
+

+

+
{{ item.name }}{{ item.tips }}
@@ -171,7 +173,7 @@ const BindData = async (map: string): Promise => {
cityShow.value = result.data.cityShow;
mapUser.value = result.data.nearUser;
messageCount.value = result.data.noReadMsg;
- business.value = result.data.business;
+ business.value = result.data.business;
mapRes.value = result.data.mapRes;
broadcast.value = result.data.broadcast;
MapVent(result.data.mapInfo.near);
@@ -340,15 +342,15 @@ const AddFight = async (type: number, monsterId: string, sign: string) => {
/**拾取物品 */
const GetMapGoods = async (mgId: string) => {
-MessageExtend.LoadingToast("拾取中...");
+ MessageExtend.LoadingToast("拾取中...");
let result = await MapService.GetMapGoods(mgId);
MessageExtend.LoadingClose();
if (result.code == 0) {
await BindData("");
- MessageExtend.Notify(result.msg,"success");
+ MessageExtend.Notify(result.msg, "success");
}
else {
- MessageExtend.Notify(result.msg,"danger");
+ MessageExtend.Notify(result.msg, "danger");
}
}
diff --git a/Web/src/pages/map/npc/index.vue b/Web/src/pages/map/npc/index.vue
index 3828d30..aa0c0f4 100644
--- a/Web/src/pages/map/npc/index.vue
+++ b/Web/src/pages/map/npc/index.vue
@@ -7,11 +7,21 @@
{{ data.story }}
+
+
+
+ 当前任务:
+
+

+

+
[{{ item.code }}]{{ item.name }}
+
+
+
\ No newline at end of file
diff --git a/Web/src/services/map/MapBusService.ts b/Web/src/services/map/MapBusService.ts
index 26c7ebd..4fb5785 100644
--- a/Web/src/services/map/MapBusService.ts
+++ b/Web/src/services/map/MapBusService.ts
@@ -14,4 +14,12 @@ export class MapBusService {
static async MapBusTo(id: number, num: number) {
return await ApiService.Request("get", "/Map/MapBus/MapBusTo", { id, num });
}
+
+ /**
+ * 打开宝箱
+ * GET /Map/MapBus/MapBusBox
+ */
+ static async MapBusBox(id: number) {
+ return await ApiService.Request("get", "/Map/MapBus/MapBusBox", { id });
+ }
}
\ No newline at end of file
diff --git a/Web/src/services/map/TaskService.ts b/Web/src/services/map/TaskService.ts
new file mode 100644
index 0000000..38c82ac
--- /dev/null
+++ b/Web/src/services/map/TaskService.ts
@@ -0,0 +1,33 @@
+export class TaskService {
+ /**
+ * 获取NPC任务
+ * GET /Map/Task/GetTaskByNpc
+ */
+ static async GetTaskByNpc(npcId: number, taskId: number) {
+ return await ApiService.Request("get", "/Map/Task/GetTaskByNpc", { npcId, taskId });
+ }
+
+ /**
+ * 完成任务
+ * GET /Map/Task/OverTask
+ */
+ static async OverTask(npcId: number, taskId: number) {
+ return await ApiService.Request("get", "/Map/Task/OverTask", { npcId, taskId });
+ }
+
+ /**
+ * 物品道具点传送
+ * GET /Map/Task/NeedMapTo
+ */
+ static async NeedMapTo(task: number, num: number) {
+ return await ApiService.Request("get", "/Map/Task/NeedMapTo", { task, num });
+ }
+
+ /**
+ * 任务提交传送
+ * GET /Map/Task/ReturnTask
+ */
+ static async ReturnTask(task: number) {
+ return await ApiService.Request("get", "/Map/Task/ReturnTask", { task });
+ }
+}
\ No newline at end of file