diff --git a/backend/microservice-provider-user-8001/src/main/java/com/cxyxiaomo/epp/user/controller/UserController.java b/backend/microservice-provider-user-8001/src/main/java/com/cxyxiaomo/epp/user/controller/UserController.java index 0965f45..bbb2086 100644 --- a/backend/microservice-provider-user-8001/src/main/java/com/cxyxiaomo/epp/user/controller/UserController.java +++ b/backend/microservice-provider-user-8001/src/main/java/com/cxyxiaomo/epp/user/controller/UserController.java @@ -8,6 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import java.util.HashMap; @@ -22,7 +23,7 @@ public class UserController { // @RequestMapping("/login") @PostMapping("/login") @ResponseBody - public Res login(String username, String password) { + public Res login(@RequestParam("username") String username, @RequestParam("password") String password) { User user = userService.getUserByUsername(username); if (user != null) { String passwordHash = user.getPassword(); diff --git a/database/epp.sql b/database/epp.sql index d6d7fb6..63df997 100644 --- a/database/epp.sql +++ b/database/epp.sql @@ -11,7 +11,7 @@ Target Server Version : 80012 File Encoding : 65001 - Date: 06/11/2022 00:51:17 + Date: 24/11/2022 01:25:43 */ SET NAMES utf8mb4; @@ -32,7 +32,7 @@ CREATE TABLE `apply` ( `state` int(11) NULL DEFAULT 0 COMMENT '状态(0:审批中,1:通过,2:驳回)', `reason` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '驳回原因', PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of apply @@ -76,7 +76,7 @@ CREATE TABLE `feedback` ( `user_id` int(11) NULL DEFAULT NULL COMMENT '反馈用户id', `reply` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '回复', PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of feedback @@ -97,7 +97,7 @@ CREATE TABLE `notice` ( `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容', `time` date NULL DEFAULT NULL COMMENT '时间', PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of notice @@ -124,7 +124,7 @@ CREATE TABLE `report` ( `today_morning_temp` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '今日晨检体温', `isolation` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '隔离情况', PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 45 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 44 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of report @@ -180,40 +180,43 @@ INSERT INTO `report` VALUES (44, 12, '刘鸿宇', '福建省福州市晋安区 DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `username` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名', - `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码', + `username` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户名', + `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码', `realname` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '真实姓名', `id_number` varchar(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '身份证号', `phone_number` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机号', - `img` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '头像', - `role` int(11) NULL DEFAULT NULL COMMENT '角色 (1-管理员 2-社区居民)', + `role` int(11) NOT NULL COMMENT '角色 (0-超级管理员 1-工作人员 2-社区居民_房主 3-社区居民_家庭成员 4-社区居民_租客 5-访客)', + `building_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门栋号+单元号', + `doorplate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门牌号', + `permission` int(11) NOT NULL DEFAULT 0 COMMENT '进出权限 (0-无 1-继承(普通居民) 2-永久 3-限时)', + `permission_time` datetime NULL DEFAULT NULL COMMENT '进出权限失效时间', PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of user -- ---------------------------- -INSERT INTO `user` VALUES (1, 'root', '管理员', 'root', '420111111111111111', NULL, 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAFMhJREFUeF7tnQn0vsUUx78hpCwhUbIVCdnKvqY9QpZsWUqSLZUle+TY15SE7I4tW4tKQvatvSwhkbRZQyTr+WTeev+//+9931nu88yz3HvO79Q5/7l37nxnvu88M3PnzipycQQcgZkIrOLYOAKOwGwEnCA+OhyBOQg4QXx4OAJOEB8DjkAeAj6D5OHmWiNBwAkyko72ZuYh4ATJw821RoKAE2QkHe3NzEPACZKHm2uNBAEnyEg62puZh4ATJA831xoJAk6QbnX0WpJuL+n4brk1Xm+cIPX7/naSdpS0k6T1p9w5VNLLJZ1Z38XxeuAEqdv320s6fI4Lv5P0fEkfquvmeGt3gtTr++dKentk9ftIemNkWS9miIATxBDMBFPvkPSchPIUfZukvRN1vHghAk6QQgAz1L8gabsMPVQ+JmlXSX/P1He1RAScIImAFRb/saTbFtr4iqTdJJ1VaMfVIxBwgkSAZFBkDUkXSVrNwBYmfiTpaZK+bWTPzcxAwAnS/NC4k6RTGqjm92Em+WwDtt1kQMAJ0uxQeISkzzRbhZ4p6V0N1zFa806Q5rqe84s3NWd+Bcv7Sdq3pbpGVY0TpJnu5hd992ZMz7T67gp1ttzE9qtzgthjfqykLe3NRlk8LISs/DWqtBdaiIATZCFESQV+ImnDJA37wt+TtLMktpRdChFwghQCGNTXlPRrSavbmCu28suww/WlYksjN+AEKR8Am0r6QbmZyy28INixWNxfGs5KPmrk2yjNOEHKuv0xkj5RZuJy7b9IerakDwdbT5J0gKTrGNiGdG82sDNKE06Q/G5/saTX5qtfoUnICOQ4ZomtrSUdKGkDgzogyGR2MjA3HhNOkLy+PkTSU/NUV9D6TiDHSTNs3SWQ5N4GdfGp9UQDO6My4QRJ726rbVy2ZJk5zl3gwrrhc2uHdFdX0j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MgrJe2b2ILTJG0l6cJEPS/eHQSOkrRtojtflfSgRB2T4jUJwmxwTEYr/FMrA7SOqOT8KOL6qySh27rUJAiNPVzS9hmtdpJkgFZZJZcc54VD5fNr+F+bIA+RdERmw78h6XWSjs7Ud7V2ELhdOO94QmZ11WYP/K1NkJJZZIL3eyTxd2JmB7haMwhsJGknSbtLun5mFVVnj64QpGQWmcadmeQCSQRCutRD4CaSCETcMjFiezmPq84eXSEIfrxP0i71+tRr7iAC7FxxoHxpTd+68IlF+/nF+bKkDWuC4XV3CoHbS/pRbY+6QhBw4JT8k7UB8fo7gQA7m0R8V5cuEQQw9pe0R3VU3IGaCPC5vWtNB6br7hpB8O3Dkp7YFYDcj1YROF7SZq3WuKCyLhIElw+U9KwuAeW+NI7AZyQ9qvFaEivoKkFoxusl7ZPYHi/eTwT4QXxOF13vMkHAi0MmZpI7dBE896kYgZ9J4p7HQcWWGjLQdYLQ7NUCSZ4p6ZYN4eBm20WA++UQg7/ft1t1Wm19IMikRWsFohDT0/rd5DRYvfQMBLimQKApF6bO6ANKfSLINJ5PkbSzpPv3AWT38fLLcR8MNwIv6RMefSXIBGNO3jcOJ/Gcxq8T/r9PfTA0X0nwR5Ah/+XvVEmsNXopfSdIL0F3p/uDgBOkP33lnlZAwAlSAXSvsj8IOEH601fuaQUEnCAVQPcq+4OAE6Q/feWeVkDACVIBdK+yPwg4QfrTV+5pBQScIBVA9yr7g4ATpD995Z5WQMAJUgF0r7I/CDhB+tNX7mkFBP4HIuSB9mazudkAAAAASUVORK5CYII=', 1); -INSERT INTO `user` VALUES (2, 'lhz', '廖鸿志', 'lhz', NULL, NULL, 'null', 2); -INSERT INTO `user` VALUES (3, '21180000', '李', '21180000', NULL, NULL, NULL, 2); -INSERT INTO `user` VALUES (4, '211', '11', '211', NULL, NULL, NULL, 2); -INSERT INTO `user` VALUES (5, '2111', '111', '2111', NULL, NULL, NULL, 1); -INSERT INTO `user` VALUES (6, '222', '33', '222', NULL, NULL, NULL, 2); -INSERT INTO `user` VALUES (7, '33', '44', '33', NULL, NULL, NULL, 2); -INSERT INTO `user` VALUES (8, 'test', 'test', '1', NULL, NULL, NULL, 3); -INSERT INTO `user` VALUES (9, '123456', '123456', '123456', NULL, NULL, NULL, 2); -INSERT INTO `user` VALUES (10, '211806336', '211806336', '211806336', NULL, NULL, 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAFMhJREFUeF7tnQn0vsUUx78hpCwhUbIVCdnKvqY9QpZsWUqSLZUle+TY15SE7I4tW4tKQvatvSwhkbRZQyTr+WTeev+//+9931nu88yz3HvO79Q5/7l37nxnvu88M3PnzipycQQcgZkIrOLYOAKOwGwEnCA+OhyBOQg4QXx4OAJOEB8DjkAeAj6D5OHmWiNBwAkyko72ZuYh4ATJw821RoKAE2QkHe3NzEPACZKHm2uNBAEnyEg62puZh4ATJA831xoJAk6QbnX0WpJuL+n4brk1Xm+cIPX7/naSdpS0k6T1p9w5VNLLJZ1Z38XxeuAEqdv320s6fI4Lv5P0fEkfquvmeGt3gtTr++dKentk9ftIemNkWS9miIATxBDMBFPvkPSchPIUfZukvRN1vHghAk6QQgAz1L8gabsMPVQ+JmlXSX/P1He1RAScIImAFRb/saTbFtr4iqTdJJ1VaMfVIxBwgkSAZFBkDUkXSVrNwBYmfiTpaZK+bWTPzcxAwAnS/NC4k6RTGqjm92Em+WwDtt1kQMAJ0uxQeISkzzRbhZ4p6V0N1zFa806Q5rqe84s3NWd+Bcv7Sdq3pbpGVY0TpJnu5hd992ZMz7T67gp1ttzE9qtzgthjfqykLe3NRlk8LISs/DWqtBdaiIATZCFESQV+ImnDJA37wt+TtLMktpRdChFwghQCGNTXlPRrSavbmCu28suww/WlYksjN+AEKR8Am0r6QbmZyy28INixWNxfGs5KPmrk2yjNOEHKuv0xkj5RZuJy7b9IerakDwdbT5J0gKTrGNiGdG82sDNKE06Q/G5/saTX5qtfoUnICOQ4ZomtrSUdKGkD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JeyXqFBevRZDrSLo40XvIAUlc+o/AuyXtltiMHSR9PlGnuHgtguD4cZI2T2zB1pKOTdTx4t1C4H6Svp7o0r8l3VDSnxL1iovXJMgrJe2b2ILTJG0l6cJEPS/eHQSOkrRtojtflfSgRB2T4jUJwmxwTEYr/FMrA7SOqOT8KOL6qySh27rUJAiNPVzS9hmtdpJkgFZZJZcc54VD5fNr+F+bIA+RdERmw78h6XWSjs7Ud7V2ELhdOO94QmZ11WYP/K1NkJJZZIL3eyTxd2JmB7haMwhsJGknSbtLun5mFVVnj64QpGQWmcadmeQCSQRCutRD4CaSCETcMjFiezmPq84eXSEIfrxP0i71+tRr7iAC7FxxoHxpTd+68IlF+/nF+bKkDWuC4XV3CoHbS/pRbY+6QhBw4JT8k7UB8fo7gQA7m0R8V5cuEQQw9pe0R3VU3IGaCPC5vWtNB6br7hpB8O3Dkp7YFYDcj1YROF7SZq3WuKCyLhIElw+U9KwuAeW+NI7AZyQ9qvFaEivoKkFoxusl7ZPYHi/eTwT4QXxOF13vMkHAi0MmZpI7dBE896kYgZ9J4p7HQcWWGjLQdYLQ7NUCSZ4p6ZYN4eBm20WA++UQg7/ft1t1Wm19IMikRWsFohDT0/rd5DRYvfQMBLimQKApF6bO6ANKfSLINJ5PkbSzpPv3AWT38fLLcR8MNwIv6RMefSXIBGNO3jcOJ/Gcxq8T/r9PfTA0X0nwR5Ah/+XvVEmsNXopfSdIL0F3p/uDgBOkP33lnlZAwAlSAXSvsj8IOEH601fuaQUEnCAVQPcq+4OAE6Q/feWeVkDACVIBdK+yPwg4QfrTV+5pBQScIBVA9yr7g4ATpD995Z5WQMAJUgF0r7I/CDhB+tNX7mkFBP4HIuSB9mazudkAAAAASUVORK5CYII=', 2); -INSERT INTO `user` VALUES (11, '001', '老师', '001', NULL, NULL, NULL, 1); -INSERT INTO `user` VALUES (12, '002', '刘鸿宇', '002', NULL, NULL, 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAA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ud7V2ELhdOO94QmZ11WYP/K1NkJJZZIL3eyTxd2JmB7haMwhsJGknSbtLun5mFVVnj64QpGQWmcadmeQCSQRCutRD4CaSCETcMjFiezmPq84eXSEIfrxP0i71+tRr7iAC7FxxoHxpTd+68IlF+/nF+bKkDWuC4XV3CoHbS/pRbY+6QhBw4JT8k7UB8fo7gQA7m0R8V5cuEQQw9pe0R3VU3IGaCPC5vWtNB6br7hpB8O3Dkp7YFYDcj1YROF7SZq3WuKCyLhIElw+U9KwuAeW+NI7AZyQ9qvFaEivoKkFoxusl7ZPYHi/eTwT4QXxOF13vMkHAi0MmZpI7dBE896kYgZ9J4p7HQcWWGjLQdYLQ7NUCSZ4p6ZYN4eBm20WA++UQg7/ft1t1Wm19IMikRWsFohDT0/rd5DRYvfQMBLimQKApF6bO6ANKfSLINJ5PkbSzpPv3AWT38fLLcR8MNwIv6RMefSXIBGNO3jcOJ/Gcxq8T/r9PfTA0X0nwR5Ah/+XvVEmsNXopfSdIL0F3p/uDgBOkP33lnlZAwAlSAXSvsj8IOEH601fuaQUEnCAVQPcq+4OAE6Q/feWeVkDACVIBdK+yPwg4QfrTV+5pBQScIBVA9yr7g4ATpD995Z5WQMAJUgF0r7I/CDhB+tNX7mkFBP4HIuSB9mazudkAAAAASUVORK5CYII=', 2); -INSERT INTO `user` VALUES (13, 'z', 'z', 'zz', NULL, NULL, NULL, 2); -INSERT INTO `user` VALUES (14, '111', '222', '222', NULL, NULL, NULL, 222); -INSERT INTO `user` VALUES (15, '222', '222', '222', NULL, NULL, NULL, 222); -INSERT INTO `user` VALUES (16, '222', '222', '222', NULL, NULL, NULL, 222); -INSERT INTO `user` VALUES (17, '111111111111', '111111111111', '111111111111', NULL, NULL, NULL, 2); -INSERT INTO `user` VALUES (18, '12', '12', '12', NULL, NULL, NULL, 2); -INSERT INTO `user` VALUES (19, '210602212109', '曾子华', '210602212109', NULL, NULL, NULL, 2); -INSERT INTO `user` VALUES (20, 'undefined', '信息2121', 'undefined', NULL, NULL, NULL, 2); -INSERT INTO `user` VALUES (21, '2', '曾', '2', NULL, NULL, NULL, 2); +INSERT INTO `user` VALUES (1, 'root', '63a9f0ea7bb98050796b649e85481845', '管理员 密码root', '420111111111111111', NULL, 1, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (2, 'lhz', 'lhz', '廖鸿志', NULL, NULL, 2, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (3, '21180000', '21180000', '李', NULL, NULL, 2, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (4, '211', '211', '11', NULL, NULL, 2, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (5, '2111', '2111', '111', NULL, NULL, 1, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (6, '222', '222', '33', NULL, NULL, 2, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (7, '33', '33', '44', NULL, NULL, 2, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (8, 'test', '1', 'test', NULL, NULL, 3, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (9, '123456', '123456', '123456', NULL, NULL, 2, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (10, '211806336', '211806336', '211806336', NULL, NULL, 2, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (11, '001', '001', '老师', NULL, NULL, 1, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (12, '002', '002', '刘鸿宇', NULL, NULL, 2, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (13, 'z', 'zz', 'z', NULL, NULL, 2, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (14, '111', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (15, '222', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (16, '222', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (17, '111111111111', '111111111111', '111111111111', NULL, NULL, 2, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (18, '12', '12', '12', NULL, NULL, 2, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (19, '210602212109', '210602212109', '曾子华', NULL, NULL, 2, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (20, 'undefined', 'undefined', '信息2121', NULL, NULL, 2, NULL, NULL, 0, NULL); +INSERT INTO `user` VALUES (21, '2', '2', '曾', NULL, NULL, 2, NULL, NULL, 0, NULL); -- ---------------------------- -- Table structure for visitor @@ -228,7 +231,7 @@ CREATE TABLE `visitor` ( `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', `state` int(11) NULL DEFAULT 0 COMMENT '状态(0:审批中,1:成功,2:驳回)', PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of visitor diff --git a/miniprogram/package-lock.json b/miniprogram/package-lock.json index 4415642..02d1f43 100644 --- a/miniprogram/package-lock.json +++ b/miniprogram/package-lock.json @@ -23,6 +23,7 @@ "@tarojs/shared": "3.5.7", "@tarojs/taro": "3.5.7", "@tarojs/taro-h5": "3.5.7", + "blueimp-md5": "^2.19.0", "vue": "^3.0.0" }, "devDependencies": { @@ -5994,6 +5995,11 @@ "safe-buffer": "^5.1.1" } }, + "node_modules/blueimp-md5": { + "version": "2.19.0", + "resolved": "https://registry.npmmirror.com/blueimp-md5/-/blueimp-md5-2.19.0.tgz", + "integrity": "sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==" + }, "node_modules/body-parser": { "version": "1.20.1", "resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.1.tgz", @@ -26696,6 +26702,11 @@ "safe-buffer": "^5.1.1" } }, + "blueimp-md5": { + "version": "2.19.0", + "resolved": "https://registry.npmmirror.com/blueimp-md5/-/blueimp-md5-2.19.0.tgz", + "integrity": "sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==" + }, "body-parser": { "version": "1.20.1", "resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.1.tgz", diff --git a/miniprogram/package.json b/miniprogram/package.json index e5b3169..4f26efa 100644 --- a/miniprogram/package.json +++ b/miniprogram/package.json @@ -50,6 +50,7 @@ "@tarojs/shared": "3.5.7", "@tarojs/taro": "3.5.7", "@tarojs/taro-h5": "3.5.7", + "blueimp-md5": "^2.19.0", "vue": "^3.0.0" }, "devDependencies": { diff --git a/miniprogram/project.private.config.json b/miniprogram/project.private.config.json index 6c533ee..025f47e 100644 --- a/miniprogram/project.private.config.json +++ b/miniprogram/project.private.config.json @@ -2,7 +2,7 @@ "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", "projectname": "epp", "setting": { - "compileHotReLoad": true, + "compileHotReLoad": false, "urlCheck": false } } \ No newline at end of file diff --git a/miniprogram/src/app.js b/miniprogram/src/app.js index fe08f67..99c4fb1 100644 --- a/miniprogram/src/app.js +++ b/miniprogram/src/app.js @@ -10,7 +10,8 @@ const App = createApp({ // 全局变量 refer: https://docs.taro.zone/docs/come-from-miniapp#%E5%85%A8%E5%B1%80%E5%8F%98%E9%87%8F App.use(setGlobalDataPlugin, { globalData: { - baseUrl: "http://localhost:8080", // 不带最后的 / + debugMode: true, // 是否展示调试内容 + baseUrl: "http://localhost", // 不带最后的 / } }) diff --git a/miniprogram/src/pages/index/index.vue b/miniprogram/src/pages/index/index.vue index 3687407..1cb460e 100644 --- a/miniprogram/src/pages/index/index.vue +++ b/miniprogram/src/pages/index/index.vue @@ -4,6 +4,24 @@ 欢迎你,{{ displayUsername }}! + + + + + + 进出码 + + + + 反馈查看 + + + + 申请记录 + + + + @@ -39,6 +57,7 @@ + @@ -76,28 +95,39 @@ + + + + {{ debugText }} +