parent
84ff48056f
commit
8d72075194
@ -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",
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
@ -1,31 +1,33 @@
|
||||
<!--chazhao/chazhao.wxml-->
|
||||
<view class='page_row' bindtap="suo">
|
||||
<view class="search">
|
||||
<view class="df search_arr">
|
||||
<icon class="searchcion" size='20' type='search'></icon>
|
||||
<input placeholder="请输入书名或书号查询" value="{{searchValue}}"confirm-type="search"/>
|
||||
</view>
|
||||
</view>
|
||||
<button class="button1" form-type="submit" >搜索</button>
|
||||
</view>
|
||||
<view class='page_row'>
|
||||
<view class="font">分类</view>
|
||||
<image class="image1"src="/image/1.png">
|
||||
</image>
|
||||
</view>
|
||||
<view class='page_row' >
|
||||
<button class="button2" form-type="submit" >1</button>
|
||||
<button class="button2" form-type="submit" >2</button>
|
||||
<button class="button2" form-type="submit" >3</button>
|
||||
</view>
|
||||
<view class='page_row' >
|
||||
<button class="button2" form-type="submit" >1</button>
|
||||
<button class="button2" form-type="submit" >2</button>
|
||||
<button class="button2" form-type="submit" >3</button>
|
||||
</view>
|
||||
<view class='page_row'>
|
||||
<view class="font">猜你喜欢</view>
|
||||
<image class="image1"src="/image/1.png">
|
||||
</image>
|
||||
</view>
|
||||
|
||||
<!--chazhao/chazhao.wxml-->
|
||||
<form bindsubmit="shujichzhao" >
|
||||
<view class='page_row' >
|
||||
<view class="search">
|
||||
<view class="df search_arr">
|
||||
<icon class="searchcion" size='20' type='search'></icon>
|
||||
<input placeholder="请输入书名或书号查询" value="{{searchValue}}"confirm-type="search"name="search"/>
|
||||
</view>
|
||||
</view>
|
||||
<button class="button1" form-type="submit" >搜索</button>
|
||||
</view>
|
||||
</form>
|
||||
<view class='page_row'>
|
||||
<view class="font">分类</view>
|
||||
<image class="image1"src="/image/1.png">
|
||||
</image>
|
||||
</view>
|
||||
<view class='page_row' >
|
||||
<button class="button2" form-type="submit" >1</button>
|
||||
<button class="button2" form-type="submit" >2</button>
|
||||
<button class="button2" form-type="submit" >3</button>
|
||||
</view>
|
||||
<view class='page_row' >
|
||||
<button class="button2" form-type="submit" >1</button>
|
||||
<button class="button2" form-type="submit" >2</button>
|
||||
<button class="button2" form-type="submit" >3</button>
|
||||
</view>
|
||||
<view class='page_row'>
|
||||
<view class="font">猜你喜欢</view>
|
||||
<image class="image1"src="/image/1.png">
|
||||
</image>
|
||||
</view>
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-config.dtd">
|
||||
<configuration>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-config.dtd">
|
||||
<configuration>
|
||||
</configuration>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd">
|
||||
<!-- 打开Spring的注解 -->
|
||||
<context:annotation-config />
|
||||
|
||||
<context:component-scan base-package="mapperDAO,controller,serviceimpl"/>
|
||||
</beans>
|
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/mvc
|
||||
http://www.springframework.org/schema/mvc/spring-mvc.xsd
|
||||
http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/context
|
||||
http://www.springframework.org/schema/context/spring-context.xsd">
|
||||
<!-- 打开SpringMVC的注解 -->
|
||||
<annotation-driven />
|
||||
<!-- 配置静态资源的目录 -->
|
||||
<resources mapping="/resources/**" location="/resources/" />
|
||||
<!-- 配置视图处理器 -->
|
||||
<beans:bean
|
||||
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
||||
<!-- 视图前缀 -->
|
||||
<beans:property name="prefix" value="/WEB-INF/view/" />
|
||||
<!-- 视图后缀 -->
|
||||
<beans:property name="suffix" value=".jsp" />
|
||||
</beans:bean>
|
||||
|
||||
</beans:beans>
|
||||
|
||||
|
@ -0,0 +1 @@
|
||||
/target/
|
@ -1,3 +1,4 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF8
|
||||
encoding//src/main/resources=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beansProjectDescription>
|
||||
<version>1</version>
|
||||
<pluginVersion><![CDATA[3.6.3.201411271034-RELEASE]]></pluginVersion>
|
||||
<configSuffixes>
|
||||
<configSuffix><![CDATA[xml]]></configSuffix>
|
||||
</configSuffixes>
|
||||
<enableImports><![CDATA[false]]></enableImports>
|
||||
<configs>
|
||||
<config>src/main/resources/spring-mvc.xml</config>
|
||||
</configs>
|
||||
<autoconfigs>
|
||||
<config>src/main/resources/spring-context.xml</config>
|
||||
</autoconfigs>
|
||||
<configSets>
|
||||
</configSets>
|
||||
</beansProjectDescription>
|
Binary file not shown.
Binary file not shown.
@ -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
|
Loading…
Reference in new issue