This commit is contained in:
Putoo
2026-05-28 19:06:40 +08:00
parent 0d5443ef36
commit 69ae1e3174
39 changed files with 1742 additions and 31 deletions

View File

@@ -6,7 +6,7 @@
{{ cityInfo.cityName }}·{{ mapInfo.mapName }}
<Abutton @click="Refresh">刷新</Abutton>
<Abar href="/task/">任务</Abar>
<Abar href="/message/">消息</Abar>
<Abar href="/message/">消息{{ messageCount > 0 ? "(" + messageCount + ")" : "" }}</Abar>
</div>
<div class="notification">
@@ -20,7 +20,7 @@
</div>
<div class="content">
<div class="item" v-for="item in npcData">
<Abar :href='"/npc?npc="+item.npcId'>{{ item.npcName }}{{ item.tips }}</Abar>
<Abar :href='"/npc?npc=" + item.npcId'>{{ item.npcName }}{{ item.tips }}</Abar>
</div>
</div>
@@ -91,8 +91,9 @@ const npcData = ref<Array<any>>([]);
const chatData = ref<Array<any>>([]);
const cityShow = ref<Array<any>>([]);
const mapUser = ref<Array<any>>([]);
const messageCount = ref(0);
// 城内地图显示
const showCity = ref(false)
const showCity = ref(false);
onMounted(async () => {
try {
@@ -113,6 +114,7 @@ const BindData = async (map: string): Promise<void> => {
chatData.value = result.data.chatData;
cityShow.value = result.data.cityShow;
mapUser.value = result.data.nearUser;
messageCount.value = result.data.noReadMsg;
MapVent(result.data.mapInfo.near);
onMap.value = mapInfo.value.mapId;
console.log(result.data);