{% extends 'usercenter/base.html' %}
{% load staticfiles vipblock %}
{% block extra_css %}
    <link href="{% static 'pages/css/pricing.min.css' %}?v={{ version }}" rel="stylesheet" type="text/css"/>
{% endblock %}
{% block extra_js_plugins %}
    <script src="{% static 'global/plugins/jquery.pulsate.min.js' %}" type="text/javascript"></script>
    <script src="{% static 'global/plugins/jquery-bootpag/jquery.bootpag.min.js' %}" type="text/javascript"></script>
{% endblock %}
{% block extra_js_page %}
    <script src="{% static 'js/member.js' %}" type="text/javascript"></script>
{% endblock %}
{% block main_content %}
    <div class="row">
        <div class="col-md-12 col-sm-12">
            <div class="portlet light portlet-fit bordered">
                <div class="portlet-title">
                    <div class="caption">
                        <i class="icon-directions font-green hide"></i>
                        <span class="caption-subject bold font-dark uppercase"> {{ request.user.qtuser.nickname }}</span>
                        <span class="caption-helper">我们为会员提供至尊服务</span>
                    </div>
                </div>
                <div class="portlet light about-text">
                    <h4>{{ site.title }}, 与君同行，春有百花秋望月，夏有凉风冬听雪。</h4>
                    <div class="note note-info padding-tb-15">
                        您的会期到{{ request.user.qtuser.vip_expire }}截止，如需续期，请至<a href="{% url 'uc:join_vip' %}">VIP会员</a> 续期您的VIP权限。
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            {% if groups %}
                                <h4>尊敬的<span class="label label-danger">{{ groups.name }}</span>,您享有以下特权</h4>
                                <div class="margin-top-10 margin-bottom-10 clearfix padding-tb-10">
                                    <table class="table table-striped table-bordered table-advance table-hover">
                                        <thead>
                                        <tr>
                                            <th> 特权</th>
                                            <th> 详情</th>
                                        </tr>
                                        </thead>
                                        <tr>
                                            <td class="text-center" rowspan="5">
                                                店铺信息
                                            </td>
                                            <td>真实名称</td>
                                        </tr>
                                        <tr>
                                            <td>联系方式</td>
                                        </tr>
                                        <tr>
                                            <td>真实地址</td>
                                        </tr>
                                        <tr>
                                            <td>平均消费金额</td>
                                        </tr>
                                        <tr>
                                            <td>技师评价</td>
                                        </tr>
                                        <tr>
                                            <td>
                                                文学区
                                            </td>
                                            <td>
                                                付费小说全部免费阅读
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                图片区
                                            </td>
                                            <td>
                                                精美图片高清欣赏
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                精选特服
                                            </td>
                                            <td>
                                                经过验证筛选的居家技师信息，提供在线预约服务。安全、可靠的服务。
                                            </td>
                                        </tr>
                                    </table>
                                </div>{{ groups.groupproperty.content|safe }}
                            {% else %}
                                <div class="note note-info">
                                    您目前还不是<span id="pulsate-regular" style="padding:5px;">{{ site.title }}</span>VIP会员,
                                    请选择下面的VIP会员类别加入。提醒:选择合适的会期很重要！
                                </div>
                                <div class="pricing-content-1">
                                    {% for item in members %}
                                        <div class="col-md-3">
                                            <div class="price-column-container border-active">
                                                <div class="price-table-head bg-red">
                                                    <h2 class="no-margin">{{ item.name }}</h2>
                                                </div>
                                                <div class="arrow-down border-top-red"></div>
                                                <div class="price-table-pricing">
                                                    <h3>
                                                        <i class="fa fa-rmb"></i>{{ item.groupproperty.price }}</h3>
                                                    <p>{{ item.groupproperty.duration }}天会期</p>
                                                </div>
                                                <div class="price-table-content">
                                                    <div class="row mobile-padding">
                                                        <div class="col-xs-3 text-right mobile-padding">
                                                            <i class="icon-user"></i>
                                                        </div>
                                                        <div class="col-xs-9 text-left mobile-padding">查看所有店铺地址，联系方式
                                                        </div>
                                                    </div>
                                                    <div class="row mobile-padding">
                                                        <div class="col-xs-3 text-right mobile-padding">
                                                            <i class="icon-notebook"></i>
                                                        </div>
                                                        <div class="col-xs-9 text-left mobile-padding">小说区免费阅读</div>
                                                    </div>
                                                    <div class="row mobile-padding">
                                                        <div class="col-xs-3 text-right mobile-padding">
                                                            <i class="icon-picture"></i>
                                                        </div>
                                                        <div class="col-xs-9 text-left mobile-padding">图片区免费观看</div>
                                                    </div>
                                                    <div class="row mobile-padding">
                                                        <div class="col-xs-3 text-right mobile-padding">
                                                            <i class="icon-screen-smartphone"></i>
                                                        </div>
                                                        <div class="col-xs-9 text-left mobile-padding">楼凤区预约权限</div>
                                                    </div>
                                                </div>
                                                <div class="arrow-down arrow-grey"></div>
                                                <div class="price-table-footer">
                                                    {% show_vip_buy request item 'btn grey-salsa btn-outline price-button sbold uppercase' %}
                                                </div>
                                            </div>
                                        </div>
                                    {% endfor %}
                                </div>
                            {% endif %}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}