vip-details.hbs 2.04 KB
<div class="vip-me-page me-page yoho-page clearfix">
    {{> path}}
    {{> navigation}}
    <div class="me-main">
        <div class="vip-details block">
            <h2 class="title"></h2>
            <div class="msg-tabs-wrap">
                <ul class="tabs-list clearfix">
                    <li class="{{#isEqual type 1}}active{{/isEqual}}">
                        <a href="/home/vip/details?type=1">我的成长值详情</a>
                    </li>
                    <li class="{{#isEqual type 2}}active{{/isEqual}}">
                        <a href="/home/vip/details?type=2">我的成长值记录</a>
                    </li>
                </ul>
            </div>
            <div class="message-container">
                {{#isEqual type 1}}
                    <div class="t-table">
                        <div class="t-header">
                            <div>来源</div>
                            <div>变化量</div>
                            <div>变化日期</div>
                        </div>
                        {{#each ../data}}
                            <div class="t-list">
                                <div>{{typeDesc}}</div>
                                <div>{{growthValue}}</div>
                                <div>{{dateFormat 'YYYY-MM-DD' createTime}}</div>
                            </div>
                        {{/each}}
                    </div>
                {{else}}
                    <div class="t-table type-2">
                        <div class="t-header">
                            <div>时间</div>
                            <div>成长记录</div>
                        </div>
                        {{#each ../data}}
                            <div class="t-list">
                                <div>{{dateFormat 'YYYY-MM-DD' time}}</div>
                                <div>{{content}}</div>
                            </div>
                        {{/each}}
                    </div>
                {{/isEqual}}
            </div>
            {{> pager}}
        </div>
    </div>
</div>