index.hbs 2.9 KB
<div class="yoho-family-page yoho-page">
{{# familyIndexData}}
    <div class="family-heade">
        <div class="header-top">
            <span class="back" onclick="javascript:history.go(-1);"></span>
            <span class="headings"></span>
        </div>
        <div class="person-detail">
            <a href='{{userInfoLink}}' class="user-avatar" data-avatar="{{image head_ico 80 80}}"></a>
            <div class="basic-info">
                <span class="user-name">{{{nickname}}}</span>
                <span class="gender {{#isEqualOr gender 1}}boy{{/isEqualOr}}{{#isEqualOr gender 2}}girl{{/isEqualOr}}"></span>
            </div>
            <div class="info">
                <span class="city">{{province}}{{city}}</span>
                <span class="birthday">{{birthday}}</span>
            </div>
            <div class="invition">
                <span class="code trend-code">
                   {{#if trendWord}}
                        # 
                        <span class="word-outer">
                            <span class="trend-word">{{trendWord}}</span>
                        </span>
                        #
                    {{else if inviteCode}}
                        {{inviteCode}}
                    {{else}}
                        玩转潮流口令
                    {{/if}}
                </span>
                <span class="code-set"></span>
                <span class="code-tip"></span>
            </div>
            <div class="inviton-set hide">
                <textarea maxlength="15" placeholder="请输入你的潮流口令"></textarea>
            </div>
        </div>
    </div>
    <div class="vip-grade">
        <div class="title">会员等级及权益</div>
        <div class="grade-content">
            {{# appList}}
            <div class="content-item" data-login="{{login}}" data-name="{{nickname}}" data-code="{{code}}" {{#if isNoOpen}}data-noopen="{{isNoOpen}}"{{/if}}>
                <img class="item-tag {{#unless login}}gray{{/unless}}" src="{{image iconUrl 140 140}}">
                <span class="name">{{sourceName}}</span>
                <span class="level">{{name}}</span>
            </div>
            {{/ appList}}
        </div>
    </div>
    <div class="integral">
        <div class="title">积分乐园</div>
        <div class="integral-content">
            <div class="charts" id="charts" style="width: 8.6rem; height: 8.6rem;"></div>
        </div>
    </div>

    {{! 资源位}}
    <div class="rec">
        <div class="resource-content">
            {{# ownContent}}
            <div data-id="{{template_id}}" class="resource-own">
                {{> family-res}}
            </div>
            {{/ ownContent}}
            {{# townContent}}
            <div data-id="{{template_id}}">
                {{> family-res}}
            </div>
            {{/ townContent}}
        </div>
    </div>
    <div class="dia-c popover"></div>
{{/ familyIndexData}}
</div>