gww0>FMa`=;h_*J}IK{Qds_00RmfNKhcY3=1MiSje!U!-o(f aN}Nbhq5=^C@@OOzpoPbeAVZo60RTH(5zP(& literal 0 HcmV?d00001 diff --git a/Web/public/css/images/home/btn_m_gray.gif b/Web/public/css/images/home/btn_m_gray.gif new file mode 100644 index 0000000000000000000000000000000000000000..f6db12d91a71c28c787a12e56c01b55ab7a2a0b7 GIT binary patch literal 344 zcmV-e0jK^)Nk%w1VLSj70K@ gww0>FMa`=;h_*uQ!07w`fPsR8goO+SA_xzQjE# afByXb{rlIiUq65T{PE+*_wV1oef#$H>(?(|zI^`t z`O~LQA3uJ4|Ni~EckkZ5ef#RwtCufdzIgHC>C>lAo;-Q@@ZtUY_wU`iclYkyZCkf7 zU;xFREDY=n{~2^ZG9Wt{ST`i7^`&Ia%aCL_@?c+q&Uqt+U2f~%*S!DDEcnn}N2qyb zW8p~`F0L~#_*a_9th=$M?DXBBr3rGICTPq)|6)s3tbnA%haEM3>u>Wa9Z5d_{`dce zMh+z|0m1f;&aUpB9!@15VPTOeQ>RUzF>?lw60hj|1q&A~Ub2)|iBDW?^_sQo)^FIr zr^GL@ZTpU$yLRv4-y$Y{@X+BSM~@xbC&?`+boSi&3l}e4;! bm3m@BR5^-nnz $EJ z0N~3#0B0G1 H^5=a6de0+RhJ_r~L*#+TV z0T=`V6A Y2c;O&UCs4zM4FZEeT%13I55&U@fr4RNClBv`L_oYe zTn12K0N~^0;RnNDe9-Sj+zL1!SOg-kfh`;q6(c%IdQ*p>Qg(Ncnv@!GiAb`^BZVj( zm=-G8yt Pu#NwoCWz zpexE*Yc;Mri$2tFos`F~W(1eVUI$aluY#{*&b11hBuO?6wyNAb=iQjQkh$R=S!bT6 zkz_Pdwg0^*JDPUtD({2SlbbjkKHN>_T?Lb8Ch)|n?v8(I=5dYmc{2SHwf%hQk&=Y^ z$<18(GJg#ZiZsLqyn53sV0PzQnsti`#T5JEkLDp6X6x55A1$1Y{=Xhr2tkz+KU XmLuvC%4D$Otf>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web/src/pages/mall/index.vue @@ -1,3 +1,115 @@ - - \ No newline at end of file ++ 【商城】+
+ 金元:{{ gold }}
+ 金贝:{{ cowry }}
++ 〔 ++金贝 | +金元 + 〕 +++名称|价格++ {{ PageExtend.GetPageIndex(currentPage, 10, index + 1) }}. +++ {{ item.name }}({{ GameTool.GetCurrencyNameAll(item.price, item.payType) }}) ++ {{ item.name }}({{ GameTool.GetCurrencyNameAll(item.price, item.payType) }}) + [购买 ] +++ ++ + + + + \ No newline at end of file diff --git a/Web/src/pages/map/index.vue b/Web/src/pages/map/index.vue index ead271d..0dcc58e 100644 --- a/Web/src/pages/map/index.vue +++ b/Web/src/pages/map/index.vue @@ -6,7 +6,7 @@ {{ cityInfo.cityName }}·{{ mapInfo.mapName }}+ 物品名称:{{ showGoods.name }}+
+ 购买价格:{{ GameTool.GetCurrencyNameAll(showGoods.price, showGoods.payType) }}
++ 购买数量:+
+ +刷新 任务 -消息 +消息{{ messageCount > 0 ? "(" + messageCount + ")" : "" }} @@ -20,7 +20,7 @@@@ -91,8 +91,9 @@ const npcData = ref-{{ item.npcName }}{{ item.tips }} +{{ item.npcName }}{{ item.tips }} >([]); const chatData = ref >([]); const cityShow = ref >([]); const mapUser = ref >([]); +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 => { 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); diff --git a/Web/src/pages/message/index.vue b/Web/src/pages/message/index.vue index 41a40c8..ee1d4c1 100644 --- a/Web/src/pages/message/index.vue +++ b/Web/src/pages/message/index.vue @@ -1 +1,87 @@ - \ No newline at end of file + + + ❀游戏消息❀ ++++未读 | +已读 | +通知 | +邮件 ++++ {{ PageExtend.GetPageIndex(currentPage, 10, index + 1) }}. ++ 暂无消息. ++ {{ item.user.nick }}:{{ item.sign }} + [× ] ++ + \ No newline at end of file diff --git a/Web/src/pages/message/log.vue b/Web/src/pages/message/log.vue new file mode 100644 index 0000000..7541ca0 --- /dev/null +++ b/Web/src/pages/message/log.vue @@ -0,0 +1,60 @@ + + + 消息记录 +++++ 海精灵: + 我: + ++{{ user.nick }} : + + + {{ item.sign }} + + [{{ TimeExtend.Format(item.addTime, "yyyy-MM-dd HH:mm:ss") }}]
++ + \ No newline at end of file diff --git a/Web/src/pages/message/read.vue b/Web/src/pages/message/read.vue new file mode 100644 index 0000000..7d38b4c --- /dev/null +++ b/Web/src/pages/message/read.vue @@ -0,0 +1,114 @@ + + ++我的消息 >发送消息 ++ 【+{{ user.nick }} ({{ user.userNo }})】 ++ 【系统消息】 +++++ + {{ item.sign }}+
+ [{{ TimeExtend.Format(item.addTime, "yyyy-MM-dd HH:mm:ss") }}]
++ +++ ++刷新 + +消息记录++ ++ + \ No newline at end of file diff --git a/Web/src/pages/user/user.vue b/Web/src/pages/user/user.vue index 0c73190..08d8a51 100644 --- a/Web/src/pages/user/user.vue +++ b/Web/src/pages/user/user.vue @@ -1,6 +1,6 @@+ 海精灵: + 我: + ++ +{{ user.nick }} : + + + {{ item.sign }} + + [{{ TimeExtend.Format(item.addTime, "yyyy-MM-dd HH:mm:ss") }}]
+查看记录>> +-@@ -70,7 +70,7 @@ const BindData = async (): Promise私聊 .送礼物 .逗一下
+私聊 .送礼物 .逗一下
拜师 .山寨 .送道具
加好友 .加仇人 => { userData.value = result.data.user; attrData.value = result.data.attr; accData.value = result.data.acc; - online.value = result.data.isOnline; + online.value = result.data.isOnline; onMap.value = result.data.onMapName; console.log(result); } diff --git a/Web/src/services/Index/MallService.ts b/Web/src/services/Index/MallService.ts new file mode 100644 index 0000000..0ccefd8 --- /dev/null +++ b/Web/src/services/Index/MallService.ts @@ -0,0 +1,19 @@ +export class MallService { + /** + * 获取商城列表 + * GET /Mall/GetMall + */ + static async GetMall(type: string, page: number) { + return await ApiService.Request("get", "/Mall/GetMall", { type, page }); + } + + /** + * 购买物品 + * POST /Mall/Buy + * @param id body + * @param count body + */ + static async Buy(id: string, count: number) { + return await ApiService.Request("post", "/Mall/Buy", { id, count }); + } +} \ No newline at end of file diff --git a/Web/src/services/Index/MessageService.ts b/Web/src/services/Index/MessageService.ts new file mode 100644 index 0000000..7f0ab7d --- /dev/null +++ b/Web/src/services/Index/MessageService.ts @@ -0,0 +1,43 @@ +export class MessageService { + /** + * 获取消息 + * GET /Message/GetMessageData + */ + static async GetMessageData(type: number, page: number) { + return await ApiService.Request("get", "/Message/GetMessageData", { type, page }); + } + + /** + * 获取消息界面 + * GET /Message/GetReadInfo + */ + static async GetReadInfo(no: number) { + return await ApiService.Request("get", "/Message/GetReadInfo", { no }); + } + + /** + * 发送消息 + * POST /Message/SendMsg + * @param no body + * @param sign body + */ + static async SendMsg(no: number, sign: string) { + return await ApiService.Request("post", "/Message/SendMsg", { no, sign }); + } + + /** + * 聊天记录 + * GET /Message/MessageLog + */ + static async MessageLog(no: number, page: number) { + return await ApiService.Request("get", "/Message/MessageLog", { no, page }); + } + + /** + * 删除对话 + * GET /Message/DeleteMsg + */ + static async DeleteMsg(no: number) { + return await ApiService.Request("get", "/Message/DeleteMsg", { no }); + } +} \ No newline at end of file