index.hbs 2.91 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='http://m.yohobuy.com/home/family/userInfo?openby:yohobuy={"action":"go.h5","params":{"url":"http://m.yohobuy.com/home/family/userInfo"}}' 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}}
                        {{inviteCode}}
                    {{/if}}
                </span>
                <span class="code-set"></span>
                {{#unless trendWord}}
                <span class="code-tip"></span>
                {{/unless}}
            </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}}">
                <img class="item-tag" src="{{image iconUrl 140 140}}">
                <span class="name">{{sourceName}}</span>
                <span class="level">{{level}}</span>
            </div>
            {{/ appList}}
        </div>
    </div>
    <div class="integral">
        <div class="title">积分乐园</div>
        <div class="integral-content">
            <div class="charts" id="charts" style="width: 8.5rem; height: 8.5rem;"></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"></div>
{{/ familyIndexData}}
</div>