diff --git a/chazhao/chazhao.js b/chazhao/chazhao.js
index 2ca559c..6efbc98 100644
--- a/chazhao/chazhao.js
+++ b/chazhao/chazhao.js
@@ -1,23 +1,17 @@
-// chazhao/chazhao.js
-Component({
- /**
- * 组件的属性列表
- */
- properties: {
-
- },
-
- /**
- * 组件的初始数据
- */
- data: {
-
- },
-
- /**
- * 组件的方法列表
- */
- methods: {
+Page({
+ shujichzhao: function (e) {
+ wx.request({
+ url: 'http://localhost:9527/zxbook/find1',
+ data: {
+ 'search': e.detail.value.search,
+ },
+ header: {
+ "Content-Type": "application/x-www-form-urlencoded"
+ },
+ methods: {
+ method: "POST",
+ }
+ })
}
-})
+})
\ No newline at end of file
diff --git a/chazhao/chazhao.wxml b/chazhao/chazhao.wxml
index 9fa2e31..ded8916 100644
--- a/chazhao/chazhao.wxml
+++ b/chazhao/chazhao.wxml
@@ -1,31 +1,33 @@
-
-
-
-
-
-
-
-
-
-
-
- 分类
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 猜你喜欢
-
-
-
-
+
+
+
+ 分类
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 猜你喜欢
+
+
+
+
diff --git a/shuji/shuji.json b/shuji/shuji.json
index 8835af0..6f5247b 100644
--- a/shuji/shuji.json
+++ b/shuji/shuji.json
@@ -1,3 +1,3 @@
-{
- "usingComponents": {}
+{
+ "usingComponents": {}
}
\ No newline at end of file
diff --git a/shuji/shuji.wxml b/shuji/shuji.wxml
index 680e223..cf18ca0 100644
--- a/shuji/shuji.wxml
+++ b/shuji/shuji.wxml
@@ -1,4 +1,4 @@
书名:
书号:
-作者
\ No newline at end of file
+作者:
\ No newline at end of file
diff --git a/后端的都放着里面/booksSearch/booksService/src/main/resources/generatorConfig.xml b/后端的都放着里面/booksSearch/booksService/src/main/resources/generatorConfig.xml
index 3b321a6..6a98719 100644
--- a/后端的都放着里面/booksSearch/booksService/src/main/resources/generatorConfig.xml
+++ b/后端的都放着里面/booksSearch/booksService/src/main/resources/generatorConfig.xml
@@ -1,52 +1,49 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/后端的都放着里面/booksSearch/booksService/src/main/resources/mybatis.xml b/后端的都放着里面/booksSearch/booksService/src/main/resources/mybatis.xml
index 60a680b..27b1f5e 100644
--- a/后端的都放着里面/booksSearch/booksService/src/main/resources/mybatis.xml
+++ b/后端的都放着里面/booksSearch/booksService/src/main/resources/mybatis.xml
@@ -1,5 +1,5 @@
-
-
-
+
+
+
\ No newline at end of file
diff --git a/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-context.xml b/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-context.xml
new file mode 100644
index 0000000..b674982
--- /dev/null
+++ b/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-context.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mvc.xml b/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mvc.xml
new file mode 100644
index 0000000..5cc5ecd
--- /dev/null
+++ b/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mvc.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mybatis.xml b/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mybatis.xml
index 35dbc99..c27408c 100644
--- a/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mybatis.xml
+++ b/后端的都放着里面/booksSearch/booksService/src/main/resources/spring-mybatis.xml
@@ -1,51 +1,38 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- dialect=mysql
- reasonable=true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/后端的都放着里面/zx.sql b/后端的都放着里面/zx.sql
index 51db1c4..5743f61 100644
--- a/后端的都放着里面/zx.sql
+++ b/后端的都放着里面/zx.sql
@@ -127,7 +127,7 @@ DROP TABLE IF EXISTS `borrowrecord`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8 ;
CREATE TABLE `borrowrecord` (
- `s_id` int(20) NOT NULL,
+ `s_id` varchar(20) NOT NULL,
`book_id` int(20) NOT NULL,
`s_name` varchar(20) NOT NULL,
`book_name` varchar(20) NOT NULL,
diff --git a/后端的都放着里面/zxlogin/.classpath b/后端的都放着里面/zxlogin/.classpath
index 1d5af2f..a6aaa3d 100644
--- a/后端的都放着里面/zxlogin/.classpath
+++ b/后端的都放着里面/zxlogin/.classpath
@@ -6,7 +6,7 @@
-
+
@@ -18,5 +18,11 @@
+
+
+
+
+
+
diff --git a/后端的都放着里面/zxlogin/.gitignore b/后端的都放着里面/zxlogin/.gitignore
new file mode 100644
index 0000000..b83d222
--- /dev/null
+++ b/后端的都放着里面/zxlogin/.gitignore
@@ -0,0 +1 @@
+/target/
diff --git a/后端的都放着里面/zxlogin/.settings/org.eclipse.core.resources.prefs b/后端的都放着里面/zxlogin/.settings/org.eclipse.core.resources.prefs
index a698f2a..5dae1fa 100644
--- a/后端的都放着里面/zxlogin/.settings/org.eclipse.core.resources.prefs
+++ b/后端的都放着里面/zxlogin/.settings/org.eclipse.core.resources.prefs
@@ -1,3 +1,4 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF8
+encoding//src/main/resources=UTF-8
encoding/=UTF-8
diff --git a/后端的都放着里面/zxlogin/.springBeans b/后端的都放着里面/zxlogin/.springBeans
new file mode 100644
index 0000000..533ffe4
--- /dev/null
+++ b/后端的都放着里面/zxlogin/.springBeans
@@ -0,0 +1,17 @@
+
+
+ 1
+
+
+
+
+
+
+ src/main/resources/spring-mvc.xml
+
+
+ src/main/resources/spring-context.xml
+
+
+
+
diff --git a/后端的都放着里面/zxlogin/src/main/java/controller/LoginController.java b/后端的都放着里面/zxlogin/src/main/java/controller/LoginController.java
index 992b43f..525c48c 100644
--- a/后端的都放着里面/zxlogin/src/main/java/controller/LoginController.java
+++ b/后端的都放着里面/zxlogin/src/main/java/controller/LoginController.java
@@ -1,61 +1,3 @@
-<<<<<<< HEAD
-package controller;
-
-
-import java.io.IOException;
-import java.io.Writer;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Qualifier;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import service.LoginService;
-import domain.UserPO;
-
-@Controller
-public class LoginController {
- @Autowired@Qualifier("LoginServiceImpl")
- private LoginService loginService;
- @RequestMapping("/login")
- public void login(int s_id, int s_password,
- HttpServletRequest request, HttpServletResponse response) throws IOException {
- UserPO userPO=this.loginService.FindByUserid(s_id);
- response.setContentType("text/html;charset=utf-8");
- /* 设置响应头允许ajax跨域访问 */
- response.setHeader("Access-Control-Allow-Origin", "*");
- /* 星号表示所有的异域请求都可以接受, */
- response.setHeader("Access-Control-Allow-Methods", "GET,POST");
- System.out.println(s_id);
- if(userPO!=null)
- if(s_password==userPO.getUserpassword())
- {
- System.out.println("密码正确");
- Writer out = response.getWriter();
- out.write("111");
- out.flush();
- }
-
-
- else{
- System.out.println("密码错误");
- Writer out = response.getWriter();
- out.write("100");
- out.flush();
- }
- else{
- System.out.println("不存在用户名");
- Writer out = response.getWriter();
- out.write("001");
- out.flush();
- }
-
- }
-}
-=======
package controller;
@@ -112,4 +54,4 @@ public class LoginController {
}
}
->>>>>>> 0877d8ad681d47bc72cd343cd73f8dfb7321c3b6
+
diff --git a/后端的都放着里面/zxlogin/src/main/java/domain/UserPO.java b/后端的都放着里面/zxlogin/src/main/java/domain/UserPO.java
index 9a4d19d..a59a3b6 100644
--- a/后端的都放着里面/zxlogin/src/main/java/domain/UserPO.java
+++ b/后端的都放着里面/zxlogin/src/main/java/domain/UserPO.java
@@ -1,34 +1,4 @@
-<<<<<<< HEAD
-package domain;
-
-import java.io.Serializable;
-
-public class UserPO implements Serializable{
- private int s_id;
- private int userpassword;
- private String username;
- public int getUserid() {
- return userid;
- }
- public void setUserid(int userid) {
- this.userid = userid;
- }
- public int getUserpassword() {
- return userpassword;
- }
- public void setUserpassword(int userpassword) {
- this.userpassword = userpassword;
- }
- public String getUsername() {
- return username;
- }
- public void setUsername(String username) {
- this.username = username;
- }
-
-}
-=======
package domain;
import java.io.Serializable;
@@ -55,7 +25,7 @@ public class UserPO implements Serializable{
public void setUsername(String username) {
this.username = username;
}
+}
+
-}
->>>>>>> 0877d8ad681d47bc72cd343cd73f8dfb7321c3b6
diff --git a/后端的都放着里面/zxlogin/src/main/java/mapperDAO/UserDAO.java b/后端的都放着里面/zxlogin/src/main/java/mapperDAO/UserDAO.java
index ccc89a9..d47c532 100644
--- a/后端的都放着里面/zxlogin/src/main/java/mapperDAO/UserDAO.java
+++ b/后端的都放着里面/zxlogin/src/main/java/mapperDAO/UserDAO.java
@@ -1,17 +1,3 @@
-<<<<<<< HEAD
-package mapperDAO;
-
-import org.springframework.stereotype.Repository;
-
-import domain.UserPO;
-
-@Repository("UserDAO")
-public interface UserDAO {
- public UserPO FindByUserid(int s_id);
-
-
-}
-=======
package mapperDAO;
import org.springframework.stereotype.Repository;
@@ -24,4 +10,3 @@ public interface UserDAO {
}
->>>>>>> 0877d8ad681d47bc72cd343cd73f8dfb7321c3b6
diff --git a/后端的都放着里面/zxlogin/src/main/java/service/LoginService.java b/后端的都放着里面/zxlogin/src/main/java/service/LoginService.java
index 5457a6b..33e0d77 100644
--- a/后端的都放着里面/zxlogin/src/main/java/service/LoginService.java
+++ b/后端的都放着里面/zxlogin/src/main/java/service/LoginService.java
@@ -1,13 +1,3 @@
-<<<<<<< HEAD
-package service;
-
-import domain.UserPO;
-
-public interface LoginService{
-
- public UserPO FindByUserid(int s_id);
-}
-=======
package service;
import domain.UserPO;
@@ -16,4 +6,4 @@ public interface LoginService{
public UserPO FindByUserid(int userid);
}
->>>>>>> 0877d8ad681d47bc72cd343cd73f8dfb7321c3b6
+
diff --git a/后端的都放着里面/zxlogin/src/main/java/serviceimpl/LoginServiceImpl.java b/后端的都放着里面/zxlogin/src/main/java/serviceimpl/LoginServiceImpl.java
index 4af1431..e1bd0f4 100644
--- a/后端的都放着里面/zxlogin/src/main/java/serviceimpl/LoginServiceImpl.java
+++ b/后端的都放着里面/zxlogin/src/main/java/serviceimpl/LoginServiceImpl.java
@@ -1,27 +1,4 @@
-<<<<<<< HEAD
-package serviceimpl;
-
-import mapperDAO.UserDAO;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Qualifier;
-import org.springframework.stereotype.Component;
-
-import domain.UserPO;
-import service.LoginService;
-@Component("LoginServiceImpl")
-public class LoginServiceImpl implements LoginService{
- @Autowired@Qualifier("UserDAO")
- private UserDAO userDAO;
-
-
- public UserPO FindByUserid(int s_id){
- return this.userDAO.FindByUserid(s_id);
- }
-
-}
-=======
package serviceimpl;
import mapperDAO.UserDAO;
@@ -44,4 +21,3 @@ public class LoginServiceImpl implements LoginService{
}
}
->>>>>>> 0877d8ad681d47bc72cd343cd73f8dfb7321c3b6
diff --git a/后端的都放着里面/zxlogin/target/classes/domain/UserPO.class b/后端的都放着里面/zxlogin/target/classes/domain/UserPO.class
index 67cfd44..1cda405 100644
Binary files a/后端的都放着里面/zxlogin/target/classes/domain/UserPO.class and b/后端的都放着里面/zxlogin/target/classes/domain/UserPO.class differ
diff --git a/后端的都放着里面/zxlogin/target/classes/serviceimpl/LoginServiceImpl.class b/后端的都放着里面/zxlogin/target/classes/serviceimpl/LoginServiceImpl.class
index f39c693..43d4fd4 100644
Binary files a/后端的都放着里面/zxlogin/target/classes/serviceimpl/LoginServiceImpl.class and b/后端的都放着里面/zxlogin/target/classes/serviceimpl/LoginServiceImpl.class differ
diff --git a/后端的都放着里面/zxnew.sql b/后端的都放着里面/zxnew.sql
deleted file mode 100644
index 7a77bf5..0000000
--- a/后端的都放着里面/zxnew.sql
+++ /dev/null
@@ -1,132 +0,0 @@
-CREATE DATABASE IF NOT EXISTS `真香图书管理系统` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */;
-USE `真香图书管理系统`;
--- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64)
---
--- Host: localhost Database: 真香图书管理系统
--- ------------------------------------------------------
--- Server version 8.0.13
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
- SET NAMES utf8 ;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Table structure for table `book`
---
-
-DROP TABLE IF EXISTS `book`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
-CREATE TABLE `book` (
- `book_id` int(20) NOT NULL,
- `book_name` varchar(45) NOT NULL,
- `book_author` varchar(20) NOT NULL,
- `book_num` int(5) NOT NULL,
- `book_sort` varchar(20) NOT NULL,
- `book_image` varchar(45) DEFAULT NULL,
- PRIMARY KEY (`book_id`,`book_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `book`
---
-
-LOCK TABLES `book` WRITE;
-/*!40000 ALTER TABLE `book` DISABLE KEYS */;
-INSERT INTO `book` VALUES (1,'中国史学入门','顾颉刚',10,'历史人文类',NULL),(2,'明朝那些事儿','石悦',10,'历史人文类',NULL),(3,'袁氏当国','唐德刚',10,'历史人文类',NULL),(4,'天朝的崩溃','茅海建',10,'历史人文类',NULL),(5,'东晋门阀政治','田余庆',10,'历史人文类',NULL),(6,'通俗天文学','(美)西蒙·纽康 ',10,'自然科学类',NULL),(7,'自私的基因','[英]理查德·道金斯',10,'自然科学类',NULL),(8,'发现之旅','托尼赖斯',10,'自然科学类',NULL),(9,'宇宙之书','约翰.D.巴罗',10,'自然科学类',NULL);
-/*!40000 ALTER TABLE `book` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `borrowrecord`
---
-
-DROP TABLE IF EXISTS `borrowrecord`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
-CREATE TABLE `borrowrecord` (
- `s_id` int(20) NOT NULL,
- `book_id` int(20) NOT NULL,
- `s_name` varchar(20) NOT NULL,
- `book_name` varchar(20) NOT NULL,
- `book_num` int(5) NOT NULL,
- PRIMARY KEY (`s_id`,`book_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `borrowrecord`
---
-
-LOCK TABLES `borrowrecord` WRITE;
-/*!40000 ALTER TABLE `borrowrecord` DISABLE KEYS */;
-/*!40000 ALTER TABLE `borrowrecord` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `manager`
---
-
-DROP TABLE IF EXISTS `manager`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
-CREATE TABLE `manager` (
- `m_id` int(20) NOT NULL,
- `m_password` varchar(20) NOT NULL,
- PRIMARY KEY (`m_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `manager`
---
-
-LOCK TABLES `manager` WRITE;
-/*!40000 ALTER TABLE `manager` DISABLE KEYS */;
-INSERT INTO `manager` VALUES (1,'000000'),(2,'000000');
-/*!40000 ALTER TABLE `manager` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `student`
---
-
-DROP TABLE IF EXISTS `student`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
-CREATE TABLE `student` (
- `s_id` int(20) NOT NULL,
- `s_password` varchar(20) NOT NULL,
- `s_name` varchar(20) NOT NULL,
- PRIMARY KEY (`s_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `student`
---
-
-LOCK TABLES `student` WRITE;
-/*!40000 ALTER TABLE `student` DISABLE KEYS */;
-INSERT INTO `student` VALUES (20160801,'123456','xzy'),(20160802,'123456','zxy'),(20160803,'123456','myj'),(20160804,'123456','zjh');
-/*!40000 ALTER TABLE `student` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2019-01-11 10:30:38
diff --git a/后端的都放着里面/真香图书管理系统.sql b/后端的都放着里面/真香图书管理系统.sql
index fa45f41..6a2fcd0 100644
--- a/后端的都放着里面/真香图书管理系统.sql
+++ b/后端的都放着里面/真香图书管理系统.sql
@@ -15,7 +15,7 @@
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
-SET NAMES utf8mb4;
+SET NAMES utf8;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;