init: 微信支付 Native 页面 (Express + JSON 存储)
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>微信支付 - 商品列表</title>
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>📦 商品列表</h1>
|
||||
<div class="product-list">
|
||||
<% products.forEach(product => { %>
|
||||
<div class="product-card">
|
||||
<h2><%= product.name %></h2>
|
||||
<p class="price">¥ <%= (product.price / 100).toFixed(2) %></p>
|
||||
<p class="desc"><%= product.desc %></p>
|
||||
<a href="/pay/create/<%= product.id %>" class="btn">立即购买</a>
|
||||
</div>
|
||||
<% }) %>
|
||||
</div>
|
||||
<a href="/pay/orders" class="btn nav-btn">📋 订单记录</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user