From 7dec9973c30deb675581a0f82e6a38da7cce6014 Mon Sep 17 00:00:00 2001 From: Paidax Date: Mon, 20 Jan 2025 16:15:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E9=80=92=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/WelfareCommonController.java | 3 + .../components/welfare/CourierNumberInfo.vue | 142 +++++++++--------- .../views/mobile/welfare/mine/myWelfare.html | 7 +- .../views/platform/welfare/mine.html | 4 +- 4 files changed, 81 insertions(+), 75 deletions(-) diff --git a/src/main/java/io/v/nutz/zhgh/welfare/controller/WelfareCommonController.java b/src/main/java/io/v/nutz/zhgh/welfare/controller/WelfareCommonController.java index 218a476..fdd2134 100644 --- a/src/main/java/io/v/nutz/zhgh/welfare/controller/WelfareCommonController.java +++ b/src/main/java/io/v/nutz/zhgh/welfare/controller/WelfareCommonController.java @@ -610,6 +610,9 @@ public class WelfareCommonController { public Object courierNumberInfo(String welfareId, String userId) { //查询的时候去触发福利最新信息 List welfareCourierNumberList = dao.query(WelfareCourierNumber.class, Cnd.where("welfareId", "=", welfareId).and("selectUserId", "=", userId)); + if (Lang.isEmpty(welfareCourierNumberList)) { + return Result.error("未获取到您的快递单号,请耐心等待管理员录入"); + } for (WelfareCourierNumber courierNumber : welfareCourierNumberList) { //如果有上次查询的时间 diff --git a/src/main/resources/static/components/welfare/CourierNumberInfo.vue b/src/main/resources/static/components/welfare/CourierNumberInfo.vue index d480422..65c0c4a 100644 --- a/src/main/resources/static/components/welfare/CourierNumberInfo.vue +++ b/src/main/resources/static/components/welfare/CourierNumberInfo.vue @@ -1,84 +1,84 @@  diff --git a/src/main/resources/views/mobile/welfare/mine/myWelfare.html b/src/main/resources/views/mobile/welfare/mine/myWelfare.html index 72457ef..4b0836e 100644 --- a/src/main/resources/views/mobile/welfare/mine/myWelfare.html +++ b/src/main/resources/views/mobile/welfare/mine/myWelfare.html @@ -508,7 +508,7 @@ layout("/mobile/platform.html"){ }) this.logisticsTrace = resp.data } else { - this.$message.error(resp.msg); + this.$toast.msgError(resp.msg); } }, @@ -532,7 +532,10 @@ layout("/mobile/platform.html"){ this.activeName = this.optionCourierNumberInfo[keys[0]][0].courierNumber this.courierNumberShow = true } else { - this.$modal.msgError(msg) + vant.Dialog.alert({ + title: '提示', + message: msg + }); } }, diff --git a/src/main/resources/views/platform/welfare/mine.html b/src/main/resources/views/platform/welfare/mine.html index bd3f6b6..8a7d057 100644 --- a/src/main/resources/views/platform/welfare/mine.html +++ b/src/main/resources/views/platform/welfare/mine.html @@ -126,11 +126,11 @@ layout("/layouts/platform.html"){ 查看 - 查看物流 - + -->