menu.html 3.04 KB
<script type="x-tmpl-mustache" id="menuItemTmpl">
    \{{# fashion}}
    <div class="content-item-menu">
        <a class="link" href="\{{link}}" target="_blank" onclick="YOHODCLICK('channel','web','threeFashion')"></a>
        <span class="a-img">
            \{{# isVideo}}
            <a class="a-video" href="\{{link}}" onclick="YOHODCLICK('channel','web','threeFashion')"></a>
            \{{/ isVideo}}
            <img src="\{{cover}}" alt="\{{title}}">
        </span>
        <span class="menu-text">\{{title}}</span>
        <span class="menu-text menu-detail" style="margin-top:15px;">\{{subtitle}}</span>
    </div>
    \{{/ fashion}}

   \{{# beauty}}
    <div class="content-item-menu">
        <a class="link" href="\{{link}}" target="_blank" onclick="YOHODCLICK('channel','web','threeBeauty')"></a>
        <span class="a-img">
            \{{# isVideo}}
            <a class="a-video" href="\{{link}}" onclick="YOHODCLICK('channel','web','threeBeauty')"></a>
            \{{/ isVideo}}
            <img src="\{{cover}}" alt="\{{title}}">
        </span>
        <span class="menu-text">\{{title}}</span>
        <span class="menu-text menu-detail" style="margin-top:15px;">\{{subtitle}}</span>
    </div>
    \{{/ beauty}}

    \{{# lifestyle}}
    <div class="content-item-menu">
        <a class="link" href="\{{link}}" target="_blank" onclick="YOHODCLICK('channel','web','threeLifestyle')"></a>
        <span class="a-img">
            \{{# isVideo}}
            <a class="a-video" href="\{{link}}" onclick="YOHODCLICK('channel','web','threeLifestyle')"></a>
            \{{/ isVideo}}
            <img src="\{{cover}}" alt="\{{title}}">
        </span>
        <span class="menu-text">\{{title}}</span>
        <span class="menu-text menu-detail" style="margin-top:15px;">\{{subtitle}}</span>
    </div>
    \{{/ lifestyle}}

    \{{# sport}}
    <div class="content-item-menu">
        <a class="link" href="\{{link}}" target="_blank" onclick="YOHODCLICK('channel','web','threeSport')"></a>
        <span class="a-img">
            \{{# isVideo}}
            <a class="a-video" href="\{{link}}" onclick="YOHODCLICK('channel','web','threeSport')"></a>
            \{{/ isVideo}}
            <img src="\{{cover}}" alt="\{{title}}">
        </span>
        <span class="menu-text">\{{title}}</span>
        <span class="menu-text menu-detail" style="margin-top:15px;">\{{subtitle}}</span>
    </div>
    \{{/ sport}}
</script>
<script type="x-tmpl-mustache" id="menuItemTmplVideo">
    \{{# video}}
    <div class="submenu-video-item\{{^ isMid}} submenu-video-side \{{/ isMid}} \{{# isMid}} submenu-video-mid \{{/ isMid}}">
        <a class="link" href="\{{link}}" target="_blank" onclick="YOHODCLICK('channel','web','threeVideo')"></a>
        <span class="a-img">
            <a class="a-video" href="\{{link}}" onclick="YOHODCLICK('channel','web','threeVideo')"></a>
            <img src="\{{cover}}" alt="\{{title}}"/>
        </span>
        <span class="menu-text">\{{title}}</span>
        <span class="menu-text menu-detail">\{{subtitle}}</span>
    </div>
    \{{/ video}}
</script>