@@ -41,15 +41,18 @@
请选择出口:
东:{{ mapDong.name }}
- 🚩
+ 🚩
西:{{ mapXi.name }}
- 🚩
+
🚩
+
南:{{ mapNan.name }}
- 🚩
+
🚩
+
北:{{ mapBei.name }}
- 🚩
+
🚩
+
@@ -67,7 +70,7 @@
- {{ item.mapName }}
+ {{ item.mapName }}
@@ -140,6 +143,9 @@ onMounted(async () => {
const BindData = async (map: string): Promise
=> {
let result = await MapService.GetMapData(map);
if (result.code == 0) {
+ if (result.data.fightId != '') {
+ return PageExtend.Redirect("/fight?f=" + result.data.fightId);
+ }
mapInfo.value = result.data.mapInfo;
cityInfo.value = result.data.cityInfo;
npcData.value = result.data.npcData;
@@ -296,5 +302,20 @@ const CollectRes = async () => {
}
}
+/**攻击 */
+const AddFight = async (type: number, monsterId: string, sign: string) => {
+ MessageExtend.LoadingToast("战斗初始化...");
+ let result = await FightService.FightMonster(type, monsterId, sign);
+ MessageExtend.LoadingClose();
+ if (result.code == 0) {
+ return PageExtend.Redirect("/fight?f=" + result.data);
+ }
+ else if (result.code == -1) {
+ await BindData("");
+ }
+ else {
+ MessageExtend.ShowDialog("提示", result.msg);
+ }
+}
diff --git a/Web/src/pages/map/run.vue b/Web/src/pages/map/run.vue
index 4561547..38f54ea 100644
--- a/Web/src/pages/map/run.vue
+++ b/Web/src/pages/map/run.vue
@@ -12,7 +12,7 @@
【
- {{ item.cityName }}
+ {{ item.cityName }}
】
diff --git a/Web/src/pages/map/to.vue b/Web/src/pages/map/to.vue
index 3b923b4..373aca5 100644
--- a/Web/src/pages/map/to.vue
+++ b/Web/src/pages/map/to.vue
@@ -12,7 +12,7 @@
【
- {{ item.cityName }}
+ {{ item.cityName }}
】