{% load static from staticfiles %}
{# 网页标题块 #}
{% block title %}{% endblock title %}
{# 网页顶部引入文件块 #} {% block topfiles %}{% endblock topfiles %} {# 网页顶部欢迎信息块 #} {% block header_con %}
欢迎来到天天生鲜!
{% if user.is_authenticated %}
欢迎您:
{{ user.username }}
|
退出
{% else %}
登录
|
注册
{% endif %}
|
用户中心
|
我的购物车
|
我的订单
{% endblock header_con %} {# 网页顶部搜索框块 #} {% block search_bar %}
我的购物车
{{ cart_count }}
{% endblock search_bar %} {# 网页主体内容块 #} {% block body %}{% endblock body %} {# 网页底部html元素块 #} {% block bottom %}{% endblock bottom %} {# 网页底部引入文件块 #} {% block bottomfiles %}{% endblock bottomfiles %}