diff --git a/frontend/Web/buy.html b/frontend/Web/buy.html
index b474fc7..5ef0048 100644
--- a/frontend/Web/buy.html
+++ b/frontend/Web/buy.html
@@ -70,7 +70,7 @@
@@ -112,7 +112,8 @@
var ret=await Request("buy "+isbn+" "+quantity);
if(isFloat(ret))
{
- // 删除注册框,在中间显示“注册成功”,三秒后自动跳转到首页
+ document.getElementById("isbn").value="";
+ document.getElementById("quantity").value="";
document.querySelector('.buy-box').style.display = 'none';
document.querySelector('.content').innerHTML = '';
setTimeout(function(){location.reload();},10000);
diff --git a/frontend/Web/index.html b/frontend/Web/index.html
index d67204b..c4b7d33 100644
--- a/frontend/Web/index.html
+++ b/frontend/Web/index.html
@@ -29,7 +29,7 @@
Successfully bought book with ISBN='+isbn+'
Used '+ret+'RMB
Auto refreshing page in 10 seconds...
diff --git a/frontend/Web/index.js b/frontend/Web/index.js
index ffc0375..a016f7e 100644
--- a/frontend/Web/index.js
+++ b/frontend/Web/index.js
@@ -199,6 +199,10 @@ app.get('/buy', (req, res) => {
res.sendFile(join(__dirname, 'buy.html'));
});
+app.get('/show', (req, res) => {
+ res.sendFile(join(__dirname, 'show.html'));
+});
+
server.listen(3000, () => {
console.log('server running at http://localhost:3000');
});
\ No newline at end of file
diff --git a/frontend/Web/login.html b/frontend/Web/login.html
index 068ac4d..432ca1a 100644
--- a/frontend/Web/login.html
+++ b/frontend/Web/login.html
@@ -69,7 +69,7 @@
diff --git a/frontend/Web/passwd.html b/frontend/Web/passwd.html
index a33c451..37b269a 100644
--- a/frontend/Web/passwd.html
+++ b/frontend/Web/passwd.html
@@ -70,7 +70,7 @@
diff --git a/frontend/Web/register.html b/frontend/Web/register.html
index 508b0c0..3d0ac80 100644
--- a/frontend/Web/register.html
+++ b/frontend/Web/register.html
@@ -70,7 +70,7 @@
diff --git a/frontend/Web/show.html b/frontend/Web/show.html
new file mode 100644
index 0000000..34d8de9
--- /dev/null
+++ b/frontend/Web/show.html
@@ -0,0 +1,246 @@
+
+
+
+
+ Search - ZYM's Book Store
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
ZYM's Book Store
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+