================================================================================ 项目代码导出文件 ================================================================================ 项目名称: 基于Python的线上电商系统 导出时间: 2025-07-09 05:29:12 项目路径: /Users/lishunqin/Desktop/Online_shopping_platform 文件总数: 140 ================================================================================ 📁 文件目录: -------------------------------------------------- README.md (7.4 KB) app/__init__.py (1.3 KB) app/forms.py (5.2 KB) app/models/__init__.py (0.9 KB) app/models/address.py (2.8 KB) app/models/admin.py (1.8 KB) app/models/browse_history.py (3.8 KB) app/models/cart.py (4.5 KB) app/models/favorite.py (3.4 KB) app/models/operation_log.py (1.8 KB) app/models/order.py (6.7 KB) app/models/payment.py (2.3 KB) app/models/product.py (9.4 KB) app/models/review.py (2.2 KB) app/models/user.py (1.7 KB) app/models/verification.py (1.8 KB) app/static/css/address_form.css (1.4 KB) app/static/css/addresses.css (1.3 KB) app/static/css/admin_base.css (2.0 KB) app/static/css/admin_categories.css (2.7 KB) app/static/css/admin_dashboard.css (0.6 KB) app/static/css/admin_login.css (1.4 KB) app/static/css/admin_logs.css (5.0 KB) app/static/css/admin_orders.css (3.7 KB) app/static/css/admin_profile.css (4.3 KB) app/static/css/admin_users.css (6.9 KB) app/static/css/auth.css (1.2 KB) app/static/css/base.css (0.6 KB) app/static/css/cart.css (0.4 KB) app/static/css/checkout.css (2.7 KB) app/static/css/favorites.css (2.0 KB) app/static/css/history.css (2.3 KB) app/static/css/index.css (1.6 KB) app/static/css/order_detail.css (2.1 KB) app/static/css/orders.css (2.8 KB) app/static/css/pay.css (2.1 KB) app/static/css/product_detail.css (6.5 KB) app/static/css/product_list.css (0.3 KB) app/static/css/profile.css (5.4 KB) app/static/css/register.css (0.5 KB) app/static/css/review.css (14.2 KB) app/static/js/address_form.js (7.2 KB) app/static/js/addresses.js (2.0 KB) app/static/js/admin_categories.js (9.0 KB) app/static/js/admin_dashboard.js (2.3 KB) app/static/js/admin_logs.js (11.3 KB) app/static/js/admin_orders.js (6.7 KB) app/static/js/admin_users.js (12.5 KB) app/static/js/base.js (5.3 KB) app/static/js/cart.js (6.1 KB) app/static/js/checkout.js (4.7 KB) app/static/js/city_data.js (54.3 KB) app/static/js/favorites.js (6.6 KB) app/static/js/history.js (8.0 KB) app/static/js/order_detail.js (1.5 KB) app/static/js/orders.js (3.4 KB) app/static/js/pay.js (10.3 KB) app/static/js/product_detail.js (13.2 KB) app/static/js/product_list.js (0.2 KB) app/static/js/profile.js (10.7 KB) app/static/js/register.js (4.0 KB) app/static/js/review.js (21.6 KB) app/templates/admin/base.html (5.0 KB) app/templates/admin/categories.html (17.6 KB) app/templates/admin/dashboard.html (7.3 KB) app/templates/admin/login.html (2.7 KB) app/templates/admin/logs.html (11.0 KB) app/templates/admin/order_detail.html (19.8 KB) app/templates/admin/orders.html (17.4 KB) app/templates/admin/product_form.html (32.9 KB) app/templates/admin/products.html (17.6 KB) app/templates/admin/profile.html (6.3 KB) app/templates/admin/users.html (12.7 KB) app/templates/base.html (5.8 KB) app/templates/cart/index.html (9.9 KB) app/templates/common/footer.html (0.0 KB) app/templates/common/header.html (0.0 KB) app/templates/common/pagination.html (0.0 KB) app/templates/index.html (9.1 KB) app/templates/order/checkout.html (12.9 KB) app/templates/order/detail.html (12.6 KB) app/templates/order/pay.html (7.9 KB) app/templates/product/detail.html (18.1 KB) app/templates/product/list.html (13.5 KB) app/templates/review/my_reviews.html (9.0 KB) app/templates/review/write.html (6.0 KB) app/templates/test_upload.html (14.5 KB) app/templates/user/address_form.html (7.4 KB) app/templates/user/addresses.html (6.4 KB) app/templates/user/favorites.html (11.3 KB) app/templates/user/history.html (12.3 KB) app/templates/user/login.html (2.7 KB) app/templates/user/orders.html (13.6 KB) app/templates/user/profile.html (12.4 KB) app/templates/user/register.html (5.4 KB) app/utils/__init__.py (0.0 KB) app/utils/auth.py (0.0 KB) app/utils/cos_client.py (7.7 KB) app/utils/cos_upload.py (0.0 KB) app/utils/database.py (1.0 KB) app/utils/decorators.py (3.1 KB) app/utils/email_service.py (2.4 KB) app/utils/file_upload.py (12.4 KB) app/utils/helpers.py (0.0 KB) app/utils/sms.py (0.0 KB) app/utils/wechat_pay.py (0.0 KB) app/views/__init__.py (0.0 KB) app/views/address.py (8.0 KB) app/views/admin.py (17.9 KB) app/views/auth.py (4.8 KB) app/views/cart.py (7.4 KB) app/views/favorite.py (7.3 KB) app/views/history.py (4.7 KB) app/views/main.py (6.4 KB) app/views/order.py (10.7 KB) app/views/payment.py (8.0 KB) app/views/product.py (23.2 KB) app/views/review.py (8.9 KB) app/views/upload.py (5.3 KB) app/views/user.py (1.0 KB) check_avatar.py (0.6 KB) config/__init__.py (0.0 KB) config/config.py (1.5 KB) config/cos_config.py (2.7 KB) config/database.py (0.8 KB) create_admin.py (5.2 KB) create_sample_categories.py (4.7 KB) create_sample_specs.py (2.0 KB) create_test_order.py (2.8 KB) create_test_product_with_specs.py (4.3 KB) create_test_user.py (2.0 KB) docker/.dockerignore (0.0 KB) docker/Dockerfile (0.0 KB) docker/docker-compose.yml (0.0 KB) export_code.py (9.9 KB) requirements.txt (0.2 KB) run.py (0.2 KB) test_cos_connection.py (6.5 KB) test_db_connection.py (3.3 KB) test_email_detailed.py (8.3 KB) ================================================================================ 🔸============================================================================== 📄 文件: README.md 📊 大小: 7559 bytes (7.38 KB) 🕒 修改时间: 2025-07-04 19:06:52 🔸==============================================================================
本项目为毕业设计作品,旨在展示一个完整的Web应用开发流程。
作者:林金兴 | 指导老师:[指导老师姓名]
${review.content}
`; } if (review.images && review.images.length > 0) { html += '点击上方的"添加新分类"来创建第一个商品分类
总用户数
活跃用户
管理员数
7天操作数
时间 | 操作者 | 操作类型 | 操作内容 | IP地址 |
---|---|---|---|---|
{{ log.created_at.strftime('%m-%d %H:%M') if log.created_at else '' }} | {% if log.user_type == 2 %} 管理员 {% else %} 用户 {% endif %} {{ log.user_id }} | {{ log.action }} | {% if log.resource_type %} {{ log.resource_type }} {% if log.resource_id %}#{{ log.resource_id }}{% endif %} {% else %} - {% endif %} | {{ log.ip_address or '-' }} |
暂无操作日志
|
太白购物商城管理后台
总日志数
用户操作
管理员操作
今日操作
时间 | 操作者 | 操作类型 | 操作内容 | IP地址 | 用户代理 |
---|---|---|---|---|---|
{{ log.created_at.strftime('%Y-%m-%d') if log.created_at else '-' }}
{{ log.created_at.strftime('%H:%M:%S') if log.created_at else '' }}
|
{{ '管理员' if log.user_type == 2 else '用户' }}
#{{ log.user_id or '-' }}
|
{{ log.action }} |
{% if log.resource_type %}
{{ log.resource_type }}
{% if log.resource_id %}
#{{ log.resource_id }}
{% endif %}
{% else %}
-
{% endif %}
|
{{ log.ip_address or '-' }}
|
{% if log.user_agent %}
{{ log.user_agent[:50] }}{% if log.user_agent|length > 50 %}...{% endif %}
{% else %}
-
{% endif %}
|
暂无操作日志
{% if user_type or action %}
尝试调整筛选条件
{% endif %}
|
订单号: | {{ order.order_sn }} |
---|---|
用户信息: |
{{ order.user.username }}
{% if order.user.phone %}
{{ order.user.phone }}
{% endif %}
|
订单状态: | {{ order.get_status_text() }} |
支付方式: | {% if order.payment_method %} {{ order.payment_method }} {% else %} 未设置 {% endif %} |
创建时间: | {{ order.created_at.strftime('%Y-%m-%d %H:%M:%S') }} |
---|---|
发货时间: | {{ order.shipped_at.strftime('%Y-%m-%d %H:%M:%S') }} |
收货时间: | {{ order.received_at.strftime('%Y-%m-%d %H:%M:%S') }} |
配送方式: | {{ order.shipping_method or '标准配送' }} |
{{ order.remark }}
收货人: | {{ receiver.receiver_name }} |
---|---|
联系电话: | {{ receiver.receiver_phone }} |
收货地址: | {{ receiver.full_address }} |
---|---|
邮政编码: | {{ receiver.postal_code }} |
暂无收货信息
{% endif %}商品信息 | 单价 | 数量 | 小计 |
---|---|---|---|
{% if item.product_image %}
{{ item.product_name }}
{% if item.spec_combination %}
{{ item.spec_combination }}
{% endif %}
{% if item.sku_code %}
SKU: {{ item.sku_code }}
{% endif %}
|
¥{{ "%.2f"|format(item.price) }} | {{ item.quantity }} | ¥{{ "%.2f"|format(item.total_price) }} |
商品总额: | ¥{{ "%.2f"|format(order.total_amount) }} |
---|---|
运费: | ¥{{ "%.2f"|format(order.shipping_fee) }} |
实付金额: | ¥{{ "%.2f"|format(order.actual_amount) }} |
支付流水号: | {{ payment.payment_sn }} |
---|---|
支付状态: | {{ payment.get_status_text() }} |
支付时间: | {{ payment.paid_at.strftime('%Y-%m-%d %H:%M:%S') }} |
第三方流水号: | {{ payment.third_party_sn }} |
物流公司: | {{ shipping_info.shipping_company }} |
---|---|
快递单号: | {{ shipping_info.tracking_number }} |
物流状态: | {% if shipping_info.shipping_status == 1 %}已发货 {% elif shipping_info.shipping_status == 2 %}运输中 {% elif shipping_info.shipping_status == 3 %}已送达 {% endif %} |
订单号 | 用户信息 | 订单金额 | 订单状态 | 支付方式 | 创建时间 | 操作 |
---|---|---|---|---|---|---|
{{ order.order_sn }}
ID: {{ order.id }}
|
{{ order.user.username }}
{% if order.user.phone %}
{{ order.user.phone }}
{% endif %}
|
¥{{ "%.2f"|format(order.actual_amount) }}
{% if order.shipping_fee > 0 %}
含运费: ¥{{ "%.2f"|format(order.shipping_fee) }}
{% endif %}
|
{{ order.get_status_text() }} | {% if order.payment_method %} {{ order.payment_method }} {% else %} 未设置 {% endif %} |
{{ order.created_at.strftime('%Y-%m-%d') }}
{{ order.created_at.strftime('%H:%M:%S') }}
|
详情
{% if order.status == 2 %}
{% endif %}
{% if order.status in [2, 3] %}
{% endif %}
{% if order.can_cancel() %}
{% endif %}
|
暂无订单数据
ID | 商品图片 | 商品名称 | 分类 | 价格 | 库存 | 状态 | 销量 | 创建时间 | 操作 |
---|---|---|---|---|---|---|---|---|---|
{{ product.id }} |
{% if product.main_image %}
|
{{ product.name[:40] }}{% if product.name|length > 40 %}...{% endif %}
{% if product.brand %}
{{ product.brand }} {% endif %} {% if product.has_specs %} 多规格 {% endif %} |
{{ product.category.name if product.category else '未分类' }} |
¥{{ "%.2f"|format(product.price) }}
{% if product.original_price and product.original_price > product.price %}
¥{{ "%.2f"|format(product.original_price) }} {% endif %} |
{% set total_stock = product.inventory|sum(attribute='stock') if product.inventory else 0 %}
{% set sku_count = product.inventory|length if product.inventory else 0 %}
{{ total_stock }}
{% if sku_count > 1 %}
{{ sku_count }}个SKU {% endif %} {% if total_stock <= 0 %} 缺货 {% elif total_stock <= 10 %} 库存不足 {% endif %} |
{% if product.status == 1 %} 上架 {% else %} 下架 {% endif %} |
{{ product.sales_count }}
浏览:{{ product.view_count }}
|
{{ product.created_at.strftime('%m-%d') if product.created_at else '' }}
{{ product.created_at.strftime('%H:%M') if product.created_at else '' }} |
编辑
{% if product.inventory %}
{% endif %}
|
暂无商品数据 {% if search or category_id or status %} 清除筛选 {% endif %} |
总用户数
正常用户
禁用用户
本周新增
用户ID | 用户信息 | 联系方式 | 注册时间 | 状态 | 操作 |
---|---|---|---|---|---|
#{{ user.id }} |
{% if user.avatar_url %}
{{ user.username }}
{% if user.nickname %}
{{ user.nickname }}
{% endif %}
|
{% if user.email %}
{{ user.email }}
{% endif %}
{% if user.phone %}
{{ user.phone }}
{% endif %}
{% if not user.email and not user.phone %}
未设置
{% endif %}
|
{{ user.created_at.strftime('%Y-%m-%d') if user.created_at else '-' }}
{{ user.created_at.strftime('%H:%M:%S') if user.created_at else '' }}
|
{{ '正常' if user.status == 1 else '禁用' }} |
|
暂无用户数据
{% if search or status %}
尝试调整搜索条件
{% endif %}
|
你好,{{ user.nickname or user.username }}!开始您的购物之旅吧!
{% else %}发现优质商品,享受便捷购物体验
立即注册 {% endif %}{{ address.receiver_phone }}
{{ address.get_full_address() }}
{{ item.spec_combination }}
{% endif %} {% if item.product.brand %} {{ item.product.brand }} {% endif %}{{ order.created_at.strftime('%Y-%m-%d %H:%M:%S') }}
已完成
{% else %}请在15分钟内完成支付
{% endif %}{{ order.shipped_at.strftime('%Y-%m-%d %H:%M:%S') if order.shipped_at else '已发货' }}
{% else %}等待卖家发货
{% endif %}{{ order.received_at.strftime('%Y-%m-%d %H:%M:%S') if order.received_at else '已确认收货' }}
{% else %}等待买家确认收货
{% endif %}交易成功
{% else %}等待交易完成
{% endif %}{{ item.spec_combination }}
{% endif %} 单价:¥{{ "%.2f"|format(item.price) }}请使用微信扫描二维码完成支付
正在跳转到支付宝...
正在跳转到网银...
开发测试模式,可直接完成支付
这是开发测试功能,您可以模拟不同的支付结果
品牌:{{ product.brand }}
{% endif %}暂无详细描述
{% endif %}商品名称 | {{ product.name }} |
商品品牌 | {{ product.brand }} |
商品分类 | {{ product.category.name }} |
商品重量 | {{ product.weight }}kg |
上架时间 | {{ product.created_at.strftime('%Y-%m-%d') }} |
库存信息 | {% if inventory_list|length == 1 %} {{ inventory_list[0].stock }}件 {% else %} 多规格商品,请选择具体规格查看库存 {% endif %} |
{{ product.brand }}
{% endif %}{{ review.content }}
{% endif %} {% if review.get_images() %}{{ order_item.spec_combination }}
{% endif %}单价:¥{{ "%.2f"|format(order_item.price) }} × {{ order_item.quantity }}
{{ address.receiver_phone }}
{{ address.get_full_address() }}
{% if address.postal_code %}邮编:{{ address.postal_code }}
{% endif %}还没有账户? 立即注册
{{ item.spec_combination }}
{% endif %}用户名: | {{ user.username }} |
昵称: | {{ user.nickname or '未设置' }} |
手机号: | {{ user.phone or '未绑定' }} |
邮箱: | {{ user.email or '未绑定' }} |
性别: | {% if user.gender == 1 %}男 {% elif user.gender == 2 %}女 {% else %}未设置 {% endif %} |
注册时间: | {{ user.created_at.strftime('%Y-%m-%d %H:%M:%S') if user.created_at else '未知' }} |
已有账户? 立即登录
您正在进行{type_map.get(code_type, "验证")}操作,验证码为:
验证码有效期为10分钟,请及时使用。
如果这不是您的操作,请忽略此邮件。
此邮件由系统自动发送,请勿回复。
© 2024 太白购物平台 版权所有
文件路径: {result['file_key']}
访问URL: {result['url']}