index.phtml 4.55 KB
{{> layout/header}}
    <div class="my-page yoho-page">
        <div class="my-header">
            {{#isLogin}}
            <a class="user-info" href="/home/mydetails">
                <span class="user-avatar" data-avatar="{{head_ico}}"></span>
                <span class="username">{{profile_name}}</span>
                {{#vip_info}}
                <span class="vip-icon vip-{{cur_level}}"></span>
                {{/vip_info}}
                <div class="iconfont more-icon">&#xe604;</div>
            </a>
            {{/isLogin}}
            {{^isLogin}}
            <div class="user-info">
                <a class="login-btn" href="{{signinUrl}}">
                    登录/注册
                </a>
            </div>
            {{/isLogin}}
        </div>
        <div class="my-link clearfix {{^isLogin}}no-login{{/isLogin}}">
            <a class="link-item" href="/home/favorite">
                {{#isLogin}}{{product_favorite_total}}{{/isLogin}}
                <p>收藏的商品</p>
            </a>
            <a class="link-item" href="/home/favorite?tab=brand">
                {{#isLogin}}{{brand_favorite_total}}{{/isLogin}}
                <p>收藏的品牌</p>
            </a>
            {{!
            <a class="link-item" href="/home/record">
                <!-- product_browse -->

                <p>浏览记录</p>
            </a>
            }}

        </div>
        <div class="my-order">
            <div class="order-title">
                我的订单
                <a class="iconfont" href="/home/orders">
                    查看全部订单 &#xe604;
                </a>
            </div>
            <div class="order-type clearfix">
                <a class="type-item" href="/home/orders?type=2">
                    <span class="iconfont">&#xe634;</span>
                    <br>待付款
                    {{#if wait_pay_num}}
                    <span class="num">{{wait_pay_num}}</span>
                    {{/if}}
                </a>
                <a class="type-item" href="/home/orders?type=3">
                    <span class="iconfont">&#xe63b;</span>
                    <br>待发货
                    {{#if wait_cargo_num}}
                    <span class="num">{{wait_cargo_num}}</span>
                    {{/if}}
                </a>
                <a class="type-item" href="/home/orders?type=4">
                    <span class="iconfont">&#xe633;</span>
                    <br>待收货
                    {{#if send_cargo_num}}
                    <span class="num">{{send_cargo_num}}</span>
                    {{/if}}
                </a>
            </div>
        </div>
        <div class="group-list">
            <a class="list-item" href="/home/address">
                <span class="iconfont icon">&#xe637;</span>
                地址管理
                <span class="iconfont num">{{address_num}} &#xe604;</span>
            </a>
        </div>
        <div class="group-list">
            <a class="list-item" href="/home/coupons">
                <span class="iconfont icon">&#xe63a;</span>
                优惠券
                <span class="iconfont num">{{coupon_num}} &#xe604;</span>
            </a>
            <a class="list-item" href="/home/currency">
                <span class="iconfont icon">&#xe635;</span>
                YOHO 
                <span class="iconfont num">{{yoho_coin_num}} &#xe604;</span>
            </a>
        </div>
        <div class="group-list">
            <a class="list-item" href="/home/message">
                <span class="iconfont icon">&#xe636;</span>
                消息
                <span class="iconfont num">{{inbox_total}} &#xe604;</span>
            </a>
        </div>
        <div class="group-list">
            <a class="list-item" href="/home/onlineService">
                <span class="iconfont icon">&#xe63c;</span>
                在线客服
                <span class="iconfont num">&#xe604;</span>
            </a>
            <a class="list-item" href="/home/suggest">
                <span class="iconfont icon">&#xe63d;</span>
                意见反馈
                <span class="iconfont num">&#xe604;</span>
            </a>
        </div>
        {{!
        <div class="group-list">
            <a class="list-item" href="/help.html">
                <span class="iconfont icon">&#xe639;</span>
                帮助
                <span class="iconfont num">&#xe604;</span>
            </a>
        </div>
        }}

        {{> product/recommend-for-you}}
        {{> product/suspend-cart}}
    </div>

{{> layout/download_app}}
{{> layout/footer}}