-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
50 lines (48 loc) · 1.63 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="Bookmark" href="./assets/img/favicon.ico"/>
<link rel="shortcut icon" href="./assets/img/favicon.ico" type="image/x-icon"/>
<link rel="icon" href="./assets/img/favicon.ico" type="image/x-icon"/>
<title>商品列表</title>
</head>
<body>
<div class="container">
<div class="left-section">
<h2>商品列表</h2>
<div id="itemList"></div>
</div>
<div class="right-section">
<h2>购物车</h2>
<div id="cartList"></div>
<div class="bottom-area">
<div class="hidden" id="totalPrice">
<b>价格总计</b> <span class="total-price">N/A</span>
</div>
<button type="button" class="disabled" id="checkoutButton" disabled>结算</button>
</div>
</div>
</div>
<form class="hidden" id="payment-form">
<div id="link-authentication-element">
<!--Stripe.js injects the Link Authentication Element-->
</div>
<div id="payment-element">
<!--Stripe.js injects the Payment Element-->
</div>
<button id="submit">
<div class="spinner hidden" id="spinner"></div>
<span id="button-text">Pay now</span>
</button>
<div id="payment-message" class="hidden"></div>
</form>
<script src="https://js.stripe.com/v3/"></script>
<script src="./assets/js/itemList.js"></script>
<script src="./assets/js/config.js"></script>
<script src="./assets/js/checkout.js"></script>
<script src="./assets/js/main.js"></script>
</body>
</html>