From 84e92362080665512fb2f75a7cfc265b139c4715 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Wed, 19 May 2021 18:02:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A3=9F=E8=B0=B1=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/custom/WechatAppletController.java | 13 +++++++++---- stdiet-ui/src/layout/components/Navbar.vue | 8 +++++++- stdiet-ui/src/views/custom/recipesShow/index.vue | 2 +- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java b/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java index 6e33a31a6..afe347d0f 100644 --- a/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java +++ b/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java @@ -509,7 +509,6 @@ public class WechatAppletController extends BaseController { } } - SysOrderPause orderPause = new SysOrderPause(); orderPause.setCusId(cusId); List pauses = sysOrderPauseService.selectSysOrderPauseList(orderPause); @@ -557,9 +556,15 @@ public class WechatAppletController extends BaseController { return request.getParameter("echostr"); } - @GetMapping("/getToken") - public String getToken(@RequestParam String appId) { - return iWechatAppletService.getAccessToken(appId); +// @GetMapping("/getToken") +// public String getToken(@RequestParam String appId) { +// return iWechatAppletService.getAccessToken(appId); +// } + + @GetMapping("/trans") + public AjaxResult transId(@RequestParam String customerId) { + Long cusId = StringUtils.isNotEmpty(customerId) ? Long.parseLong(AesUtils.decrypt(customerId)) : 0L; + return AjaxResult.success(String.valueOf(cusId)); } @GetMapping("/subscribe") diff --git a/stdiet-ui/src/layout/components/Navbar.vue b/stdiet-ui/src/layout/components/Navbar.vue index c54f5c976..f8c983055 100644 --- a/stdiet-ui/src/layout/components/Navbar.vue +++ b/stdiet-ui/src/layout/components/Navbar.vue @@ -26,7 +26,10 @@ -
+
@@ -98,6 +101,9 @@ export default { ...mapActions(["init"]), toggleSideBar() { this.$store.dispatch("app/toggleSideBar"); + }, + handleOnMessageClick() { + }, async logout() { this.$confirm("确定注销并退出系统吗?", "提示", { diff --git a/stdiet-ui/src/views/custom/recipesShow/index.vue b/stdiet-ui/src/views/custom/recipesShow/index.vue index 8f51ccd41..939ab35ea 100644 --- a/stdiet-ui/src/views/custom/recipesShow/index.vue +++ b/stdiet-ui/src/views/custom/recipesShow/index.vue @@ -104,7 +104,7 @@ export default { let curPlanId, curMenuId, curDate; const toDay = dayjs().format("YYYY-MM-DD"); this.planList = plansRes.data.reduce((arr, plan) => { - if (plan.menus) { + if (plan.menus && !!plan.sendFlag) { let tmpDate = dayjs(plan.startDate).subtract(1, "days"); arr.push({ menus: plan.menus.map((menu) => {